/* Quiz Page Styles – Futbol.az */
:root {
    --bg: #0f1923;
    --surface: #1a2634;
    --card: #243447;
    --text: #e8edf2;
    --text-muted: #8899a6;
    --primary: #1da1f2;
    --primary-hover: #1a91da;
    --success: #17bf63;
    --danger: #e0245e;
    --warning: #ffad1f;
    --border: #38444d;
    --radius: 12px;
}

body.light {
    --bg: #f5f8fa;
    --surface: #ffffff;
    --card: #f0f3f5;
    --text: #14171a;
    --text-muted: #657786;
    --border: #e1e8ed;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 1rem;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav a:hover, .nav a.active {
    color: var(--primary);
}

.theme-btn {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main Container */
.quiz-container {
    flex: 1;
    max-width: 700px;
    margin: 2rem auto;
    padding: 0 1rem;
    width: 100%;
}

.screen {
    animation: fadeIn 0.3s ease;
}

.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Start Screen */
#start-screen {
    text-align: center;
    padding: 3rem 1rem;
}

#start-screen h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.difficulty-select {
    margin: 2rem 0;
}

.difficulty-select h3 {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.diff-btn {
    background: var(--card);
    border: 2px solid var(--border);
    color: var(--text);
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    margin: 0 0.3rem;
    transition: all 0.2s;
}

.diff-btn:hover {
    border-color: var(--primary);
}

.diff-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 1rem;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--card);
    color: var(--text);
    border: 2px solid var(--border);
    padding: 1rem 2.5rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.high-score {
    margin-top: 2rem;
    color: var(--text-muted);
}

/* Quiz Screen */
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 600;
}

.timer {
    background: var(--card);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.timer.warning {
    color: var(--danger);
    animation: pulse 0.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--card);
    border-radius: 3px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

.question-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

#question-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.option-btn {
    background: var(--card);
    border: 2px solid var(--border);
    color: var(--text);
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1rem;
    text-align: left;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.option-btn:hover:not(.disabled) {
    border-color: var(--primary);
    background: rgba(29, 161, 242, 0.1);
}

.option-btn.correct {
    border-color: var(--success);
    background: rgba(23, 191, 99, 0.15);
}

.option-btn.wrong {
    border-color: var(--danger);
    background: rgba(224, 36, 94, 0.15);
}

.option-btn.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.option-letter {
    background: var(--border);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Result Screen */
#result-screen {
    text-align: center;
    padding: 2rem 1rem;
}

#result-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.result-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--surface);
    border: 4px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    font-weight: 700;
}

#result-message {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.result-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

/* Responsive */
@media (max-width: 600px) {
    #start-screen h1 {
        font-size: 1.8rem;
    }

    .quiz-header {
        font-size: 0.85rem;
    }

    .question-card {
        padding: 1.2rem;
    }

    #question-text {
        font-size: 1.05rem;
    }

    .result-stats {
        gap: 1.2rem;
    }

    .nav {
        gap: 0.5rem;
        font-size: 0.9rem;
    }
}
