/* Policy Wire - Professional Policy News Outlet */

:root {
    --primary: #0f2942;
    --primary-light: #1a4971;
    --secondary: #8b6914;
    --text: #0d1b2a;
    --text-medium: #2d3748;
    --text-light: #667080;
    --bg: #fafbfc;
    --bg-secondary: #f4f6f8;
    --card-bg: #ffffff;
    --border: #d4dae0;
    --border-light: #e8ebed;
    --border-accent: #c5a24a;
    --accent: #1e5a8e;
    --highlight: #fef9ed;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    line-height: 1.7;
    color: var(--text);
    background: linear-gradient(to bottom, #fafbfc 0%, #f5f7fa 100%);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* Header */
header {
    background: linear-gradient(180deg, #0a1f35 0%, #0f2942 100%);
    margin-bottom: 75px;
    color: white;
    padding: 2rem 0 1.75rem;
    border-bottom: 4px solid var(--secondary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(197, 162, 74, 0.3) 50%, transparent 100%);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand h1 {
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
}

.brand h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 60px;
    height: 2px;
    background: var(--secondary);
}

.brand h1 a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}

.brand h1 a:hover {
    opacity: 0.85;
}

.tagline {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.8125rem;
    opacity: 0.88;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
    margin-top: 0.75rem;
}

.location {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.875rem;
    opacity: 0.85;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

/* Main Content */
main {
    padding: 3rem 0 5rem;
    min-height: calc(100vh - 250px);
}

/* Featured Briefing */
.featured-briefing {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 3rem 3.5rem;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 41, 66, 0.3), 0 4px 12px rgba(15, 41, 66, 0.2);
    border-radius: 0;
    border-top: 6px solid var(--secondary);
}

.featured-briefing::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100px;
    width: 400px;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.03) 100%);
    transform: skewX(-15deg);
    pointer-events: none;
}

.featured-briefing::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 0;
    width: 200px;
    height: 6px;
    background: linear-gradient(90deg, rgba(197, 162, 74, 0.6) 0%, var(--secondary) 50%, rgba(197, 162, 74, 0.6) 100%);
}

.featured-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.label-bar {
    width: 4px;
    height: 20px;
    background: var(--secondary);
    border-radius: 2px;
}

.label-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.95;
}

.featured-content {
    position: relative;
    z-index: 1;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.8125rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.featured-category {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.3rem 0.75rem;
    border-radius: 3px;
    backdrop-filter: blur(10px);
}

.featured-date,
.featured-read-time {
    font-weight: 500;
}

.featured-headline {
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.featured-headline a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}

.featured-headline a:hover {
    opacity: 0.9;
}

.featured-excerpt {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.125rem;
    line-height: 1.7;
    opacity: 0.95;
    margin-bottom: 2rem;
    max-width: 90%;
}

.featured-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.featured-link {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.75rem 1.5rem;
    background: var(--secondary);
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 105, 20, 0.3);
}

.featured-link:hover {
    background: #a35c14;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 105, 20, 0.4);
}

.featured-source {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.8125rem;
    opacity: 0.85;
    font-weight: 500;
}

/* Briefing Header */
.briefing-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 3px solid var(--primary);
    position: relative;
    margin-top: 1rem;
}

.briefing-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 120px;
    height: 3px;
    background: var(--secondary);
}

.briefing-stats {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.875rem;
    color: var(--text-medium);
    background: var(--highlight);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid var(--border-accent);
}

.stat-item {
    font-weight: 500;
}

.stat-separator {
    margin: 0 0.75rem;
    color: var(--text-light);
}

/* Articles List */
h2 {
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    margin-bottom: 0;
    color: var(--primary);
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    text-transform: none;
}

.articles-list {
    display: grid;
    gap: 1.5rem;
}

.article-card {
    background: var(--card-bg);
    border-left: 5px solid var(--primary);
    padding: 2rem 2.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left-color: var(--secondary);
    transform: translateY(-2px);
}

.article-card:hover::before {
    opacity: 1;
}

.article-header {
    margin-bottom: 1rem;
}

.article-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.625rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.8125rem;
    color: var(--text-medium);
}

.source-label {
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.6875rem;
    background: var(--highlight);
    padding: 0.25rem 0.625rem;
    border-radius: 3px;
    border: 1px solid var(--border-accent);
}

.category-label {
    font-weight: 500;
    color: var(--text-medium);
}

.date-label {
    color: var(--text-light);
}

.meta-separator {
    color: var(--border);
    font-weight: 300;
}

