/* ========================================
   TRENDING & BREAKING NEWS STYLES
   ======================================== */

/* Trending Tab - Special Styling */
.category-tab.trending-tab {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.category-tab.trending-tab i {
    color: #ffd93d;
    animation: fireFlicker 1.5s ease-in-out infinite;
}

.category-tab.trending-tab.active {
    background: linear-gradient(135deg, #ee5a6f 0%, #ff6b6b 100%);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}
/* FORCE Trending tab to always look active */
.category-tab.trending-tab {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4) !important;
}

/* Override hover and active effects */
.category-tab.trending-tab:hover,
.category-tab.trending-tab:focus,
.category-tab.trending-tab:active {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%) !important;
    color: #ffffff !important;
}


@keyframes fireFlicker {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* Breaking News Banner */
/* ===============================
   BREAKING NEWS – FINAL FIX
================================ */

/* Breaking News Banner */
.breaking-news-banner {
    position: fixed;
    top: 56px;               /* below header */
    left: 0;
    right: 0;
    height: 40px;

    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    display: flex;
    align-items: center;

    z-index: 5;              /* 👈 LOWER than tabs */
    overflow: hidden;
}

/* Label */
.breaking-label {
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.35);
    padding: 0 14px;
    height: 100%;

    display: flex;
    align-items: center;
    gap: 6px;

    font-weight: 800;
    font-size: 12px;
    color: #fff;
}

/* Scroll area */
.breaking-news-scroll {
    flex: 1;
    overflow: hidden;
    height: 100%;
}

/* Marquee content */
.breaking-news-content {
    display: inline-flex;
    align-items: center;
    gap: 48px;

    white-space: nowrap;
    padding-left: 100%;
    animation: breakingScroll 25s linear infinite;
}

.breaking-news-content:hover {
    animation-play-state: paused;
}

/* Individual item */
.breaking-news-item {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* Animation */
@keyframes breakingScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}


.breaking-news-item {
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.breaking-news-item:hover {
    text-decoration: underline;
}

.breaking-news-item .category-badge-inline {
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    margin-right: 8px;
}

/* Adjust content margin when breaking news is visible */
/* .with-breaking-news .mobile-app-content {
    margin-top: 43px !important;
} */

.with-breaking-news.with-status-bar .mobile-app-content {
    margin-top: 200px !important;
}

/* Reading Time Display */
.reading-time {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}

.reading-time i {
    font-size: 11px;
}

/* Text-to-Speech Button */
.tts-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.3s ease;
}

.tts-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.tts-btn.playing {
    color: #e74c3c;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}
.category-tabs-wrapper {
    position: relative;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 0 0;
    width: 100%;
    overflow: hidden; /* Important: Hide overflow */
}

.category-tabs {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 12px 16px;
    gap: 12px;
    white-space: nowrap;
    scrollbar-width: none;
    width: 100%;
    box-sizing: border-box;
}

/* Remove any max-width restrictions */
.category-tabs,
.category-tab {
    max-width: none !important;
}

/* Ensure tabs can be as wide as needed */
.category-tab {
    flex: 0 0 auto;
    min-width: fit-content; /* Important for last tab */
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 20px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    box-sizing: border-box;
}

    /* Consistently center active tabs and ensure horizontal scrolling works */
        .category-tabs-wrapper {
            position: sticky;
            top: 56px;
            z-index: 100;
            background: #fff;
            border-bottom: 1px solid #eee;
        }

        .category-tabs {
            display: flex !important;
            overflow-x: auto !important;
            white-space: nowrap !important;
            -webkit-overflow-scrolling: touch !important;
            scroll-behavior: smooth !important;
            padding: 10px 16px !important;
            gap: 12px !important;
            scrollbar-width: none !important;
            align-items: center !important;
        }

        .category-tabs::-webkit-scrollbar {
            display: none !important;
        }

        /* Buffer so the last tab isn't cut off */
        .category-tabs::after {
            content: '';
            flex: 0 0 50px;
            display: block;
        }

        .category-tab {
            flex: 0 0 auto !important;
            padding: 8px 16px !important;
            border-radius: 20px !important;
            font-size: 14px !important;
            font-weight: 600 !important;
            text-decoration: none !important;
            background: #f1f3f5 !important;
            color: #495057 !important;
            transition: all 0.3s ease !important;
        }

        .category-tab.active {
            background: #0C63D4 !important;
            color: white !important;
            box-shadow: 0 4px 10px rgba(12, 99, 212, 0.3) !important;
        }

        .category-tab.trending-tab.active {
            /* background: linear-gradient(135deg, #ee5a6f 0%, #ff6b6b 100%) !important; */
            box-shadow: 0 4px 10px rgba(255, 107, 107, 0.4) !important;
        }

        .add-category-btn {
            flex: 0 0 36px !important;
            height: 36px !important;
            border-radius: 50% !important;
            border: none !important;
            background: #f1f3f5 !important;
            color: #666 !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            cursor: pointer !important;
        }