:root {
    --primary-color: #0d3b66;
    --secondary-color: #faf0ca;
    --accent-color: #f4d35e;
    --text-color: #333333;
    --bg-color: #ffffff;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-serif: 'Georgia', serif;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-family: var(--font-serif);
}

header p {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    opacity: 0.9;
}

nav {
    background-color: #0a2d4d;
    padding: 1rem;
    text-align: center;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    font-weight: bold;
}

nav a:hover {
    color: var(--accent-color);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.hero {
    text-align: center;
    padding: 3rem 0;
    background-color: #f8f9fa;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.hero h2 {
    font-family: var(--font-serif);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.article-card {
    border: 1px solid #eee;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.article-card h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.article-card a {
    display: inline-block;
    margin-top: 1rem;
    color: #0d3b66;
    text-decoration: none;
    font-weight: bold;
}

.ad-container {
    margin: 2rem 0;
    text-align: center;
    background: #f0f0f0;
    padding: 1rem;
    min-height: 100px; /* Placeholder for ad */
}

article {
    max-width: 800px;
    margin: 0 auto;
}

article h1, article h2, article h3 {
    font-family: var(--font-serif);
    color: var(--primary-color);
}

footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 4rem;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #1e293b;
        --secondary-color: #1e293b;
        --accent-color: #f4d35e;
        --text-color: #f8f9fa;
        --bg-color: #0f172a;
    }

    .article-card {
        border: 1px solid #334155;
        background-color: #1e293b;
        box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    }

    .hero {
        background-color: #1e293b;
    }

    .table-of-contents {
        background-color: #1e293b !important;
        border-color: #334155 !important;
    }

    .ai-summary {
        background-color: #0f172a !important;
        border-color: #334155 !important;
    }
}

.ad-top-banner, .ad-mid-article, .ad-sticky-sidebar, .store-module {
    margin: 32px 0;
    padding: 0;
}
.ai-summary {
    background-color: #f8f9fa;
    border-left: 4px solid var(--accent-color);
    padding: 1rem 1.5rem;
    margin: 24px 0;
    font-style: italic;
}

/* 2026 UI Standards: Transitions & Abstract Backgrounds */
body {
    background-color: var(--bg-color);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    transition: background-color 0.3s ease, color 0.3s ease;
}

.article-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.site-logo {
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.05);
}

.hero {
    background-image: linear-gradient(135deg, rgba(13, 59, 102, 0.05) 0%, rgba(244, 211, 94, 0.05) 100%);
    border: 1px solid rgba(13, 59, 102, 0.1);
}

@media (prefers-color-scheme: dark) {
    body {
        background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }
    .hero {
        background-image: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.8) 100%);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
}

/* Market Trend Animations */
@keyframes pulse-dot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.pulse-indicator {
    animation: pulse-dot 2s infinite;
}

.trend-bar {
    transition: height 1s ease-in-out;
}

.trend-bar:hover {
    filter: brightness(1.2);
    cursor: pointer;
}

/* Print CSS: Intelligence Dossier Format */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-family: "Courier New", Courier, monospace !important;
    }

    header {
        background: none !important;
        color: #000000 !important;
        border-bottom: 2px solid #000000;
        padding: 0 0 1rem 0 !important;
        text-align: left !important;
    }

    header p::after {
        content: " [DOCUMENT RESTRICTED: EYES ONLY]";
        font-weight: bold;
    }

    nav, .ad-top-banner, .ad-mid-article, .ad-sticky-sidebar, .store-module, #revenue-vectors {
        display: none !important;
    }

    .article-card {
        border: none !important;
        border-bottom: 1px dashed #000000 !important;
        box-shadow: none !important;
    }

    .table-of-contents {
        border: 1px solid #000000 !important;
        background: none !important;
    }

    footer {
        background: none !important;
        color: #000000 !important;
        border-top: 1px solid #000000;
    }
}
