/* ===== QUIZ STYLES ===== */

/* Daily Quiz Card */
.daily-quiz-card {
    background: var(--card-bg);
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 0 30px var(--accent-glow);
    transition: all 0.3s ease;
}
.daily-quiz-card:hover {
    box-shadow: 0 0 50px var(--accent-glow);
}
.daily-question {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.daily-answers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.daily-answer-btn {
    background: rgba(255,255,255,0.05);
    border: 2px solid var(--card-border);
    color: var(--text-light);
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.daily-answer-btn:hover {
    border-color: var(--accent);
    background: rgba(229, 9, 20, 0.1);
    transform: translateY(-2px);
}
.daily-answer-btn.correct {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}
.daily-answer-btn.wrong {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}
.daily-answer-btn.disabled {
    pointer-events: none;
    opacity: 0.5;
}
.daily-result {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 1rem;
    border-radius: 8px;
}
.daily-result.correct {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.daily-result.wrong {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.daily-already-done {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Quiz Categories Grid */
.quiz-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.quiz-cat-card {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.quiz-cat-card:hover, .quiz-cat-card.selected {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3), 0 0 15px var(--accent-glow);
}
.quiz-cat-card.selected {
    background: rgba(229, 9, 20, 0.08);
}
.cat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.quiz-cat-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}
.quiz-cat-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Difficulty Buttons */
.difficulty-select {
    animation: fadeIn 0.4s ease;
}
.difficulty-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.diff-btn {
    padding: 1rem 2.5rem;
    border: 2px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-light);
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.diff-btn:hover {
    transform: translateY(-3px);
}
.diff-easy:hover { border-color: #22c55e; box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3); }
.diff-medium:hover { border-color: #eab308; box-shadow: 0 5px 15px rgba(234, 179, 8, 0.3); }
.diff-hard:hover { border-color: #ef4444; box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3); }

/* Quiz Game */
.quiz-header {
    margin-bottom: 2rem;
}
.quiz-progress {
    width: 100%;
    height: 8px;
    background: var(--card-border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}
.quiz-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #ff6b35);
    border-radius: 4px;
    width: 0%;
    transition: width 0.5s ease;
}
.quiz-info {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 1.1rem;
}
.quiz-question-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 0.4s ease;
}
.quiz-question-text {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: 0;
}
.quiz-answers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.quiz-answer-btn {
    background: rgba(255,255,255,0.03);
    border: 2px solid var(--card-border);
    color: var(--text-light);
    padding: 1.2rem 1.5rem;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}
.quiz-answer-btn:hover:not(.disabled) {
    border-color: var(--accent);
    background: rgba(229, 9, 20, 0.1);
    transform: translateY(-2px);
}
.quiz-answer-btn.correct {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    animation: correctPulse 0.5s ease;
}
.quiz-answer-btn.wrong {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    animation: wrongShake 0.5s ease;
}
.quiz-answer-btn.disabled {
    pointer-events: none;
    opacity: 0.4;
}
.quiz-answer-btn.reveal-correct {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
    opacity: 1 !important;
}

/* Result Card */
.result-card {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: 16px;
    padding: 3rem;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease;
}
.result-emoji {
    font-size: 5rem;
    margin-bottom: 1rem;
}
.result-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-transform: none;
    letter-spacing: 0;
}
.result-score {
    font-size: 1.3rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.result-quote {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.6;
    padding: 1rem;
    border-left: 3px solid var(--accent);
    text-align: left;
}
.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes correctPulse {
    0%, 100% { transform: scale(1); }
    50%    { transform: scale(0.98); }
}
@keyframes wrongShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* Mobile */
@media (max-width: 768px) {
    .quiz-answers, .daily-answers { grid-template-columns: 1fr; }
    .quiz-question-card { padding: 1.5rem; }
    .quiz-question-text { font-size: 1.1rem; }
    .quiz-categories { grid-template-columns: 1fr 1fr; }
    .difficulty-buttons { flex-direction: column; align-items: center; }
    .diff-btn { width: 100%; max-width: 280px; }
    .result-card { padding: 2rem; }
    .result-actions { flex-direction: column; }
    .result-actions .btn-primary, .result-actions .btn-secondary { width: 100%; text-align: center; }
    .cat-icon { font-size: 2rem; }
}

/* =========================================
   ULTIMATE QUIZ & LEADERBOARD
   ========================================= */
.ultimate-quiz-box {
    margin-bottom: 4rem; 
    padding: 2.5rem; 
    border: 2px solid var(--accent); 
    border-radius: 12px; 
    background: linear-gradient(145deg, rgba(229,9,20,0.05) 0%, rgba(20,20,20,0.5) 100%);
    box-shadow: 0 10px 30px rgba(229,9,20,0.15);
}

.ultimate-title {
    font-size: 2rem; 
    margin-bottom: 0.5rem; 
    text-transform: uppercase;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 10px rgba(229,9,20,0.5);
}

.ultimate-btn {
    font-size: 1.1rem; 
    padding: 1rem 2.5rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(229,9,20,0.4);
}

.ultimate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229,9,20,0.6);
}

.leaderboard-container {
    margin-top: 3rem;
    background: var(--bg);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--card-border);
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.leaderboard-table th {
    text-align: left;
    padding: 0.8rem;
    border-bottom: 2px solid var(--card-border);
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
}

.leaderboard-table td {
    padding: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text-light);
}

.leaderboard-table tr:last-child td {
    border-bottom: none;
}

.leaderboard-table tr:nth-child(1) td {
    color: #fbbf24;
    font-weight: 700;
}
.leaderboard-table tr:nth-child(2) td {
    color: #94a3b8;
    font-weight: 700;
}
.leaderboard-table tr:nth-child(3) td {
    color: #b45309;
    font-weight: 700;
}

.leaderboard-form {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.leaderboard-form input {
    width: 100%;
    max-width: 300px;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    border: 1px solid var(--card-border);
    background: var(--bg);
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    text-align: center;
}

.leaderboard-form input:focus {
    outline: none;
    border-color: var(--accent);
}

/* =========================================
   JOKER BAR
   ========================================= */
.joker-bar {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 25px;
}

.joker-btn {
    background: #141414;
    color: #f5f5f5;
    border: 1px solid #262626;
    padding: 10px 18px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.joker-btn:hover:not(.used) {
    border-color: #e50914;
    background: #1f1f1f;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

/* Status: Schutzschild aktiv */
.joker-btn.active-shield {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

/* Status: Joker verbraucht */
.joker-btn.used {
    opacity: 0.35;
    cursor: not-allowed;
    border-color: #262626;
    background: #0a0a0a;
    text-decoration: line-through;
}
