/* ============================================
   Eiyuden Chronicle: Hundred Heroes
   Fantasy Theme — Shared Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --bg-deep:       #0b0e17;
    --bg-main:       #111827;
    --bg-card:       #1a1f35;
    --bg-card-hover: #222845;
    --bg-parchment:  #1e2338;
    --accent-gold:   #d4a843;
    --accent-amber:  #c9973f;
    --accent-flame:  #e85d3a;
    --accent-blue:   #4a9eed;
    --accent-green:  #4ade80;
    --text-light:    #e8e0d4;
    --text-body:     #c5beb4;
    --text-muted:    #7e8594;
    --border-gold:   rgba(212, 168, 67, 0.25);
    --border-subtle: rgba(255,255,255,0.08);
    --checked-bg:    #0d2818;
    --checked-border:#2d6a4f;
    --shadow-glow:   rgba(212, 168, 67, 0.15);
    --parchment-overlay: linear-gradient(135deg, rgba(212,168,67,0.03) 0%, transparent 50%, rgba(212,168,67,0.02) 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Crimson Text', Georgia, 'Times New Roman', serif;
    background: var(--bg-deep);
    color: var(--text-body);
    line-height: 1.7;
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(212,168,67,0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(74,158,237,0.02) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(232,93,58,0.02) 0%, transparent 50%);
}

/* ---- HEADINGS ---- */
h1, h2, h3, h4 {
    font-family: 'Cinzel', 'Times New Roman', serif;
    color: var(--accent-gold);
    letter-spacing: 0.03em;
}

h1 { font-size: 2rem; font-weight: 900; }
h2 { font-size: 1.5rem; font-weight: 700; margin: 1.5rem 0 0.75rem; }
h3 { font-size: 1.2rem; font-weight: 600; margin: 1rem 0 0.5rem; }

/* ---- LINKS ---- */
a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.2s, text-shadow 0.2s;
}
a:hover {
    color: #f0d060;
    text-shadow: 0 0 8px rgba(212,168,67,0.4);
}

/* ---- ORNAMENTAL DIVIDERS ---- */
.divider {
    text-align: center;
    margin: 1.5rem 0;
    color: var(--accent-gold);
    opacity: 0.5;
    font-size: 1.2rem;
    letter-spacing: 0.5rem;
}
.divider::before { content: "— ✦ —"; }

/* ---- CARD STYLE ---- */
.card {
    background: var(--bg-card);
    background-image: var(--parchment-overlay);
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.03);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 15px var(--shadow-glow);
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    border: 1px solid var(--border-gold);
    background: linear-gradient(180deg, rgba(212,168,67,0.15) 0%, rgba(212,168,67,0.05) 100%);
    color: var(--accent-gold);
    cursor: pointer;
    transition: all 0.2s;
}
.btn:hover {
    background: linear-gradient(180deg, rgba(212,168,67,0.3) 0%, rgba(212,168,67,0.1) 100%);
    border-color: var(--accent-gold);
    color: #f0d060;
    box-shadow: 0 0 10px var(--shadow-glow);
}
.btn.active {
    background: linear-gradient(180deg, var(--accent-gold) 0%, var(--accent-amber) 100%);
    color: #0b0e17;
    border-color: var(--accent-gold);
}

.btn-danger {
    border-color: rgba(232,93,58,0.4);
    color: var(--accent-flame);
    background: linear-gradient(180deg, rgba(232,93,58,0.1) 0%, transparent 100%);
}
.btn-danger:hover {
    background: var(--accent-flame);
    color: #fff;
    border-color: var(--accent-flame);
}

/* ---- INPUTS ---- */
.input-field {
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    border: 1px solid var(--border-gold);
    background: var(--bg-deep);
    color: var(--text-light);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.input-field:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212,168,67,0.15);
}
.input-field::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
    background: rgba(212,168,67,0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(212,168,67,0.5); }

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
    h1 { font-size: 1.4rem; }
    h2 { font-size: 1.2rem; }
    .card { padding: 0.85rem; }
}
