/* ============================================================
   SearchUFOs News — Dedicated Stylesheet
   Professional light theme, dark slate (#2d3748) accent.
   Used exclusively on news/index.php and news/article.php.
   ============================================================ */

/* ── Reset & Base ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body.news-page,
body.news-article-page {
    background: #f7fafc;
    color: #1a202c;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

/* ════════════════════════════════════════════════════════════
   NAVBAR OVERRIDE (injected via fetch from root navbar.html)
   ════════════════════════════════════════════════════════════ */

body.news-page .site-nav,
body.news-article-page .site-nav {
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

body.news-page .site-nav-brand span,
body.news-article-page .site-nav-brand span {
    color: #2d3748 !important;
}

body.news-page .site-nav-brand:hover span,
body.news-article-page .site-nav-brand:hover span {
    color: #5a6a7e !important;
}

body.news-page .site-nav-links a,
body.news-article-page .site-nav-links a {
    color: #555555 !important;
}

body.news-page .site-nav-links a:hover,
body.news-article-page .site-nav-links a:hover,
body.news-page .site-nav-links a.active,
body.news-article-page .site-nav-links a.active {
    background: rgba(45, 55, 72, 0.08) !important;
    color: #2d3748 !important;
}

body.news-page .theme-toggle-nav,
body.news-article-page .theme-toggle-nav {
    border-color: rgba(45, 55, 72, 0.2) !important;
    color: #555555 !important;
}

body.news-page .theme-toggle-nav:hover,
body.news-article-page .theme-toggle-nav:hover {
    background: rgba(45, 55, 72, 0.08) !important;
    color: #2d3748 !important;
}

/* ════════════════════════════════════════════════════════════
   FOOTER OVERRIDE (injected via fetch from root case-footer.html)
   ════════════════════════════════════════════════════════════ */

body.news-page .case-footer,
body.news-article-page .case-footer {
    border-top: 1px solid #e2e8f0 !important;
    padding: 24px 20px !important;
    text-align: center !important;
    margin-top: 48px;
}

body.news-page .footer-text,
body.news-article-page .footer-text {
    font-family: 'Share Tech Mono', monospace !important;
    color: #a0aec0 !important;
    font-size: 0.7em !important;
    letter-spacing: 1px !important;
    display: block;
    margin: 4px 0;
}

body.news-page .case-credit,
body.news-article-page .case-credit {
    text-align: center;
    font-size: 0.68em;
    color: #a0aec0;
    margin: 12px 0 24px;
}

body.news-page .case-credit a,
body.news-article-page .case-credit a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 600;
}

body.news-page .case-credit a:hover,
body.news-article-page .case-credit a:hover {
    color: #2d3748;
}

/* ════════════════════════════════════════════════════════════
   BREADCRUMBS
   ════════════════════════════════════════════════════════════ */

.news-breadcrumbs {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 24px 0;
    font-size: 0.78em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-breadcrumbs a {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.2s;
}

.news-breadcrumbs a:hover {
    color: #2d3748;
}

.news-breadcrumbs .separator {
    color: #cbd5e0;
    margin: 0 8px;
}

.news-breadcrumbs .current {
    color: #a0aec0;
}

/* ════════════════════════════════════════════════════════════
   NEWS INDEX (Listing)
   ════════════════════════════════════════════════════════════ */

.news-page .page-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 24px 60px;
}

.news-header {
    text-align: center;
    padding: 48px 0 36px;
    margin-bottom: 40px;
    position: relative;
}

.news-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #2d3748;
    margin: 0 auto;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.news-heading {
    font-family: 'Oswald', sans-serif;
    font-size: 2.4em;
    font-weight: 600;
    color: #2d3748;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.news-subtitle {
    color: #718096;
    font-size: 1em;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.news-empty {
    text-align: center;
    padding: 80px 0;
    color: #a0aec0;
    font-size: 1.1em;
}

/* ── Article Card Grid ── */

.news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.news-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.news-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: #edf2f7;
}

.news-card-img-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #edf2f7;
    color: #cbd5e0;
    font-size: 2.2em;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.news-card-body {
    padding: 20px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.75em;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.news-card-meta time {
    color: #a0aec0;
}

.news-card-author {
    color: #4a5568;
}

.news-card-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.15em;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 10px;
}

.news-card-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.2s;
}

.news-card-title a:hover {
    color: #2d3748;
}

.news-card-excerpt {
    color: #718096;
    line-height: 1.65;
    font-size: 0.88em;
    margin-bottom: 14px;
    flex: 1;
}

.news-card-footer {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: auto;
}

.news-read-more {
    color: #4a5568;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8em;
    transition: color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-read-more:hover {
    color: #2d3748;
}

.news-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.68em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #edf2f7;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

/* ── Pagination ── */

.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
    padding: 24px 0;
    border-top: 1px solid #e2e8f0;
}

