/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --gold: #C9A04F;
    --gold-light: #E8C97A;
    --gold-dark: #A8843F;
    --bg: #111010;
    --bg-card: #1A1816;
    --bg-elevated: #242120;
    --text: #F0EBE5;
    --text-muted: #9E9589;
    --border: #2E2A27;
    --radius: 12px;
    --max-w: 1100px;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.85; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(17,16,16,0.92); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 60px; gap: 24px;
}
.logo {
    font-family: var(--font-display); font-size: 20px; font-weight: 800;
    color: var(--gold); display: flex; align-items: center;
}
.nav { display: flex; gap: 8px; }
.nav-link {
    padding: 6px 14px; border-radius: 8px;
    font-size: 14px; font-weight: 500; color: var(--text-muted);
    transition: all 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--bg-elevated); }
.btn-cta-header {
    padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 700;
    background: var(--gold); color: #111; transition: all 0.2s;
}
.btn-cta-header:hover { background: var(--gold-light); opacity: 1; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span {
    display: block; width: 20px; height: 2px; background: var(--text-muted);
    margin: 4px 0; transition: 0.2s;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    padding: 16px 20px; font-size: 13px; color: var(--text-muted);
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs .sep { margin: 0 8px; opacity: 0.4; }
.breadcrumbs .current { color: var(--text); }

/* ===== HERO ===== */
.hero {
    padding: 80px 20px 60px; text-align: center;
}
.hero h1 {
    font-family: var(--font-display); font-size: 48px; font-weight: 800;
    line-height: 1.15; margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text), var(--gold-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 18px; color: var(--text-muted); max-width: 560px;
    margin: 0 auto 32px; line-height: 1.7;
}
.btn-cta {
    display: inline-block; padding: 14px 32px; border-radius: 10px;
    font-size: 15px; font-weight: 700;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #111; transition: all 0.2s;
}
.btn-cta:hover { transform: translateY(-1px); opacity: 1; box-shadow: 0 8px 24px rgba(201,160,79,0.25); }

/* ===== SECTION TITLES ===== */
.section { padding: 60px 0; }
.section-title {
    font-family: var(--font-display); font-size: 32px; font-weight: 800;
    margin-bottom: 8px;
}
.section-sub { color: var(--text-muted); font-size: 15px; margin-bottom: 32px; }

/* ===== CARDS ===== */
.card-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; transition: all 0.2s;
}
.card:hover { border-color: var(--gold-dark); transform: translateY(-2px); }
.card-img {
    width: 100%; height: 180px; object-fit: cover; border-radius: 8px;
    margin-bottom: 14px;
}
.card-img-round {
    width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
    margin: 0 auto 14px;
}
.logo-icon {
    width: 30px; height: 30px; border-radius: 8px; display: inline-block;
    vertical-align: middle; margin-right: 8px;
}
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.card .card-sub { font-size: 13px; color: var(--gold); margin-bottom: 10px; font-weight: 600; }
.card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.card .card-link {
    display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600;
    color: var(--gold);
}

/* ===== STORY PAGE ===== */
.story-header { padding: 40px 0 20px; }
.story-header h1 {
    font-family: var(--font-display); font-size: 40px; font-weight: 800;
    margin-bottom: 8px;
}
.story-ref {
    display: inline-block; padding: 4px 12px; border-radius: 6px;
    font-size: 13px; font-weight: 600; color: var(--gold);
    background: rgba(201,160,79,0.1); border: 1px solid rgba(201,160,79,0.2);
}
.story-content {
    max-width: 720px; padding: 20px 0 40px;
}
.story-content p {
    font-size: 17px; line-height: 1.8; margin-bottom: 20px; color: var(--text);
}
.story-content h2 {
    font-family: var(--font-display); font-size: 24px; margin: 36px 0 16px;
}
.story-content blockquote {
    border-left: 3px solid var(--gold); padding: 12px 20px; margin: 24px 0;
    background: var(--bg-card); border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic; color: var(--text-muted);
}
.moral-box {
    padding: 24px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); margin: 32px 0;
}
.moral-box h3 { font-size: 14px; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.moral-box p { font-size: 15px; color: var(--text); }

/* ===== CHARACTER PAGE ===== */
.char-meta { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0 24px; }
.char-badge {
    padding: 4px 12px; border-radius: 6px; font-size: 12px; font-weight: 600;
    background: var(--bg-elevated); color: var(--text-muted); border: 1px solid var(--border);
}
.fun-facts { list-style: none; padding: 0; }
.fun-facts li {
    padding: 12px 0; border-bottom: 1px solid var(--border);
    font-size: 15px; color: var(--text-muted);
}
.fun-facts li::before { content: '→ '; color: var(--gold); font-weight: 700; }

/* ===== VERSE PAGE ===== */
.verse-display {
    padding: 40px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); margin: 24px 0; text-align: center;
}
.verse-display .verse-text {
    font-family: var(--font-display); font-size: 24px; line-height: 1.6;
    margin-bottom: 16px;
}
.verse-display .verse-ref { font-size: 14px; color: var(--gold); font-weight: 600; }

/* ===== APP CTA ===== */
.app-cta {
    padding: 60px 0; margin: 40px 0;
    background: linear-gradient(135deg, rgba(201,160,79,0.08), rgba(201,160,79,0.03));
    border-top: 1px solid rgba(201,160,79,0.15);
    border-bottom: 1px solid rgba(201,160,79,0.15);
    text-align: center;
}
.app-cta h2 { font-family: var(--font-display); font-size: 28px; margin-bottom: 10px; }
.app-cta p { color: var(--text-muted); font-size: 16px; margin-bottom: 24px; }

/* ===== RELATED SECTION ===== */
.related { padding: 40px 0; }
.related h2 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }

/* ===== FOOTER ===== */
.site-footer {
    margin-top: 60px; padding: 48px 0 0;
    border-top: 1px solid var(--border);
}
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 300px; }
.footer-brand p { font-size: 14px; color: var(--text-muted); margin-top: 8px; }
.footer-links { display: flex; gap: 60px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: var(--text-muted); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
    padding: 24px 0; margin-top: 32px;
    border-top: 1px solid var(--border);
    font-size: 13px; color: var(--text-muted);
}

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 6px; justify-content: center; padding: 32px 0; }
.pagination a, .pagination span {
    padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500;
    background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted);
}
.pagination .active { background: var(--gold); color: #111; border-color: var(--gold); }

/* ===== 404 ===== */
.not-found { text-align: center; padding: 100px 20px; }
.not-found h1 { font-family: var(--font-display); font-size: 64px; color: var(--gold); }
.not-found p { color: var(--text-muted); margin: 12px 0 24px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    .section-title { font-size: 26px; }
    .story-header h1 { font-size: 30px; }
    .story-content p { font-size: 16px; }
    .card-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; }
    .footer-links { gap: 32px; }

    .nav {
        display: none; position: absolute; top: 60px; left: 0; right: 0;
        flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--border);
        padding: 12px 20px;
    }
    .nav.open { display: flex; }
    .btn-cta-header { display: none; }
    .menu-toggle { display: block; }

    .verse-display { padding: 24px; }
    .verse-display .verse-text { font-size: 20px; }
}
