@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&family=Playfair+Display:wght@700;800;900&display=swap');

:root {
    --bg: #0f0f1a;
    --card-bg: #1a1a2e;
    --card-hover: #22223a;
    --accent-blue: #4fc3f7;
    --accent-red: #ef5350;
    --accent-gold: #ffd54f;
    --accent-green: #66bb6a;
    --accent-purple: #ab47bc;
    --accent-orange: #ffa726;
    --text: #e8e8f0;
    --text-muted: #9e9eb8;
    --border: rgba(255,255,255,0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 20% 50%, rgba(79,195,247,0.04) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(171,71,188,0.04) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 80%, rgba(239,83,80,0.03) 0%, transparent 50%);
    animation: bgFloat 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2%, -2%) rotate(1deg); }
    66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

/* ============ HEADER ============ */
.hero {
    text-align: center;
    padding: 60px 20px 40px;
    position: relative;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 6px 20px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, var(--accent-blue) 50%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============ TIMELINE ============ */
.timeline-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin: 30px auto;
    max-width: 700px;
    padding: 0 20px;
}

.timeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.timeline-node .dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid;
    background: var(--bg);
    transition: transform 0.3s;
}

.timeline-node:hover .dot {
    transform: scale(1.3);
}

.timeline-node .label {
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 6px;
    white-space: nowrap;
}

.timeline-line {
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-gold));
    opacity: 0.4;
    min-width: 30px;
}

/* ============ NAVIGATION ============ */
.nav-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 20px 30px;
}

.nav-tab {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.nav-tab::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-blue);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.nav-tab:hover,
.nav-tab.active {
    color: #fff;
    border-color: rgba(79,195,247,0.3);
    background: rgba(79,195,247,0.08);
}

.nav-tab:hover::before,
.nav-tab.active::before {
    transform: scaleX(1);
}

/* ============ SECTIONS ============ */
.section {
    max-width: 900px;
    margin: 0 auto 50px;
    padding: 0 20px;
    animation: fadeUp 0.6s ease-out;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.section-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 800;
}

.section-header .subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

/* ============ CARDS ============ */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 16px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 4px 0 0 4px;
}

.card:hover {
    background: var(--card-hover);
    border-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card p,
.card li {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.8;
}

.card ul {
    list-style: none;
    padding: 0;
}

.card ul li {
    padding: 6px 0 6px 24px;
    position: relative;
}

.card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* Card color themes */
.card.blue::before { background: var(--accent-blue); }
.card.blue h3 { color: var(--accent-blue); }
.card.blue ul li::before { color: var(--accent-blue); }

.card.red::before { background: var(--accent-red); }
.card.red h3 { color: var(--accent-red); }
.card.red ul li::before { color: var(--accent-red); }

.card.gold::before { background: var(--accent-gold); }
.card.gold h3 { color: var(--accent-gold); }
.card.gold ul li::before { color: var(--accent-gold); }

.card.green::before { background: var(--accent-green); }
.card.green h3 { color: var(--accent-green); }
.card.green ul li::before { color: var(--accent-green); }

.card.purple::before { background: var(--accent-purple); }
.card.purple h3 { color: var(--accent-purple); }
.card.purple ul li::before { color: var(--accent-purple); }

.card.orange::before { background: var(--accent-orange); }
.card.orange h3 { color: var(--accent-orange); }
.card.orange ul li::before { color: var(--accent-orange); }

/* ============ DATES GRID ============ */
.dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.date-chip {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    transition: all 0.3s;
    cursor: default;
}

.date-chip:hover {
    background: rgba(79,195,247,0.06);
    border-color: rgba(79,195,247,0.2);
    transform: translateY(-2px);
}

.date-chip .year {
    font-size: 1.3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.date-chip .event {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.4;
}

/* ============ DEFINITION BOX ============ */
.def-box {
    background: rgba(171,71,188,0.08);
    border: 1px solid rgba(171,71,188,0.2);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.def-box .def-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.def-box strong {
    color: var(--accent-purple);
}

.def-box p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ============ HIGHLIGHTS ============ */
.highlight {
    color: #fff;
    font-weight: 600;
}

.hl-blue { color: var(--accent-blue); }
.hl-red { color: var(--accent-red); }
.hl-gold { color: var(--accent-gold); }
.hl-green { color: var(--accent-green); }
.hl-purple { color: var(--accent-purple); }
.hl-orange { color: var(--accent-orange); }

/* ============ VS BOX ============ */
.vs-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: stretch;
    margin: 16px 0;
}

.vs-side {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
}

.vs-side h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.vs-side ul {
    list-style: none;
    padding: 0;
}

.vs-side ul li {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 4px 0;
}

.vs-badge {
    align-self: center;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
    color: #fff;
    font-weight: 900;
    font-size: 1.1rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============ STATS BAR ============ */
.stat-bar {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.stat-item {
    flex: 1;
    min-width: 140px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    transition: all 0.3s;
}

.stat-item:hover {
    background: rgba(255,213,79,0.06);
    border-color: rgba(255,213,79,0.2);
}

.stat-item .number {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============ QUIZ ============ */
.quiz-card {
    background: linear-gradient(135deg, rgba(79,195,247,0.08), rgba(171,71,188,0.08));
    border: 1px solid rgba(79,195,247,0.15);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 14px;
}

.quiz-card .question {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.quiz-card .question .q-num {
    background: var(--accent-blue);
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.answer-reveal {
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 0.88rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.answer-reveal .answer-text {
    opacity: 0;
    transition: opacity 0.3s;
}

.answer-reveal .click-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    color: var(--accent-blue);
    font-weight: 600;
    transition: opacity 0.3s;
}

.answer-reveal.revealed .answer-text {
    opacity: 1;
}

.answer-reveal.revealed .click-hint {
    opacity: 0;
}

/* ============ CONTRADICTIONS ============ */
.contradiction {
    background: rgba(239,83,80,0.06);
    border: 1px solid rgba(239,83,80,0.15);
    border-radius: 14px;
    padding: 20px;
    margin: 16px 0;
}

.contradiction h4 {
    color: var(--accent-red);
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contradiction .items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.contradiction .item {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 10px 14px;
    border-radius: 10px;
}

.contradiction .item.positive {
    background: rgba(102,187,106,0.08);
    border: 1px solid rgba(102,187,106,0.15);
}

.contradiction .item.negative {
    background: rgba(239,83,80,0.08);
    border: 1px solid rgba(239,83,80,0.15);
}

.contradiction .item strong {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.contradiction .item.positive strong { color: var(--accent-green); }
.contradiction .item.negative strong { color: var(--accent-red); }

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

/* ============ PROGRESS BAR ============ */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 1000;
    background: rgba(255,255,255,0.05);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple), var(--accent-gold));
    width: 0%;
    transition: width 0.1s;
}

/* ============ FOOTER ============ */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 600px) {
    .vs-container {
        grid-template-columns: 1fr;
    }
    .vs-badge {
        justify-self: center;
    }
    .contradiction .items {
        grid-template-columns: 1fr;
    }
    .dates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}