/* ==============================================================
   CURRENT24 - MINIMALIST MOBILE-FIRST MEDIA THEME
   Crimson Red (#C80000), Dark Charcoal (#1A1A1A), Pure White (#FFFFFF)
   ============================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --color-brand: #C80000;      /* Crimson breaking news brand color */
    --color-text: #1A1A1A;       /* Dark charcoal for maximum readability */
    --color-bg: #FFFFFF;         /* Pure white background for seamless ad blending */
    --color-meta: #767676;       /* Subdued meta text */
    --color-border: #E5E7EB;     /* Subtle divider borders */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: var(--color-bg) !important;
    font-family: var(--font-body) !important;
    color: var(--color-text) !important;
    padding-top: 60px !important; /* Header clearance */
}

/* Base Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading) !important;
    color: var(--color-text) !important;
    font-weight: 700;
}

/* 1. Sticky Minimalist Header */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.header-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--color-text);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.header-btn:hover {
    background-color: var(--color-border);
}

.header-logo {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

/* 2. Slide-Out Left Navigation Drawer Menu */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    animation: fadeIn 0.25s ease-out;
}

.mobile-drawer-card.slide-out {
    width: 300px;
    height: 100% !important;
    max-height: 100% !important;
    background-color: var(--color-bg) !important;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15) !important;
    display: flex;
    flex-direction: column;
    animation: slideInFromLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    border-radius: 0 !important;
    border: none !important;
}

.mobile-drawer-header {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid var(--color-border);
}

.mobile-drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.drawer-links {
    display: flex;
    flex-direction: column;
    padding: 10px 16px;
}

.drawer-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--color-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: color 0.2s;
}

.drawer-link-item i {
    font-size: 16px;
    color: var(--color-meta);
    width: 20px;
    text-align: center;
}

.drawer-link-item:hover {
    color: var(--color-brand);
}

.drawer-link-item:hover i {
    color: var(--color-brand);
}

/* Categories in Drawer */
.drawer-cat-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    text-align: left;
    cursor: pointer;
    border-bottom: 1px solid rgba(0,0,0,0.02);
}

.drawer-cat-btn:hover {
    background-color: rgba(0,0,0,0.02);
    color: var(--color-brand);
}

/* 3. Horizontal Categories Navigation Pills */
.category-scroll-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px 16px;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 20px;
    scrollbar-width: none; /* Firefox */
}

.category-scroll-nav::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.category-pill {
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg);
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-pill:hover, .category-pill.active {
    background-color: var(--color-brand);
    border-color: var(--color-brand);
    color: #ffffff;
}

/* 4. Single-Column Layout & Hero Cards */
.news-cards-grid {
    display: grid;
    grid-template-columns: 1fr !important; /* Force single column on mobile-first design */
    gap: 24px !important;
    padding: 0 16px;
    max-width: 800px;
    margin: 0 auto 30px !important;
}

/* Modern Card Layout */
.news-card {
    background-color: var(--color-bg) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}

.news-card-img-wrapper {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.news-card-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-img {
    transform: scale(1.03);
}

.news-card-header {
    padding: 16px 16px 8px 16px !important;
}

.news-card-category {
    background-color: var(--color-brand) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    display: inline-block !important;
    margin-bottom: 8px;
}

.news-card-title {
    font-family: var(--font-heading) !important;
    font-size: 18px !important;
    line-height: 1.45 !important;
    font-weight: 700 !important;
    color: var(--color-text) !important;
    margin: 0 !important;
}

.news-card-content {
    padding: 0 16px 16px 16px !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-excerpt {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: var(--color-meta) !important;
    margin-bottom: 12px !important;
    flex-grow: 1;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px !important;
    color: var(--color-meta) !important;
    border-top: 1px solid var(--color-border);
    padding-top: 10px;
    font-weight: 500;
}

/* Bold Hero Card at Top */
.hero-card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    margin: 0 16px 25px 16px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.hero-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.hero-card-img-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    width: 100%;
    overflow: hidden;
}

.hero-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card-overlay {
    padding: 20px;
}

.hero-card-badge {
    background-color: var(--color-brand);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hero-card-title {
    font-family: var(--font-heading);
    font-size: 22px;
    line-height: 1.35;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 10px;
}

.hero-card-excerpt {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--color-meta);
    margin-bottom: 15px;
}

.hero-card-meta {
    font-size: 12px;
    color: var(--color-meta);
    border-top: 1px solid var(--color-border);
    padding-top: 12px;
    display: flex;
    gap: 15px;
    font-weight: 500;
}

/* 5. Sleek Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 30px;
    animation: fadeIn 0.2s ease-out;
}

.search-container {
    width: 100%;
    max-width: 600px;
    padding: 0 16px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-input-wrapper {
    background-color: var(--color-bg);
    border-radius: 24px;
    border: 1px solid var(--color-border);
    flex-grow: 1;
    display: flex;
    align-items: center;
    padding: 6px 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.search-input-icon {
    color: var(--color-meta);
    margin-right: 10px;
}

#search-input-field {
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text);
    width: 100%;
    background: transparent;
    padding: 6px 0;
}

.clear-btn {
    background: none;
    border: none;
    color: var(--color-meta);
    cursor: pointer;
    font-size: 16px;
}

.search-cancel-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInFromLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Desktop Styles */
@media (min-width: 769px) {
    .home-layout {
        display: grid;
        grid-template-columns: 1fr 320px;
        gap: 30px;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 16px;
    }

    .main-feed-area {
        max-width: 100%;
    }

    .hero-card {
        margin: 0 0 30px 0;
    }

    .news-cards-grid {
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .category-scroll-nav {
        padding-left: 0;
        padding-right: 0;
    }
}
