:root {
    --primary-hue: 220;
    /* Deep Blue */
    --accent-hue: 350;
    /* Red/Gold accents usually */
    --gold-hue: 45;

    --bg-dark: hsl(var(--primary-hue), 40%, 10%);
    --bg-panel: rgba(255, 255, 255, 0.05);
    --bg-glass: rgba(255, 255, 255, 0.1);

    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --accent-color: hsl(var(--accent-hue), 80%, 60%);
    --gold-color: hsl(var(--gold-hue), 80%, 60%);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* --- Dashboard / Hub Styles --- */
.hub-container {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hub-header {
    text-align: center;
    margin-bottom: 4rem;
}

.hub-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, var(--gold-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.hub-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}

.hub-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--gold-color);
}

.hub-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.hub-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.hub-card .card-icon {
    font-size: 2.5rem;
    color: var(--gold-color);
    margin-bottom: 1.5rem;
}

.hub-card .card-meta {
    margin-top: 2rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
}

/* Badge for New Items */
.badge-new {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow: hidden;
    /* App-like feel */
    height: 100vh;
    width: 100vw;
}

/* --- Animated Background --- */
.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #1a2a44 0%, #0a0f1c 100%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-color);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: #4a90e2;
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 50px);
    }
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle, black 40%, transparent 80%);
}

/* --- Header --- */
.app-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.brand-logo {
    height: 50px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.slide-counter {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    opacity: 0.8;
}

.progress-bar-container {
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gold-color);
    transition: width 0.5s ease;
    box-shadow: 0 0 10px var(--gold-color);
}

/* --- Main Structure --- */
#presentation-container {
    height: 100%;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slides-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(50px) scale(0.95);
    transition: all 0.6s var(--ease-elastic);
}

.slide.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

.slide.exit-up {
    opacity: 0;
    transform: translateY(-100px) scale(0.9);
}

/* --- Content Styling --- */
.glass-panel {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 3rem;
    max-width: 900px;
    width: 90%;
    margin: 0 auto;
    text-align: center;
    color: var(--text-main);
}

.main-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin: 1rem 0;
    background: linear-gradient(to right, #fff, #aebaf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sub-title {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    color: var(--gold-color);
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.btn-start {
    background: var(--gold-color);
    color: #000;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-start:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

/* --- Grids & Lists --- */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
    text-align: left;
}

.card-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 3px solid var(--accent-color);
    transition: 0.3s;
}

.card-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.card-item h4 {
    color: var(--gold-color);
    margin: 0.5rem 0;
}

.card-item i {
    font-size: 1.5rem;
    color: var(--text-muted);
}

/* --- Timeline --- */
.timeline-container {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.timeline-step {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 10px;
    position: relative;
}

.step-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #444;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: bold;
}

.step-badge.warning {
    background: #eab308;
    color: #000;
}

.step-badge.orange {
    background: #f97316;
}

.step-badge.red {
    background: #ef4444;
}

.step-badge.severe {
    background: #7f1d1d;
}

/* --- Spiritual & Danger Themes --- */
.danger-theme {
    border-left: 4px solid #ef4444;
}

.spiritual-theme {
    border-left: 4px solid #3b82f6;
}

.highlight-danger {
    color: #ef4444;
    font-weight: bold;
}

/* --- Nav Controls --- */
.nav-controls {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.nav-btn:hover {
    background: white;
    color: black;
}

/* --- Game UI --- */
.game-intro {
    text-align: center;
}

.pulse-icon {
    font-size: 4rem;
    color: var(--gold-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.stats-preview {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
    color: var(--text-muted);
}

.game-header {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
}

.question-card {
    background: white;
    color: #1a2a44;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-option {
    background: #f0f0f0;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    color: #333;
    font-weight: 600;
}

.btn-option:hover {
    background: var(--primary-hue);
    color: #000;
    /* Will be overridden by specificity if needed, but keeping simple */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-option.correct {
    background: #22c55e !important;
    color: white !important;
}

.btn-option.wrong {
    background: #ef4444 !important;
    color: white !important;
}

.hidden {
    display: none !important;
}

/* Responsiveness */
@media (max-width: 768px) {
    .grid-2-col {
        grid-template-columns: 1fr;
    }

    .timeline-container {
        flex-direction: column;
    }

    .timeline-step {
        margin-bottom: 1.5rem;
    }

    .split-layout {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .main-title {
        font-size: 2.5rem;
    }
}