/* =========================================
   1. GLOBAL SETTINGS & PREMIUM FONTS
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    /* Premium Modern Gradient Background */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

/* =========================================
   2. MAIN GAME CONTAINER (The Card)
   ========================================= */
.game-container {
    background: #ffffff;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2); /* Soft 3D Shadow */
    position: relative;
    overflow: hidden;
}

/* Screen visibility classes */
.screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hidden {
    display: none !important;
}

/* =========================================
   3. START SCREEN & RESULT SCREEN
   ========================================= */
.logo-box i, .trophy-box i {
    font-size: 60px;
    color: #764ba2;
    margin-bottom: 15px;
}

.game-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.game-subtitle span {
    background: #ffeaa7;
    color: #d35400;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

.rules-box {
    background: #f8f9fa;
    padding: 15px 25px;
    border-radius: 12px;
    margin: 25px 0;
    width: 100%;
    text-align: left;
    border-left: 5px solid #667eea;
}

.rules-box p {
    font-size: 15px;
    margin: 8px 0;
    color: #555;
}

.rules-box i {
    color: #667eea;
    margin-right: 10px;
}

/* =========================================
   4. BUTTONS (Premium Feel)
   ========================================= */
.btn {
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.primary-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(118, 75, 162, 0.4);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(118, 75, 162, 0.6);
}

.secondary-btn {
    background: #2c3e50;
    color: white;
    margin-top: 15px;
}

/* =========================================
   5. QUIZ SCREEN HEADER & PROGRESS
   ========================================= */
.quiz-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 15px;
    font-weight: 600;
    color: #555;
}

.timer-box {
    background: #ffeaa7;
    color: #d35400;
    padding: 5px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
}

.progress-container {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    margin-bottom: 25px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 1%; /* JS ise update karega */
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
    transition: width 0.4s ease;
}

/* =========================================
   6. QUESTION & OPTIONS AREA
   ========================================= */
.question-box {
    width: 100%;
    text-align: left;
    margin-bottom: 20px;
}

.badge {
    background: #00cec9;
    color: white;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-block;
}

#question-text {
    font-size: 20px;
    color: #2d3436;
    line-height: 1.5;
}

.options-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-btn {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    font-weight: 500;
    color: #333;
}

.option-btn:hover {
    background: #f0f3ff;
    border-color: #667eea;
}

/* Correct & Wrong States (JS se add hongi) */
.option-btn.correct {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.option-btn.wrong {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.option-btn.disabled {
    pointer-events: none;
}

/* =========================================
   7. EXPLANATION BOX
   ========================================= */
.explanation-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px;
    border-radius: 0 8px 8px 0;
    margin-top: 20px;
    text-align: left;
    font-size: 14px;
    color: #0d47a1;
}

/* =========================================
   8. RESULT SCREEN SPECIFICS
   ========================================= */
.score-text {
    font-size: 18px;
    margin-top: 10px;
    color: #7f8c8d;
}

.score-display {
    font-size: 40px;
    font-weight: 700;
    color: #667eea;
    margin: 15px 0;
}

.feedback-message {
    font-size: 16px;
    margin-bottom: 25px;
    color: #2c3e50;
    font-weight: 500;
}