.news-page-link {
    color: #4a5568;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.82em;
    padding: 10px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-page-link:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    color: #2d3748;
}

.news-page-info {
    color: #a0aec0;
    font-size: 0.82em;
}

/* ════════════════════════════════════════════════════════════
   NEWS ARTICLE (Single Article)
   ════════════════════════════════════════════════════════════ */

.news-article-page .page-wrap {
    max-width: 880px;
    margin: 0 auto;
    padding: 20px 24px 60px;
}

/* ── Featured Image ── */

.news-article-featured-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    margin-bottom: 32px;
    background: #edf2f7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.news-article-featured-img-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #edf2f7;
    color: #cbd5e0;
    font-size: 2.5em;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 32px;
}

/* ── Article Header ── */

.news-article-header {
    text-align: center;
    max-width: 740px;
    margin: 0 auto 40px;
    padding-bottom: 32px;
    position: relative;
}

.news-article-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #2d3748;
    margin: 0 auto;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.news-article-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.news-article-meta time {
    color: #a0aec0;
}

.news-article-meta .news-card-author {
    color: #4a5568;
}

.news-article-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.2em;
    font-weight: 600;
    color: #1a202c;
    line-height: 1.15;
    margin-bottom: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.news-article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 16px;
}

/* ── Article Body ── */

.news-article-body {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.15em;
    line-height: 1.85;
    color: #374151;
    max-width: 720px;
    margin: 0 auto;
}

.news-article-body h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5em;
    font-weight: 500;
    color: #2d3748;
    margin: 40px 0 14px;
    letter-spacing: 0.3px;
}

.news-article-body h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2em;
    font-weight: 500;
    color: #1a202c;
    margin: 28px 0 12px;
}

.news-article-body p {
    margin-bottom: 18px;
}

.news-article-body blockquote {
    border-left: 4px solid #2d3748;
    margin: 28px 0;
    padding: 16px 24px;
    background: #f7fafc;
    border-radius: 0 8px 8px 0;
    color: #4a5568;
    font-style: italic;
    font-size: 1.05em;
}

.news-article-body blockquote p {
    margin-bottom: 0;
}

.news-article-body ul,
.news-article-body ol {
    margin: 16px 0 20px 28px;
    line-height: 1.8;
}

.news-article-body li {
    margin-bottom: 8px;
}

.news-article-body a {
    color: #4a5568;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.news-article-body a:hover {
    color: #2d3748;
}

.news-article-body strong {
    color: #1a202c;
}

.news-article-body em {
    color: #4a5568;
}

.news-article-body hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 36px 0;
}

.news-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}

/* ── Social Share ── */

.news-article-share {
    max-width: 720px;
    margin: 40px auto 0;
    padding: 24px 0 0;
    border-top: 1px solid #e2e8f0;
}

.news-article-share .social-share {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.news-article-share .social-share-label {
    font-size: 0.75em;
    color: #a0aec0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 12px;
}

.news-article-share .share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.75em;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #4a5568;
    transition: all 0.15s;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.news-article-share .share-btn:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    color: #2d3748;
}

.news-article-share .share-reddit:hover {
    color: #ff4500;
    border-color: #ff4500;
    background: rgba(255, 69, 0, 0.04);
}

.news-article-share .share-twitter:hover {
    color: #1da1f2;
    border-color: #1da1f2;
    background: rgba(29, 161, 242, 0.04);
}

.news-article-share .share-facebook:hover {
    color: #1877f2;
    border-color: #1877f2;
    background: rgba(24, 119, 242, 0.04);
}

.news-article-share .share-copy:hover {
    color: #2d3748;
    border-color: #2d3748;
    background: #f7fafc;
}

/* ── Article Footer ── */

.news-article-footer {
    max-width: 720px;
    margin: 32px auto 0;
    padding-top: 24px;
    text-align: center;
}

.news-back-link {
    color: #4a5568;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88em;
    transition: color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-back-link:hover {
    color: #2d3748;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */

@media (max-width: 860px) {
    .news-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-heading {
        font-size: 2em;
    }

    .news-article-title {
        font-size: 1.7em;
    }

    .news-article-body {
        font-size: 1.05em;
    }

    .news-article-featured-img {
        border-radius: 8px;
    }

    .news-article-share .social-share {
        gap: 6px;
    }

    .news-article-share .share-btn {
        font-size: 0.7em;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .news-heading {
        font-size: 1.6em;
        letter-spacing: 2px;
    }

    .news-header {
        padding: 32px 0 28px;
    }

    .news-card-body {
        padding: 16px 18px 18px;
    }

    .news-article-title {
        font-size: 1.4em;
    }

    .news-article-body {
        font-size: 1em;
    }

    .news-article-body blockquote {
        padding: 12px 16px;
        font-size: 1em;
    }

    .news-pagination {
        flex-wrap: wrap;
        gap: 12px;
    }
}
