/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Standalone Game Body */
.quiz-standalone {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    position: relative;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}

.quiz-standalone::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.1) 2px, transparent 2px);
    background-size: 60px 60px;
    z-index: 1;
    pointer-events: none;
}

/* Branding Bar */
.quiz-branding {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    z-index: 100;
    text-align: center;
}

.quiz-branding p {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.quiz-branding a {
    color: #4fc3f7;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.quiz-branding a:hover {
    color: #29b6f6;
    text-decoration: underline;
}

/* Quiz Game Container */
.quiz-game-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1rem 2rem;
    min-height: 100vh;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Quiz Header */
.quiz-header {
    text-align: left;
    padding-top: 2.5rem;
    position: static;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
}

.quiz-header-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #4fc3f7, #29b6f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 1.5rem 0;
    box-shadow: 0 8px 25px rgba(79, 195, 247, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.quiz-header-icon i {
    font-size: 2rem;
    color: white;
}

.quiz-header-text h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.quiz-header-text p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Quiz Content */
.quiz-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem 0;
}

/* Question Card */
.question-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    text-align: left;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.question-number {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
    color: #666;
}

.question-number span {
    font-size: 1rem;
}

.total-questions {
    color: #999;
    font-weight: 500;
}

.statement-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    margin-bottom: 2.5rem;
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Answer Buttons */
.answer-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    margin-bottom: 2rem;
}

.answer-btn {
    flex: 1;
    max-width: 200px;
    padding: 1.2rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

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

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

.true-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.true-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.false-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.false-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
}

.answer-btn.selected {
    transform: translateY(-3px) scale(1.02);
}

.answer-btn.correct {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.5) !important;
}

.answer-btn.incorrect {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    animation: shake 0.6s ease-in-out;
}

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

/* Feedback Section */
.feedback-section {
    margin-top: 2rem;
    border-top: 2px solid #f1f5f9;
    display: none;
}

.feedback-section.visible {
    display: block;
}

.feedback-result {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
}

.feedback-result.correct {
    color: #10b981;
}

.feedback-result.incorrect {
    color: #ef4444;
}

.explanation-text {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.1), rgba(42, 82, 152, 0.1));
    border: 2px solid rgba(30, 60, 114, 0.2);
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 15px;
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    font-style: italic;
    position: relative;
}

.verse-reference {
    font-style: normal;
    font-weight: 600;
    color: #999;
    text-align: right;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(30, 60, 114, 0.2);
    font-size: 0.9rem;
}

/* Quiz Progress Container */
.quiz-progress-container {
    margin: 2rem 0 1rem;
    text-align: center;
}

.quiz-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ffa726);
    transition: width 0.4s ease;
    border-radius: 4px;
}

.quiz-progress-text {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Quiz Navigation */
.quiz-navigation {
    display: none;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.quiz-navigation.visible {
    display: flex;
}

.nav-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-btn.primary {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.4);
}

.nav-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.5);
}

.nav-btn.secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #64748b;
    border: 2px solid rgba(30, 60, 114, 0.2);
}

.nav-btn.secondary:hover {
    background: rgba(30, 60, 114, 0.1);
    transform: translateY(-2px);
}

/* Results Screen */
.results-screen {
    text-align: left;
    color: white;
    display: none;
}

.results-screen.visible {
    display: block;
}

.results-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffd700, #ffb347);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 2rem 0;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.results-icon i {
    font-size: 2.5rem;
    color: white;
}

.results-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.score-display {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffd700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.score-message {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.game-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-btn.primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.game-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.game-btn.secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #64748b;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.game-btn.secondary:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .quiz-game-container {
        padding: 2rem 1rem 1rem;
    }
    
    .quiz-header-text h1 {
        font-size: 2rem;
    }
    
    .question-card {
        padding: 2rem 1.5rem;
    }
    
    .statement-text {
        font-size: 1.2rem;
        min-height: 3rem;
    }
    
    .explanation-text {
        font-size: 0.9rem;
        padding: 1rem;
        line-height: 1.5;
    }
    
    .verse-reference {
        font-size: 0.8rem;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }
    
    .answer-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .answer-btn {
        max-width: none;
        width: 100%;
    }
    
    .results-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .game-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .quiz-navigation {
        flex-direction: column-reverse;
        gap: 0.5rem;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .quiz-branding p {
        font-size: 0.7rem;
    }
    
    .quiz-header-text h1 {
        font-size: 1.8rem;
    }
    
    .quiz-header-text p {
        font-size: 1rem;
    }
    
    .question-card {
        padding: 1.5rem 1rem;
    }
    
    .statement-text {
        font-size: 1.1rem;
    }
    
    .explanation-text {
        font-size: 0.85rem;
        padding: 0.75rem;
        line-height: 1.4;
    }
    
    .verse-reference {
        font-size: 0.75rem;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }
    
    .answer-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .quiz-navigation {
        flex-direction: column-reverse;
        gap: 0.5rem;
    }
    
    .nav-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

/* Keyboard hint styles */
.keyboard-hint {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 99;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .keyboard-hint {
        display: none;
    }
} 