.article-headline {
    margin-bottom: 1rem;
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    font-size: 1.375rem;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.article-headline a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.article-headline a:hover {
    color: var(--accent);
}

.article-excerpt {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-medium);
    font-size: 0.9375rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border-light);
}

.word-count {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-light);
    font-size: 0.813rem;
    font-weight: 500;
}

.read-full {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8125rem;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    border: 2px solid var(--accent);
    border-radius: 3px;
    display: inline-block;
}

.read-full:hover {
    color: white;
    background: var(--accent);
    border-color: var(--accent);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 5rem 2.5rem;
    background: var(--card-bg);
    border-left: 5px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    border-radius: 0;
    border-top: 2px solid var(--border-light);
}

.empty-icon {
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    font-size: 1.75rem;
    color: var(--text-medium);
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.empty-hint {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 0.938rem;
}

.api-info {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 4px;
    text-align: left;
    max-width: 650px;
    margin: 0 auto;
    border: 1px solid var(--border);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.api-info strong {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.813rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-medium);
}

.api-info code {
    display: block;
    padding: 1rem;
    background: white;
    border-radius: 3px;
    margin-top: 0.875rem;
    font-size: 0.8125rem;
    overflow-x: auto;
    border: 1px solid var(--border);
    font-family: 'Courier New', Courier, monospace;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Full Article */
.article-full {
    background: var(--card-bg);
    border-radius: 0;
    padding: 3rem 3.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
    border-top: 6px solid var(--primary);
    position: relative;
}

.article-full::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 0;
    width: 150px;
    height: 6px;
    background: var(--secondary);
}

.breadcrumb {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.8125rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 0.5rem;
    color: var(--border);
}

.article-meta-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.813rem;
}

.source-badge {
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

.article-date {
    color: var(--text-light);
    font-size: 0.813rem;
}

.article-title {
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    font-size: 2.75rem;
    line-height: 1.25;
    margin-bottom: 2rem;
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.article-info {
    display: flex;
    gap: 2.5rem;
    padding: 1.5rem 1.75rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #ffffff 100%);
    border-radius: 4px;
    margin-bottom: 3rem;
    border: 1px solid var(--border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.info-value {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.875rem;
    color: var(--text-medium);
    font-weight: 600;
}

.article-content {
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    font-size: 1.1875rem;
    line-height: 1.85;
    color: var(--text);
    max-width: 750px;
}

.article-content p {
    margin-bottom: 1.75rem;
    text-align: justify;
}

.article-content p:first-of-type::first-letter {
    font-size: 3.5em;
    line-height: 0.9;
    float: left;
    margin: 0.1em 0.1em 0 0;
    font-weight: 700;
    color: var(--primary);
}

.article-footer-info {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 2px solid var(--border);
}

.metadata-box {
    background: linear-gradient(135deg, var(--highlight) 0%, var(--bg-secondary) 100%);
    padding: 2rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.metadata-box h3 {
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-accent);
}

.metadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.metadata-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.metadata-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.metadata-value {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.875rem;
    color: var(--text-medium);
    font-weight: 500;
}

.back-link {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.back-link a {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.938rem;
    transition: color 0.2s;
}

.back-link a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Footer */
footer {
    background: linear-gradient(180deg, #0f2942 0%, #0a1f35 100%);
    color: white;
    padding: 3rem 0 2.5rem;
    margin-top: 5rem;
    border-top: 4px solid var(--secondary);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--border-accent) 50%, transparent 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-brand strong {
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    font-size: 1.375rem;
    display: block;
    margin-bottom: 0.625rem;
    letter-spacing: 0.01em;
}

.footer-brand p {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9375rem;
    opacity: 0.88;
    line-height: 1.6;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.813rem;
    opacity: 0.85;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .location {
        font-size: 0.75rem;
    }

    .brand h1 {
        font-size: 1.75rem;
    }

    .location {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }

    .featured-briefing {
        padding: 2rem 1.75rem;
        margin-bottom: 3rem;
    }

    .featured-headline {
        font-size: 1.875rem;
    }

    .featured-excerpt {
        font-size: 1rem;
        max-width: 100%;
    }

    .featured-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .briefing-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-full {
        padding: 2rem;
    }

    .article-card {
        padding: 1.5rem 1.75rem;
    }

    .article-info {
        flex-direction: column;
        gap: 1rem;
    }

    .article-content {
        font-size: 1rem;
    }

    .article-content p {
        text-align: left;
    }

    .article-full {
        padding: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-info {
        text-align: left;
    }

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