/* CVHOA Accountability Project — Master Stylesheet */
:root {
    --primary: #1a5276;
    --primary-light: #2e86c1;
    --accent: #c0392b;
    --accent-light: #e74c3c;
    --success: #27ae60;
    --warning: #f39c12;
    --bg: #f4f6f8;
    --card-bg: #ffffff;
    --text: #2c3e50;
    --text-light: #666;
    --border: #ddd;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
}
.container { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }

/* Navigation */
.main-nav {
    background: var(--primary);
    padding: 0.5rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.main-nav a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
    font-size: 0.82rem;
    white-space: nowrap;
    transition: all 0.2s;
}
.main-nav a:hover, .main-nav a.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* Hero sections */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
}
.hero h1 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.hero .subtitle { font-size: 1.1rem; opacity: 0.9; max-width: 700px; margin: 0.5rem auto 0; }

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.8rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-light);
}
.card h2, .card h3 { color: var(--primary); margin-bottom: 0.8rem; }

/* Stat boxes */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.stat-box {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: var(--shadow);
}
.stat-box .num { font-size: 1.8rem; font-weight: 800; color: var(--accent); display: block; }
.stat-box .label { font-size: 0.8rem; color: var(--text-light); }

/* Evidence boxes */
.evidence-box {
    background: #fdf2f2;
    border-left: 4px solid var(--accent);
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    border-radius: 0 6px 6px 0;
    font-size: 0.95rem;
}
.evidence-box .label { font-weight: 700; color: var(--accent); display: block; margin-bottom: 0.3rem; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.5px; }

.action-box {
    background: #eafaf1;
    border-left: 4px solid var(--success);
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    border-radius: 0 6px 6px 0;
}
.action-box .label { font-weight: 700; color: var(--success); display: block; margin-bottom: 0.3rem; text-transform: uppercase; font-size: 0.85rem; }

.statute-box {
    background: #eaf2f8;
    border-left: 4px solid var(--primary-light);
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    border-radius: 0 6px 6px 0;
    font-size: 0.95rem;
}
.statute-box .ref { font-weight: 700; color: var(--primary); display: block; margin-bottom: 0.3rem; }

