/* ═══════════════════════════════════════════════════
   VELOX STREAM - ARTICLES STYLES
   Premium Cinematic News Portal Look
   ═══════════════════════════════════════════════════ */

:root {
    --primary: #8b5cf6;
    --primary-glow: rgba(139, 92, 246, 0.4);
    --secondary: #0ea5e9;
    --bg-dark: #020617;
    --surface: rgba(15, 23, 42, 0.4);
    --border: rgba(255, 255, 255, 0.08);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --radius-pill: 50px;
    --radius-card: 20px;
    --font: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
}

.articles-page {
    padding-top: 0;
    min-height: 100vh;
    padding-bottom: 80px;
    width: 100%;
    overflow-x: hidden;
}

.articles-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 20px 5% 60px;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* --- Articles Hero (Cinematic Full-Width) --- */
.articles-hero {
    position: relative;
    width: 100%;
    height: 65vh;
    /* Slightly smaller as requested */
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    /* Vertical center */
    margin-bottom: 40px;
}

.featured-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    /* Focus on the top part of the image if needed */
    transition: transform 0.8s cubic-bezier(0.2, 0, 0, 1);
    z-index: 1;
}

.articles-hero:hover .featured-img {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    inset: 0;
    /* Smooth left-to-bottom cinematic shadow */
    background: linear-gradient(to right, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.2) 60%, transparent 100%),
        linear-gradient(to top, #020617 0%, rgba(2, 6, 23, 0.4) 30%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 0 8%;
    z-index: 2;
}

.featured-badge {
    background: rgba(14, 165, 233, 0.12);
    color: #4fc3f7;
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid rgba(14, 165, 233, 0.4);
    font-size: 10px;
    font-weight: 800;
    margin-top: 80px;
    /* Moved down from top */
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.featured-title {
    font-size: clamp(28px, 4vw, 52px);
    /* Slightly smaller title */
    font-weight: 900;
    color: #fff;
    margin-bottom: 18px;
    line-height: 1.1;
    max-width: 850px;
    letter-spacing: -1px;
}

.featured-desc {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin-bottom: 28px;
    /* Button moved UP */
    line-height: 1.7;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Premium Blue Glow Button */
.btn-blue-pill {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
    color: white;
    padding: 15px 45px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3), 0 0 40px rgba(37, 99, 235, 0.1);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: fit-content;
}

.btn-blue-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.5), 0 0 60px rgba(37, 99, 235, 0.2);
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

/* --- Filter Pills (Mockup Match) --- */
.article-filters {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 30px;
    margin-bottom: 20px;
}

.filter-pill {
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.filter-pill.active {
    background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 100%);
    color: #fff;
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

/* --- Article Grid & Cards (Mockup Match) --- */
.article-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Exactly 4 columns like the mockup */
    gap: 20px;
}

@media (max-width: 1200px) {
    .article-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
}

.article-card {
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0, 0, 1);
    display: flex;
    flex-direction: column;
}

/* Animation handled by global .animate in styles.css */

.article-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(15, 23, 42, 0.5);
}

.card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-card:hover .card-img {
    transform: scale(1.08);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #facc15;
    /* Review Yellow */
    color: #000;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.article-card[data-cat="Review"] .card-badge {
    background: #facc15;
    color: #000;
}

.article-card[data-cat="News"] .card-badge {
    background: #0ea5e9;
    color: #fff;
}

.article-card[data-cat="Official"] .card-badge {
    background: #8b5cf6;
    color: #fff;
}

.article-card[data-cat="Spotlight"] .card-badge {
    background: #10b981;
    color: #fff;
}

.article-card[data-cat="Speculation"] .card-badge {
    background: #f59e0b;
    color: #fff;
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-excerpt {
    display: none;
    /* Hide excerpt in grid as per mockup */
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
    color: var(--text-muted);
}

.read-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- Layout adjustments for mobile --- */
@media (max-width: 1024px) {
    .article-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Mobile Adjustments (Netflix-Style Sync) --- */
@media (max-width: 768px) {
    .articles-hero {
        height: 70vh;
        min-height: 480px;
        margin-bottom: 30px;
        align-items: flex-end;
        /* Movie style content alignment */
    }

    .featured-overlay {
        padding: 0 18px 40px;
        /* Movie style padding */
        justify-content: flex-end;
        align-items: flex-start;
        /* Left aligned like movies */
        text-align: left;
        /* Left aligned like movies */
        width: 100%;
        background: linear-gradient(to top, rgba(2, 6, 23, 1) 0%, rgba(2, 6, 23, 0.8) 35%, transparent 100%);
        box-sizing: border-box;
    }

    .featured-badge {
        background: var(--primary);
        /* Use brand color */
        color: #fff;
        border: none;
        border-radius: 4px;
        /* Rectangular-ish like movies */
        padding: 6px 12px;
        font-size: 10px;
        font-weight: 900;
        margin-bottom: 12px;
        box-shadow: 0 4px 15px rgba(13, 165, 233, 0.3);
    }

    .featured-title {
        font-size: clamp(24px, 7vw, 32px);
        line-height: 1.1;
        margin-bottom: 12px;
        font-weight: 950;
        max-width: 100%;
        color: #fff;
        letter-spacing: -0.5px;
    }

    .featured-desc {
        font-size: 13.5px;
        line-height: 1.5;
        margin-bottom: 25px;
        opacity: 0.8;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        max-width: 100%;
    }

    .btn-blue-pill {
        padding: 12px 28px;
        font-size: 14px;
        font-weight: 800;
        width: fit-content;
        min-width: 180px;
        border-radius: 6px;
    }

    .articles-container {
        padding: 10px 15px 80px;
        width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .article-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
    }

    .article-filters {
        gap: 10px;
        padding: 0 0 15px 0;
        margin-bottom: 15px;
        overflow-x: auto;
        justify-content: flex-start;
        display: flex;
        -webkit-overflow-scrolling: touch;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        max-width: 100%;
        width: 100%;
    }

    .filter-pill {
        padding: 8px 16px;
        font-size: 13px;
        font-weight: 600;
        border-radius: 4px;
        white-space: nowrap;
        background: rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.1);
        flex-shrink: 0;
    }

    .filter-pill.active {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
        box-shadow: 0 4px 15px var(--primary-glow);
    }
}

@media (max-width: 480px) {
    .articles-hero {
        height: 60vh;
        min-height: 350px;
    }

    .featured-title {
        font-size: 20px;
    }

    .featured-desc {
        font-size: 13px;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .article-filters {
        gap: 8px;
    }

    .filter-pill {
        padding: 6px 14px;
        font-size: 11px;
    }
}
