:root {
    --primary-color: #ffffff;
    --primary-hover: #f1f1f1;
    --bg-dark: #050505;
    --card-bg: rgba(20, 20, 20, 0.6);
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --success: #22c55e;
    --error: #ef4444;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    --accent-glow: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 20px;
}

/* Background Animated Blobs - More subtle for premium feel */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(120px);
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: move 25s infinite alternate;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: #ffffff;
    top: -150px;
    left: -150px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: #3f3f46;
    bottom: -100px;
    right: -100px;
    animation-delay: -7s;
}

@keyframes move {
    from {
        transform: translate(0, 0) scale(1.0);
    }

    to {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* Quiz Container */
.quiz-container {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 3rem;
    width: 100%;
    max-width: 650px;
    box-shadow: var(--glass-shadow);
    z-index: 10;
    position: relative;
}

.quiz-header {
    margin-bottom: 2.5rem;
}

#quiz-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.progress-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#question-counter {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* AI Badge */
.ai-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    width: fit-content;
}

/* Question Image */
.question-image-container {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.question-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.question-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.answers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.report-link-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 2rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.report-link-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
    transform: translateY(-2px);
}

/* Answer Buttons */
.answer-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    color: var(--text-main);
    font-size: 1.05rem;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.answer-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.answer-btn.selected {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.answer-btn.correct {
    background: rgba(34, 197, 94, 0.15) !important;
    border-color: var(--success) !important;
    color: #4ade80 !important;
}

.answer-btn.wrong {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: var(--error) !important;
    color: #f87171 !important;
}

.answer-btn:disabled {
    cursor: default;
    opacity: 0.8;
}

/* Footer & Main Button */
.quiz-footer {
    margin-top: 2.5rem;
    display: flex;
    justify-content: flex-end;
}

.btn {
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 14px;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #f1f1f1;
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

/* Result Screen */
.result-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(15px);
}

.result-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 4rem 3rem;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: var(--glass-shadow);
}

.score-display {
    font-size: 4rem;
    font-weight: 800;
    margin: 2rem 0;
    color: #ffffff;
}

#result-message {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
}

.hidden {
    display: none !important;
}

/* Selection Screen */
.selection-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
    background: var(--bg-dark);
}

.selection-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 3.5rem;
    text-align: center;
    max-width: 650px;
    width: 90%;
    box-shadow: var(--glass-shadow);
}

.selection-card h1 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
}

.selection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.selection-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.selection-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.btn-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.btn-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Mobile Optimizations */
@media (max-width: 600px) {
    body {
        padding: 15px;
        align-items: flex-start;
        padding-top: 40px;
    }

    .quiz-container {
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }

    #quiz-title {
        font-size: 1.4rem;
    }

    .question-section h2 {
        font-size: 1.4rem;
    }

    .answer-btn {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }

    .btn {
        width: 100%;
    }

    .score-display {
        font-size: 3rem;
    }

    .selection-grid {
        grid-template-columns: 1fr;
    }

    .selection-card {
        padding: 2.5rem 1.5rem;
    }
}