/* ================================================================
   style.css – Amimo Discovery
   iOS-inspired design with cloudy white theme & glass-morphism sections
   ================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.25s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

:root {
    /* Light theme – Cloudy white with glass sections */
    --bg-primary: #f2f5f9;
    --bg-secondary: #ffffff;
    --bg-card: #1c1c1e;
    --bg-card-alt: #f0f0f5;
    --text-primary: #1c1c1e;
    --text-secondary: #3a3a3c;
    --text-muted: #8e8e93;
    --text-on-dark: #ffffff;
    --border-color: #1c1c1e;
    --border-light: rgba(60, 60, 67, 0.08);
    --accent-blue: #007aff;
    --accent-dark: #0066d9;
    --accent-glow: #007aff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.10);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.04);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    /* ── UPDATED: pure white header & bottom nav ── */
    --header-bg: #ffffff;
    --bottom-nav-bg: #ffffff;
    --ad-bg: rgba(255, 255, 255, 0.7);
    --ad-text: #3a3a3c;
    --ticker-bg: rgba(255, 255, 255, 0.6);
    --ticker-text: #1c1c1e;
    --sidebar-bg: rgba(242, 245, 249, 0.98);
    --desc-blur: rgba(28, 28, 30, 0.03);
    --progress-bar: #007aff;
    /* Glass-morphism sections (Light) */
    --section-bg: rgba(255, 255, 255, 0.6);
    --section-text: #1c1c1e;
    --cat-text: #1c1c1e;
    --cat-border: #1c1c1e;
}

body.dark {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #ffffff;
    --bg-card-alt: #1c1c1e;
    --text-primary: #ffffff;
    --text-secondary: #e5e5ea;
    --text-muted: #8e8e93;
    --text-on-dark: #1c1c1e;
    --border-color: #ffffff;
    --border-light: rgba(255, 255, 255, 0.08);
    --accent-blue: #0a84ff;
    --accent-dark: #0066d9;
    --accent-glow: #0a84ff;
    --shadow-sm: 0 1px 3px rgba(255, 255, 255, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.8);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.4);
    --header-bg: rgba(0, 0, 0, 0.92);
    --bottom-nav-bg: rgba(0, 0, 0, 0.92);
    --ad-bg: rgba(255, 255, 255, 0.05);
    --ad-text: #8e8e93;
    --ticker-bg: rgba(255, 255, 255, 0.05);
    --ticker-text: #e5e5ea;
    --sidebar-bg: rgba(0, 0, 0, 0.98);
    --desc-blur: rgba(255, 255, 255, 0.04);
    --progress-bar: #0a84ff;
    /* Glass-morphism sections (Dark) */
    --section-bg: rgba(255, 255, 255, 0.05);
    --section-text: #ffffff;
    --cat-text: #ffffff;
    --cat-border: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    color: var(--text-primary);
    scroll-behavior: smooth;
    padding-bottom: 80px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== HEADER ========== */
