/* ==========================================================================
   WelfareFinder - AdSense Optimized Premium Design
   Focus: Typography, Content Density, and Hierarchy
   ========================================================================== */
:root {
    /* Sophisticated Color Palette */
    --primary-color: #0f172a; /* Slate 900 */
    --accent-color: #2563eb;  /* Blue 600 */
    --warm-accent: #f59e0b;   /* Amber 500 */
    --success-color: #059669; /* Emerald 600 */
    
    --bg-color: #f8fafc;
    --surface-color: #ffffff;
    --text-main: #1e293b;     /* Slate 800 */
    --text-muted: #64748b;    /* Slate 500 */
    --border-color: #e2e8f0;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-premium: 0 20px 25px -5px rgba(0,0,0,0.05);

    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-pill: 9999px;
    
    --font-family: 'Inter', 'Pretendard', sans-serif;
}

[data-theme="dark"] {
    --bg-color: #020617;
    --surface-color: #0f172a;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #1e293b;
}

/* Base Reset & Typography */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.75; /* Improved for long reading */
    overflow-x: hidden;
}

/* Navigation & Header */
.top-banner {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 5%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-links {
    display: none;
    list-style: none;
    gap: 2rem;
}

@media (min-width: 1024px) { .nav-links { display: flex; } }

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a.active, .nav-links a:hover { color: var(--accent-color); }

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.025em;
}

.logo span { color: var(--accent-color); }

/* Hero Section: Rich Intro */
.hero-section {
    padding: 6rem 5%;
    text-align: center;
    background: radial-gradient(circle at top right, #eff6ff, transparent),
                radial-gradient(circle at bottom left, #fdf4ff, transparent);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.05em;
}

.hero-content h1 span { color: var(--accent-color); }

.hero-content p {
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.25rem;
    color: var(--text-muted);
}

/* Quick Notifier Widgets */
.notifier-quick-section { padding: 0 5% 4rem; margin-top: -2rem; }
.notifier-container {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--surface-color);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border-color);
}

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

.notifier-card {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

/* Policy List & News */
.policy-list-section, .welfare-news-section {
    padding: 5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .section-header { flex-direction: row; justify-content: space-between; align-items: flex-end; }
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

/* News Section Styling (AdSense Volume Booster) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border-left: 6px solid var(--warm-accent);
    box-shadow: var(--shadow-sm);
}

.news-card h4 { font-size: 1.25rem; margin-bottom: 1rem; font-weight: 800; }

/* Modal & Legal Text */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 1rem;
}

.modal-content {
    background: var(--surface-color);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    padding: 3rem;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-premium);
}

.legal-text { font-size: 0.95rem; color: var(--text-muted); }
.legal-text p { margin-bottom: 1rem; }

/* Footer Styling */
footer {
    background: var(--primary-color);
    color: white;
    padding: 6rem 5% 3rem;
}

.footer-content { max-width: 1200px; margin: 0 auto; }
.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-nav ul, .footer-legal ul { list-style: none; margin-top: 1.5rem; }
.footer-nav a, .footer-legal a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.75rem;
}

.footer-nav a:hover, .footer-legal a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

.hidden { display: none !important; }
