/* ============================================
   Pages Stylesheet (About, Sources)
   ============================================ */

.page-body {
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bg-primary);
}

/* ---- Navigation ---- */
.header-nav {
    display: flex;
    gap: 4px;
    margin-left: 8px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
    color: var(--accent);
    background: rgba(255, 68, 68, 0.1);
}

/* ---- Page Container ---- */
.page-container {
    padding-top: 80px;
    padding-bottom: 60px;
    min-height: 100vh;
}

.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Hero ---- */
.page-hero {
    text-align: center;
    padding: 48px 0 40px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}

.hero-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 5px 14px;
    border-radius: 20px;
    background: rgba(255, 68, 68, 0.1);
    color: var(--accent);
    border: 1px solid var(--border-accent);
    margin-bottom: 20px;
}

.page-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Content Sections ---- */
.content-section {
    margin-bottom: 40px;
}

.content-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}

.section-intro {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ---- Info Cards ---- */
.info-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
}

.info-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.info-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 8px;
}

.info-card ul, .info-card ol {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.8;
    padding-left: 20px;
    margin-bottom: 8px;
}

.info-card li {
    margin-bottom: 4px;
}

.info-card strong {
    color: var(--text-primary);
}

.info-card em {
    color: var(--accent-soft);
    font-style: italic;
}

.highlight-red {
    border-left: 3px solid var(--accent);
}

.card-subtitle {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 500;
}

.card-note {
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(255, 68, 68, 0.05);
    border-left: 2px solid var(--accent);
    border-radius: 0 6px 6px 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ---- Card Grid ---- */
.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 700px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Transmission Grid ---- */
.transmission-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 700px) {
    .transmission-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.transmission-item {
    text-align: center;
}

.transmission-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.transmission-item h4 {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.transmission-item p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ---- Data Table ---- */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.data-table th {
    background: rgba(255, 68, 68, 0.06);
    color: var(--text-secondary);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.data-table strong {
    color: var(--text-primary);
}

/* ---- Stat Row ---- */
.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    text-align: center;
}

.stat-big {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.stat-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ---- Source Cards ---- */
.source-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.source-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
}

.source-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.source-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
}

.source-type {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(255, 68, 68, 0.1);
    color: var(--accent);
    flex-shrink: 0;
}

.source-card ul {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.7;
    padding-left: 18px;
    margin-bottom: 12px;
}

.source-link {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding-top: 10px;
    border-top: 1px solid var(--border);
    line-height: 1.6;
}

.source-link code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-secondary);
}

.source-link a {
    color: var(--accent-soft);
    text-decoration: none;
}

.source-link a:hover {
    text-decoration: underline;
}

/* ---- Disclaimer ---- */
.disclaimer-card {
    border-color: var(--warning);
    border-left: 3px solid var(--warning);
    background: rgba(255, 170, 51, 0.03);
}

.disclaimer-card h3 {
    color: var(--warning);
}

/* ---- Page Footer ---- */
.page-footer {
    position: fixed;
    bottom: 0;
}

/* ============================================
   News Page Styles
   ============================================ */

/* ---- Status Bar ---- */
.news-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.news-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

.news-status-dot.live {
    background: var(--success);
    box-shadow: 0 0 6px rgba(68, 204, 136, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

/* ---- Year Filter ---- */
.news-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

.news-filter-label {
    color: var(--text-secondary);
    white-space: nowrap;
}

.news-filter-select {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.news-filter-select:hover,
.news-filter-select:focus {
    border-color: var(--accent);
}

.news-filter-select option {
    background: #1a1a2e;
    color: var(--text-primary);
}

.news-filter-count {
    color: var(--text-muted);
    font-size: 0.72rem;
    margin-left: auto;
}

/* ---- News Cards ---- */
.news-articles {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.news-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color 0.2s;
}

.news-card:hover {
    border-color: var(--border-accent);
}

.news-card-header {
    margin-bottom: 12px;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-card-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(255, 68, 68, 0.1);
    padding: 3px 10px;
    border-radius: 4px;
}

.news-card-id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--text-muted);
}

.news-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.news-card-summary {
    font-size: 0.85rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* ---- Expand/Collapse ---- */
.news-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 68, 68, 0.08);
    border: 1px solid var(--border-accent);
    border-radius: 6px;
    color: var(--accent);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 8px 18px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin-bottom: 4px;
}

.news-expand-btn:hover {
    background: rgba(255, 68, 68, 0.15);
}

.news-expand-btn.open {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.news-expand-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    padding: 0;
}

.news-expand-content.open {
    max-height: 8000px;
    padding: 20px 0 0;
}

.news-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.news-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 10px;
}

.news-section-text {
    font-size: 0.84rem;
    line-height: 1.8;
    color: var(--text-secondary);
    white-space: pre-line;
}

/* ---- Article Images / Figures ---- */
.news-figure {
    margin: 20px 0;
    padding: 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.news-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.news-figure-caption {
    padding: 10px 16px;
    font-size: 0.76rem;
    color: var(--text-secondary);
    font-style: italic;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.1);
}

/* ---- Card Footer / External Link ---- */
.news-card-footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.news-card-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-soft);
    text-decoration: none;
    transition: color 0.2s;
}

.news-card-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* ---- Fallback ---- */
.news-fallback .info-card {
    text-align: center;
}

.news-code {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    margin: 12px 0;
    text-align: left;
    color: var(--text-secondary);
    white-space: pre;
}

/* ---- News Page Responsive ---- */
@media (max-width: 600px) {
    .news-card {
        padding: 18px;
    }

    .news-card-title {
        font-size: 1rem;
    }

    .news-card-summary {
        font-size: 0.8rem;
    }

    .news-filter {
        flex-wrap: wrap;
        gap: 8px;
    }

    .news-filter-count {
        margin-left: 0;
        width: 100%;
    }

    .page-hero h1 { font-size: 1.6rem; }
    .stat-row { grid-template-columns: 1fr; }
}