.main-header {
    background: var(--header-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    padding: 0.65rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 0.5px solid var(--border-light);
    min-height: 56px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hamburger {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--accent-blue);
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 50%;
    transition: background 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hamburger:hover {
    background: rgba(0, 122, 255, 0.08);
}

.logo {
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.location-badge {
    background: var(--accent-blue);
    padding: 0.25rem 0.8rem;
    border-radius: 30px;
    font-size: 0.6rem;
    font-weight: 500;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    user-select: none;
    letter-spacing: 0.2px;
}
.location-badge:hover {
    background: var(--accent-dark);
    transform: scale(1.02);
}
.location-badge:active {
    transform: scale(0.96);
}

/* ========== SEARCH ZONE ========== */
.search-zone {
    padding: 0.7rem 1.5rem 0.2rem 1.5rem;
}

.search-wrapper {
    background: var(--bg-secondary);
    border-radius: 60px;
    display: flex;
    align-items: center;
    padding: 0.15rem 0.15rem 0.15rem 1.2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 0.5px solid var(--border-light);
}

.search-wrapper:focus-within {
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2), var(--shadow-md);
    border-color: var(--accent-blue);
    transform: translateY(-1px);
}

.search-wrapper input {
    flex: 1;
    border: none;
    padding: 0.75rem 0.2rem;
    font-size: 0.95rem;
    background: transparent;
    color: var(--text-primary);
    outline: none;
    font-weight: 400;
}

.search-wrapper input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.search-wrapper button {
    background: var(--accent-blue);
    border: none;
    padding: 0.45rem 1.2rem;
    border-radius: 50px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.search-wrapper button:hover {
    background: var(--accent-dark);
    transform: scale(0.97);
}

/* ========== LOADING PROGRESS ========== */
.loading-progress {
    position: fixed;
    top: 56px;
    left: 0;
    width: 0%;
    height: 2.5px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-glow));
    z-index: 2000;
    transition: width 0.4s ease;
    box-shadow: 0 0 8px var(--accent-glow);
    pointer-events: none;
}

/* ================================================================
   CATEGORIES – FLAT WITH BORDERS (NO PILLS)
   ================================================================ */
.categories-row {
    padding: 0.8rem 1.5rem 0.5rem;
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    gap: 0.5rem;
    scrollbar-width: thin;
    position: sticky;
    top: 56px;
    background: var(--bg-primary);
    z-index: 99;
    border-bottom: 0.5px solid var(--border-light);
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.8rem;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent !important;
    padding: 0.6rem 1.4rem;
    border-radius: 0 !important;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cat-text);
    cursor: pointer;
    box-shadow: none !important;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
    border-bottom: 2.5px solid transparent;
    letter-spacing: 0.3px;
    position: relative;
}

.cat-pill i {
    font-size: 0.9rem;
    opacity: 0.7;
}

.cat-pill.active {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
    background: transparent !important;
    box-shadow: none !important;
}

.cat-pill:hover {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
    background: transparent !important;
    transform: translateY(-1px);
}

.cat-pill:not(.active) {
    border-bottom-color: transparent;
}

/* ========== AD BANNER ========== */
.ad-banner, .inline-ad {
    background: var(--ad-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--ad-text);
    text-align: center;
    padding: 0.6rem;
    margin: 0.5rem 0;
    border-radius: var(--radius-md);
    font-size: 0.7rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 0.5px solid var(--border-light);
}

/* ========== TRENDING SECTION ========== */
.trending-section {
    padding: 1.2rem 1.5rem 0.5rem;
}

.trending-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

.trending-title i {
    color: var(--accent-blue);
    font-size: 1.4rem;
}

.trending-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    scroll-behavior: smooth;
    cursor: grab;
    padding-bottom: 0.8rem;
    -webkit-overflow-scrolling: touch;
}

.trend-card-full {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 0.5px solid var(--border-light);
}

.trend-card-full:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-md);
}

.trend-card-full img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.trend-info {
    padding: 1rem;
}

.trend-info h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    line-height: 1.3;
    font-weight: 600;
}

.trend-info h3 a {
    text-decoration: none;
    color: var(--text-primary);
}
.trend-info h3 a:hover {
    color: var(--accent-blue);
}

.trend-meta {
    display: flex;
    gap: 0.8rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin: 0.5rem 0;
}

.trend-card-full::after {
    content: '⚡ HOT';
    position: absolute;
    top: 12px;
    right: -28px;
    background: var(--accent-blue);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 28px;
    transform: rotate(45deg);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
    letter-spacing: 0.5px;
}

/* ================================================================
   NEWS FEED – GLASS-MORPHISM SECTIONS
   ================================================================ */
.news-feed, .saved-feed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0.5rem 1.5rem 2rem;
}

