/* Quiz-specific styles */

.start-screen-content {
    text-align: center;
    padding: 2rem 1.5rem;
}

.welcome-logo {
    max-width: 100%;
    width: 350px;
    height: auto;
    margin: 0 auto 1.5rem;
    display: block;
    /* animation: float 3s ease-in-out infinite; */
}

.welcome-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bitcoin-orange);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.welcome-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: bold;
}

.rules-section {
    text-align: left;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.rules-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    text-align: center;
    letter-spacing: 0.01em;
}

.rules-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(247, 147, 26, 0.05);
    border-radius: 0.75rem;
    border: 1px solid rgba(247, 147, 26, 0.15);
}

.rule-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 0.125rem;
}

.rule-text {
    color: var(--text-primary);
    font-size: 0.9375rem;
    line-height: 1.6;
    font-weight: 500;
}

.btn-start {
    font-size: 1.5rem;
    padding: 1.5rem 3rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #f7931a 0%, #ff8c00 100%);
    border: none;
    box-shadow: 0 8px 20px rgba(247, 147, 26, 0.3);
    transition: box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn-start::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.btn-start:hover::before {
    left: 100%;
}

.btn-start:hover {
    box-shadow: 0 12px 30px rgba(247, 147, 26, 0.4);
}

.btn-start:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(247, 147, 26, 0.3);
}

.timer-container {
    margin-bottom: 1.5rem;
}

.timer-bar {
    position: relative;
    width: 100%;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.timer-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #4ade80, #22c55e);
    transition: clip-path 0.05s linear, background 0.3s ease;
    border-radius: 0.875rem;
    clip-path: inset(0 0 0 0);
}

.timer-progress.timer-warning {
    animation: flash-red 0.5s ease-in-out infinite;
}

@keyframes flash-red {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.timer-text {
    position: absolute;
    width: 100%;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    z-index: 10;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.05em;
}

.timeout-notice {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-left: 4px solid #ef4444;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    animation: pulse-red-border 1s ease-in-out 2;
}

.timeout-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.timeout-content {
    flex: 1;
}

.timeout-title {
    color: #ef4444;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    letter-spacing: 0.01em;
}

.timeout-message {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9375rem;
    opacity: 0.9;
}

@keyframes pulse-red-border {
    0%, 100% { border-color: rgba(239, 68, 68, 0.3); }
    50% { border-color: rgba(239, 68, 68, 0.6); }
}

.correct-answer-notice {
    padding: 1rem 1.25rem;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-left: 4px solid #4ade80;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.correct-answer-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.correct-answer-text {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
}

.time-bonus-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: rgba(74, 222, 128, 0.2);
    border: 2px solid rgba(74, 222, 128, 0.4);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    color: #4ade80;
    font-weight: 700;
    font-size: 0.9375rem;
    animation: bounce-in 0.5s ease-out;
}

.time-bonus-badge.reduced {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.4);
    color: #fbbf24;
}

@keyframes bounce-in {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.user-level-card {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, rgba(247, 147, 26, 0.15) 0%, rgba(247, 147, 26, 0.05) 100%);
    border: 2px solid rgba(247, 147, 26, 0.25);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-md);
}

.user-level-label {
    font-size: 0.8125rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.user-level-value {
    font-size: 4rem;
    font-weight: 700;
    color: var(--bitcoin-orange);
    line-height: 1;
    letter-spacing: -0.03em;
}

.elo-change {
    margin-top: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.elo-change-animated {
    position: fixed;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    animation: elo-float 2s ease-out forwards;
}

@keyframes elo-float {
    0% {
        opacity: 1;
        font-size: 1.5rem;
        transform: translate(-50%, -50%) translateY(0);
    }
    100% {
        opacity: 0;
        font-size: 3rem;
        transform: translate(-50%, -50%) translateY(-100px);
    }
}

.elo-up {
    color: var(--success);
}

.elo-down {
    color: var(--error);
}

.question-card {
    margin-bottom: 1.5rem;
}

.question-text {
    font-size: 1.375rem;
    font-weight: 500;
    margin-bottom: 1.75rem;
    line-height: 1.6;
    color: var(--text-primary);
}

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

.option-btn {
    padding: 1.25rem 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-size: 1.0625rem;
    width: 100%;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.option-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(247, 147, 26, 0.1) 0%, transparent 100%);
    transition: width 0.3s ease;
}

.option-btn:hover:not(:disabled)::before {
    width: 100%;
}

.option-btn:hover:not(:disabled) {
    border-color: var(--bitcoin-orange);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

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

.option-btn.correct {
    background: rgba(74, 222, 128, 0.15);
    border-color: var(--success);
    color: var(--text-primary);
}

.option-btn.incorrect {
    background: rgba(248, 113, 113, 0.15);
    border-color: var(--error);
    color: var(--text-primary);
    animation: pulse-red 0.5s ease-in-out 2;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.shake {
    animation: shake 0.6s ease-in-out;
}

@keyframes pulse-red {
    0%, 100% { background: rgba(248, 113, 113, 0.15); }
    50% { background: rgba(248, 113, 113, 0.35); }
}

.explanation {
    margin-top: 1.75rem;
    padding: 1.25rem;
    background: rgba(247, 147, 26, 0.08);
    border-left: 4px solid var(--bitcoin-orange);
    border-radius: 0.75rem;
    border: 1px solid rgba(247, 147, 26, 0.2);
    border-left: 4px solid var(--bitcoin-orange);
}

.explanation-title {
    font-weight: 700;
    color: var(--bitcoin-orange);
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.explanation-text {
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 0.9375rem;
}

.sources-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(247, 147, 26, 0.2);
}

.sources-title {
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sources-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.sources-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
    position: relative;
}

.sources-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--bitcoin-orange);
    font-weight: 700;
}

.sources-list a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.6;
    transition: color 0.2s ease;
    word-break: break-word;
}

.sources-list a:hover {
    color: var(--bitcoin-orange);
    text-decoration: underline;
}

.loading {
    text-align: center;
    padding: 3rem 2rem;
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.action-buttons {
    display: flex;
    gap: 0.875rem;
    margin-top: 1.75rem;
}

.action-buttons .btn {
    flex: 1;
}

.completion-screen {
    text-align: center;
    padding: 3rem 2rem;
}

.completion-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.completion-title {
    color: var(--bitcoin-orange);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.completion-message {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.stat-item {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bitcoin-orange);
}

@media (max-width: 640px) {
    .welcome-title {
        font-size: 2rem;
    }

    .welcome-icon {
        font-size: 4rem;
    }

    .btn-start {
        font-size: 1.25rem;
        padding: 1.25rem 2rem;
        width: 100%;
    }

    .rules-section {
        padding: 1rem;
    }

    .rule-item {
        padding: 0.625rem;
    }

    .user-level-value {
        font-size: 3.5rem;
    }

    .question-text {
        font-size: 1.1875rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .completion-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .option-btn {
        padding: 1rem 1.25rem;
    }
}
