/* ==========================================================================
   SDSF Times - Master Editorial Portal Stylesheet (SDSF_News/news.css)
   Modular Architecture - Assembles section stylesheets
   ========================================================================== */

/* --------------------------------------------------------------------------
   COMPONENT IMPORTS
   -------------------------------------------------------------------------- */
@import "components/01_header/header.css";
@import "components/02_navbar/navbar.css";
@import "notices/notices.css";
@import "components/03_ticker/ticker.css";
@import "components/04_latest_news/latest_news.css";
@import "components/05_featured_story/featured_story.css";
@import "components/06_trending_stories/trending_stories.css";
@import "components/08_developer_modal/developer_modal.css";

/* --------------------------------------------------------------------------
   GLOBAL DESIGN TOKENS & TYPOGRAPHY
   -------------------------------------------------------------------------- */
:root {
    --news-primary: #162b57;
    --news-navy: #0b132b;
    --news-accent: #c92a2a;
    --news-gold: #f2b300;
    --news-link: #0f172a;
    --news-link-hover: #1e40af;
    --news-bg: #fdfdfd;
    --news-paper-bg: #ffffff;
    --news-border: #e2e8f0;
    --news-border-dark: #cbd5e1;
    --news-rule: #0f172a;
    --news-text-main: #1e293b;
    --news-text-body: #334155;
    --news-text-muted: #64748b;

    /* Typography */
    --font-masthead: 'Cinzel', 'Playfair Display', Georgia, serif;
    --font-headline: 'Playfair Display', 'Lora', Georgia, serif;
    --font-subhead: 'Oswald', sans-serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif-body: 'Lora', Georgia, serif;
    --font-mono: 'JetBrains Mono', monospace;
}

body.news-portal-body {
    background-color: #f6f8fb;
    color: var(--news-text-main);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.newspaper-wrapper {
    width: 98%;
    max-width: 1600px;
    margin: 0 auto;
    background: var(--news-paper-bg);
    box-shadow: 0 4px 25px rgba(15, 23, 42, 0.08);
    border-left: 1px solid var(--news-border);
    border-right: 1px solid var(--news-border);
    border-bottom: 1px solid var(--news-border);
}

/* --------------------------------------------------------------------------
   MAIN 3-COLUMN NEWSPAPER CONTAINER & FILTER PILLS
   -------------------------------------------------------------------------- */
.news-main-container {
    padding: 18px 20px 30px 20px;
}

/* Interactive Filter Pills */
.filter-pills-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--news-border);
}

.filter-pills-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--news-primary);
    text-transform: uppercase;
    font-family: var(--font-subhead);
    margin-right: 4px;
}

.pill-btn {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 3px 12px;
    border-radius: 9999px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pill-btn:hover,
.pill-btn.active {
    background: #0b132b;
    color: #ffffff;
    border-color: #0b132b;
}

/* AAgaaz 26 Special Pill */
.pill-btn-aagaaz {
    background: linear-gradient(135deg, #b45309 0%, #f59e0b 100%);
    border-color: #b45309;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(180, 83, 9, 0.25);
}

.pill-btn-aagaaz:hover {
    background: linear-gradient(135deg, #92400e 0%, #d97706 100%);
    border-color: #92400e;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.35);
}

/* 3-Column Grid Layout */
.newspaper-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 2.15fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    width: 100%;
}

.grid-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Section Column Headers */
.col-section-header {
    margin-bottom: 12px;
    position: relative;
}

.col-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.48rem;
    font-weight: 900;
    color: #0b132b;
    margin: 0 0 6px 0;
    letter-spacing: -0.3px;
}

.col-header-line {
    display: block;
    width: 100%;
    height: 2px;
    background: #0b132b;
}

/* --------------------------------------------------------------------------
   NEWSPAPER FOOTER BAR
   -------------------------------------------------------------------------- */
.newspaper-footer-bar {
    border-top: 2px solid #0f172a;
    padding: 14px 20px;
    background: #f8fafc;
    font-size: 0.76rem;
    color: #475569;
}

.newspaper-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.press-links a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
}

.press-links a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 920px) {
    .newspaper-grid {
        grid-template-columns: 1fr;
    }

    .col-latest,
    .col-featured,
    .col-trending {
        grid-column: span 1;
        border-right: none;
        border-bottom: 1px solid var(--news-border);
        padding-right: 0;
        padding-bottom: 20px;
    }

    .col-trending {
        border-bottom: none;
        padding-bottom: 0;
    }

    .col1-feed-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

@media (max-width: 820px) {
    .masthead-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .masthead-time-widget {
        border-left: none;
        border-bottom: 2px solid var(--news-primary);
        padding-left: 0;
        padding-bottom: 8px;
        margin-bottom: 8px;
    }

    .masthead-right {
        text-align: center;
        align-items: center;
    }

    .edition-meta-box {
        align-items: center;
    }

    .masthead-title a {
        font-size: clamp(1.6rem, 8.5vw, 2.8rem);
    }

    .nav-content-row {
        flex-direction: column;
        padding: 8px 14px;
        gap: 10px;
    }

    .nav-links-list {
        justify-content: center;
    }

    .nav-search-wrapper {
        margin-left: 0;
        width: 100%;
    }

    .news-search-form {
        width: 100%;
    }

    .news-search-form input {
        width: 100%;
    }

    .newspaper-grid {
        grid-template-columns: 1fr;
    }

    .col-latest,
    .col-featured,
    .col-trending {
        grid-column: span 1;
        border-right: none;
        padding-right: 0;
        padding-left: 0;
    }

    .col1-feed-list {
        grid-template-columns: 1fr;
    }

    .center-subgrid {
        grid-template-columns: 1fr;
    }
}