.category-section {
    margin-bottom: 1rem;
    background: var(--section-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-radius: var(--radius-xl);
    padding: 1.2rem 1.2rem 0.8rem;
    box-shadow: var(--shadow-sm);
    border: 0.5px solid var(--border-light);
    transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.category-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.8rem 0;
    padding-left: 0.75rem;
    border-left: 3.5px solid var(--accent-blue);
    color: var(--section-text);
    letter-spacing: -0.2px;
}

.category-section .news-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 1rem;
    border: 0.5px solid var(--border-light);
}

.category-section .news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.category-section .news-card .news-title a {
    color: var(--text-primary);
}

.category-section .news-card .news-desc {
    color: var(--text-secondary);
}

/* Show more buttons inside sections */
.show-more-btn {
    background: var(--accent-blue);
    color: #fff;
    border: none;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    transition: all 0.25s ease;
    text-decoration: none;
    margin: 0.5rem 0 0.2rem;
}

.show-more-btn:hover {
    background: var(--accent-dark);
    transform: scale(1.01);
    box-shadow: 0 4px 14px rgba(0, 122, 255, 0.25);
}

/* ========== NEWS CARD ========== */
.news-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 1rem;
    border: 0.5px solid var(--border-light);
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-card-alt);
}

.card-body {
    padding: 1rem 1.2rem 1.2rem;
}

.news-meta {
    display: flex;
    gap: 0.8rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
    align-items: center;
}

.source-tag {
    background: var(--ad-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.2rem 0.7rem;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.65rem;
    color: var(--accent-blue);
}

.news-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.news-title a {
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.2s;
}

.news-title a:hover {
    color: var(--accent-blue);
}

.news-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0.6rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 0.2rem 0.3rem;
    border-radius: var(--radius-sm);
    background: var(--desc-blur);
}

.action-row {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.7rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-save, .btn-remove, .btn-share {
    border: none;
    padding: 0.35rem 1rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
}

.btn-primary {
    background: var(--accent-blue);
    color: #fff;
}
.btn-primary:hover {
    background: var(--accent-dark);
    transform: scale(0.97);
}
.btn-save {
    background: #1c1c1e;
    color: #fff;
}
body.dark .btn-save {
    background: #e5e5ea;
    color: #1c1c1e;
}
.btn-save:hover {
    opacity: 0.8;
    transform: scale(0.97);
}
.btn-remove {
    background: #ff3b30;
    color: #fff;
}
.btn-remove:hover {
    background: #d70015;
}
.btn-share {
    background: #34c759;
    color: #fff;
}
.btn-share:hover {
    background: #28a745;
}

/* ========== TOP NEWS INLINE ========== */
.top-news-inline .category-section-title {
    color: var(--accent-blue);
    border-left-color: var(--accent-blue);
}

/* ========== LOADERS ========== */
.loader {
    border: 3px solid var(--border-light);
    border-top: 3px solid var(--accent-blue);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}
.end-loader {
    text-align: center;
    padding: 1rem;
}
.retry-button {
    background: var(--accent-dark);
    color: #fff;
    border: none;
    padding: 0.6rem 1.8rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}
.retry-button:hover {
    background: var(--accent-blue);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== FOOTER ========== */
footer {
    background: var(--ticker-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--ticker-text);
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 0.7rem;
    margin-top: 1.5rem;
    border-top: 0.5px solid var(--border-light);
}

/* ========== BOTTOM NAV ========== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bottom-nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 12px 10px;
    box-shadow: 0 -1px 12px rgba(0, 0, 0, 0.04);
    border-top: 0.5px solid var(--border-light);
    z-index: 1200;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: 0.2s;
    padding: 4px 16px;
    border-radius: 30px;
    flex: 1;
    max-width: 120px;
    letter-spacing: 0.2px;
}

.nav-item i {
    font-size: 1.3rem;
}

.nav-item.active {
    color: var(--accent-blue);
}

.nav-item.active i {
    transform: scale(1.05);
}

/* ========== SIDE MENU ========== */
.side-menu {
    position: fixed;
    top: 0;
    left: -340px;
    width: 320px;
    height: 100vh;
    background: var(--sidebar-bg);
    backdrop-filter: saturate(180%) blur(30px);
    -webkit-backdrop-filter: saturate(180%) blur(30px);
    z-index: 1100;
    transition: left 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    overflow-y: auto;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.08);
    border-right: 0.5px solid var(--border-light);
}
.side-menu.open { left: 0; }

/* --- Close button fix --- */
.side-menu #closeMenuBtn {
    color: var(--text-primary);
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: 50%;
    transition: background 0.2s;
}
.side-menu #closeMenuBtn:hover {
    background: var(--border-light);
}
body.dark .side-menu #closeMenuBtn {
    color: #ffffff;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1050;
    display: none;
}
.overlay.show { display: block; }

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    cursor: pointer;
    transition: 0.2s;
    color: var(--text-primary);
    font-weight: 500;
    border: 0.5px solid var(--border-light);
}
.menu-item:hover {
    background: var(--accent-blue);
    color: #fff;
}