.key-point {
    background: #fffceb;
    border: 1px solid #f0c929;
    border-radius: 6px;
    padding: 0.8rem 1rem;
    margin: 0.8rem 0;
    font-size: 0.95rem;
}
.key-point strong { color: #856404; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.btn-primary { background: var(--primary-light); color: white; }
.btn-primary:hover { background: var(--primary); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: #a93226; }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #219a52; }

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.93rem;
}
.data-table th {
    background: var(--primary);
    color: white;
    padding: 0.7rem;
    text-align: left;
}
.data-table td {
    padding: 0.6rem 0.7rem;
    border-bottom: 1px solid var(--border);
}
.data-table tr:nth-child(even) { background: #f8f9fa; }
.status-fail { color: var(--accent); font-weight: 600; }
.status-pass { color: var(--success); font-weight: 600; }
.status-warn { color: var(--warning); font-weight: 600; }

/* Disparity items */
.disparity-item {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.2rem;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--accent);
}
.disparity-item h3 { color: var(--primary); margin-bottom: 0.8rem; }
.board-says { background: #fdf2f2; border-left: 4px solid var(--accent); padding: 0.8rem 1rem; margin: 0.5rem 0; border-radius: 0 6px 6px 0; }
.but-also { background: #eafaf1; border-left: 4px solid var(--success); padding: 0.8rem 1rem; margin: 0.5rem 0; border-radius: 0 6px 6px 0; }
.source-cite { font-size: 0.82rem; color: var(--text-light); margin-top: 0.5rem; font-style: italic; }

/* Timeline */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before { content: ''; position: absolute; left: 0.9rem; top: 0; bottom: 0; width: 3px; background: linear-gradient(to bottom, var(--primary), var(--accent)); }
.timeline-item { position: relative; margin-bottom: 1.5rem; }
.timeline-item::before { content: ''; position: absolute; left: -2.05rem; top: 0.4rem; width: 14px; height: 14px; border-radius: 50%; background: var(--primary-light); border: 3px solid white; box-shadow: 0 0 0 2px var(--primary-light); }
.timeline-item.negative::before { background: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.timeline-item.positive::before { background: var(--success); box-shadow: 0 0 0 2px var(--success); }
.timeline-date { font-weight: 700; color: var(--primary); font-size: 0.9rem; }
.timeline-content { background: var(--card-bg); padding: 1rem; border-radius: 8px; box-shadow: var(--shadow); margin-top: 0.3rem; }
.era-divider { background: var(--primary); color: white; padding: 0.6rem 1rem; border-radius: 8px; margin: 2rem 0 1rem; font-weight: 700; font-size: 1rem; }

/* Tags */
.tag {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.3rem;
}
.tag-financial { background: #fdebd0; color: #935116; }
.tag-enforcement { background: #fadbd8; color: #922b21; }
.tag-governance { background: #d4efdf; color: #1e8449; }
.tag-legal { background: #d6eaf8; color: #1b4f72; }
.tag-records { background: #e8daef; color: #6c3483; }
.tag-liens { background: #f9e79f; color: #7d6608; }

/* Quiz */
.quiz-question {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}
.quiz-question h3 { color: var(--primary); margin-bottom: 1rem; }
.quiz-option { display: block; padding: 0.6rem 1rem; margin: 0.3rem 0; border: 2px solid var(--border); border-radius: 6px; cursor: pointer; transition: all 0.2s; }
.quiz-option:hover { border-color: var(--primary-light); background: #eaf2f8; }
.quiz-option input { margin-right: 0.5rem; }
.answer-reveal { display: none; margin-top: 1rem; padding: 1rem; border-radius: 6px; background: #eafaf1; border-left: 4px solid var(--success); }

/* Forms */
input[type="text"], input[type="email"], textarea, select {
    width: 100%;
    padding: 0.6rem;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    margin-bottom: 0.5rem;
}
input:focus, textarea:focus, select:focus { border-color: var(--primary-light); outline: none; }

/* Letter output */
.letter-output {
    background: white;
    border: 1px solid var(--border);
    padding: 2rem;
    margin: 1.5rem 0;
    font-family: 'Georgia', serif;
    line-height: 1.8;
    border-radius: var(--radius);
}

/* Filter buttons */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.filter-btn {
    padding: 0.4rem 1rem;
    border: 2px solid var(--border);
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* Pillar grid */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    margin: 1.5rem 0;
}
.pillar-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.3rem;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-light);
    transition: transform 0.2s;
}
.pillar-card:hover { transform: translateY(-3px); }
.pillar-card h3 { color: var(--primary); font-size: 1.05rem; margin-bottom: 0.5rem; }
.pillar-card p { font-size: 0.88rem; color: var(--text-light); margin-bottom: 0.8rem; }
.pillar-card a { color: var(--primary-light); text-decoration: none; font-weight: 600; font-size: 0.9rem; }

/* Footer */
footer {
    background: #1a252f;
    color: #ccc;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}
footer .disclaimer { font-size: 0.82rem; opacity: 0.7; margin-top: 0.5rem; }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.7rem; }
    .main-nav { gap: 0.1rem; }
    .main-nav a { font-size: 0.75rem; padding: 0.25rem 0.4rem; }
    .card { padding: 1.2rem; }
    .stats-bar { grid-template-columns: repeat(3, 1fr); }
    .pillar-grid { grid-template-columns: 1fr; }
}

/* Print */
@media print {
    .main-nav, .btn, .filter-bar { display: none; }
    body { font-size: 12pt; background: white; }
    .card, .disparity-item, .timeline-content { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
    .hero { background: white !important; color: black !important; border-bottom: 3px solid black; }
}