   :root {
    /* Modern 2025 Color Profile */
    --brand-primary: #FF7EB3;
    --brand-secondary: #FF7E5F;
    --brand-dark: #1E293B;
    --bg-main: #F2F4F5;
    --surface: #FFFFFF;
    --surface-glass: rgba(255, 255, 255, 0.9);
    --border-soft: #E2E8F0;
    --text-main: #111111;
    --text-muted: #64748B;
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);
}
#loading-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  width: 80px;
  animation: spin 3.5s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 1. CORE RESET & STICKY FOOTER LOGIC */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}
main {
  flex: 1 0 auto;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100dvh; /* Dynamic viewport for 2025 mobile browsers */
    -webkit-font-smoothing: antialiased;
}

/* ================= HEADER ================= */

header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between; /* 👈 key line */
  padding: 12px 16px;
  max-width: 1200px;
  margin: 0 auto;
padding-bottom: 28px;
}

/* LOGO */
header .logo {
  height: 60px;
  width: auto;
  display: block;
}

/* ICON GROUP (RIGHT SIDE) */
.rctx-icons {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}



    .icon-btn {
      cursor: pointer;
      color: #333;
      display: flex;
      flex-direction: column; /* Stacks icon over text */
      align-items: center;    /* Centers items horizontally */
      justify-content: center;
      transition: transform 0.1s ease, color 0.2s;
      text-decoration: none;
      min-width: 50px;       /* Ensures consistent spacing */
    }

    .icon-btn:hover {
      color: #d62828;
    }

    .icon-label {
      font-size: 10px;        /* Smaller label for app look */
      font-weight: 600;
      margin-top: 4px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }


.search-wrapper {
  max-width: 600px;
  margin: 12px auto 10px; /* 👈 positive spacing */
  padding: 0 12px;
  position: relative;
  z-index: 1;
}

.search-bar {
    width: 100%;
    padding: 1rem 1.2rem;
    border-radius: 14px;
    border: none;
    font-size: 1rem;
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

/* 3. CATEGORY SCROLLERS */
#categories, .subcategories {
    display: flex;
    gap: 8px;
    padding: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}
#categories::-webkit-scrollbar { display: none; }

.category-btn, .subcategory-btn {
    padding: 8px 18px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    cursor: pointer;
}

.category-btn.active {
    background: var(--brand-dark);
    color: #fff;
    border-color: var(--brand-dark);
}



/*=====================================================
   FOOTER
===================================================== */
.site-footer {
  background: #0b1e9c;
  color: #e5e7eb;
  padding: 28px 16px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  line-height: 1.25;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-brand {
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 1rem;
  color: #94a3b8;
  display: block;
  margin: 4px 0;
}

.footer-subline {
  font-size: 0.85rem;
  color: #64748b;
}

.footer-links {
  margin: 6px 0;
  font-size: 0.95rem;
}

.footer-links a {
  color: #f97316; /* warm orange */
  text-decoration: none;
  margin: 0 6px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fb923c; /* lighter orange */
  text-decoration: underline;
}

.footer-links span {
  color: #64748b; /* separator color */
}

.footer-links a:active {
  opacity: 0.7; /* subtle tap feedback */
}

.footer-copy {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 6px;
}



/* --- 2025 Smart Weather Widget --- */
.weather-snippet {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    
    /* Modern Glassmorphism */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    /* Layout & Spacing */
    margin: 16px auto;
    padding: 16px 24px;
    width: calc(100% - 24px); /* Match grid padding */
    max-width: 1200px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.07);
    
    /* Transition for when data loads */
    transition: all 0.4s ease;
}

/* The Emoji/Icon Style */
.weather-emoji {
    font-size: 2.2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

/* The Text Style */
.weather-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--brand-dark);
    letter-spacing: -0.2px;
    line-height: 1.3;
}

/* Loading State Animation */
.weather-snippet:has(.weather-emoji:empty) .weather-text,
.weather-text:contains('Loading') {
    color: var(--text-muted);
    position: relative;
    overflow: hidden;
}

/* 2025 Subtle Shimmer for "Loading" state */
@keyframes shimmer {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.weather-snippet span:empty, 
.weather-text:contains('Loading') {
    animation: shimmer 2s infinite ease-in-out;
}

/* Responsive Tweak for Desktop */
@media (min-width: 1024px) {
    .weather-snippet {
        padding: 20px 32px;
        gap: 24px;
        margin-top: 24px;
        border-radius: 24px;
    }
    
    .weather-emoji {
        font-size: 2.8rem;
    }
    
    .weather-text {
        font-size: 1.1rem;
    }
}

/* Dark Mode Support (If user has dark mode active) */
@media (prefers-color-scheme: dark) {
    .weather-snippet {
        background: rgba(30, 41, 59, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    .weather-text {
        color: #F8FAFC;
    }
}
.quick-message-box {
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-message-input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  resize: none;
  font-size: 15px;
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #333;
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  opacity: 0;
  transition: all .3s ease;
  z-index: 9999;
  font-size: 15px;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.error {
  background: #c62828;
}


.fullscreen-menu {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.menu-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

.menu-item {
  font-size: 24px;
  color: white;
  text-decoration: none;
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 40px;
  background: none;
  border: none;
  color: white;
}
.end-of-feed {
  text-align: center;
  padding: 20px;
  color: #777;
  font-size: 0.9rem;
}
.notif-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: red;
  border-radius: 50%;
  margin-left: 6px;
}

.hidden {
  display: none;
}


.modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw;
  height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);

  z-index: 2147483647; /* nuclear z-index */
}