.theme-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 0.5px solid var(--border-light);
}

.notification-badge {
    background: #ff3b30;
    color: #fff;
    border-radius: 30px;
    padding: 0.05rem 0.5rem;
    font-size: 0.65rem;
    margin-left: auto;
}

/* ========== TOOLS VIEW ========== */
#toolsView {
    padding: 1rem 1.5rem;
}
#toolsView h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
#toolsView h2 i {
    color: var(--accent-blue);
}

.tool-btn {
    background: var(--accent-blue);
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.25s ease;
    flex: 1 0 auto;
    min-width: 140px;
    border: 0.5px solid transparent;
}
.tool-btn:hover {
    background: var(--accent-dark);
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}
.tool-btn:active {
    transform: scale(0.97);
}

#toolOutput {
    margin-top: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: var(--shadow-sm);
    color: var(--text-primary);
    border: 0.5px solid var(--border-light);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 700px) {
    .card-img {
        height: 170px;
    }
    .categories-row {
        top: 56px;
        padding: 0.6rem 1rem 0.6rem;
        gap: 0.3rem;
    }
    .cat-pill {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    .cat-pill i {
        font-size: 0.75rem;
    }
    .bottom-nav {
        padding: 4px 8px 8px;
    }
    .nav-item {
        padding: 4px 10px;
        max-width: 80px;
        font-size: 0.55rem;
    }
    .nav-item i {
        font-size: 1.2rem;
    }
    .trend-card-full {
        flex: 0 0 85%;
    }
    .category-section {
        padding: 1rem 0.8rem 0.6rem;
        border-radius: var(--radius-lg);
    }
    .news-feed, .saved-feed {
        padding: 0.2rem 0.8rem 1.5rem;
    }
    .location-badge {
        font-size: 0.5rem;
        padding: 0.15rem 0.6rem;
    }
    .main-header {
        padding: 0.5rem 1rem;
    }
    .search-zone {
        padding: 0.5rem 1rem 0.1rem;
    }
    .trending-section {
        padding: 0.8rem 1rem 0.2rem;
    }
    .logo {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .cat-pill {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }
    .cat-pill i {
        display: none;
    }
    .category-section .news-card .card-img {
        height: 140px;
    }
}

/* ========== OFFLINE MESSAGE ========== */
#offlineMessage {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    color: var(--text-on-dark);
    padding: 0.6rem 1.5rem;
    border-radius: 40px;
    z-index: 9999;
    font-size: 0.85rem;
    box-shadow: var(--shadow-lg);
    border: 0.5px solid var(--border-light);
    backdrop-filter: blur(10px);
}

/* ========== STATUS MESSAGE ========== */
#statusMsg {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
#statusMsg .loader {
    margin: 0 auto 0.8rem auto;
    display: block;
}
#statusMsg small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}