/* games/fill-the-missing-word/game.css */

/* ========================================
   Game Navigation
   ======================================== */
.game-nav {
    margin-bottom: 2rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: transparent;
    color: #daa520;
    border: 2px solid #daa520;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.95em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.back-button:hover {
    background: rgba(218, 165, 32, 0.1);
    transform: translateX(-5px);
    box-shadow: 0 0 20px rgba(218, 165, 32, 0.3);
}

/* ========================================
   Game Header
   ======================================== */
.game-header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 40px;
}

.game-header h1 {
    font-size: 3.5em;
}

.game-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3em;
    color: #c9a961;
    font-style: italic;
    margin-top: 15px;
}

/* ========================================
   Score Display
   ======================================== */
.score-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.05), rgba(139, 69, 19, 0.03));
    border: 2px solid rgba(218, 165, 32, 0.3);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    border-radius: 4px;
}

.score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.score-label {
    font-family: 'Cinzel', serif;
    font-size: 0.85em;
    color: #8b7355;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.score-value {
    font-family: 'Cinzel', serif;
    font-size: 2em;
    color: #daa520;
    font-weight: 700;
}

.score-divider {
    width: 2px;
    height: 50px;
    background: linear-gradient(180deg, transparent, rgba(218, 165, 32, 0.4), transparent);
}

/* ========================================
   Progress Bar
   ======================================== */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(218, 165, 32, 0.2);
    overflow: hidden;
    margin-bottom: 3rem;
    position: relative;
    border-radius: 4px;
}

.progress-bar::before,
.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    width: 10px;
    height: 100%;
    background: rgba(218, 165, 32, 0.5);
}

.progress-bar::before {
    left: 0;
}

.progress-bar::after {
    right: 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #daa520, #ffd700, #daa520);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(218, 165, 32, 0.6);
}

/* ========================================
   Question Card
   ======================================== */
.question-card {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9), rgba(20, 20, 20, 0.8));
    border: 2px solid rgba(218, 165, 32, 0.3);
    padding: 3rem;
    position: relative;
    margin-bottom: 2rem;
}

.question-card::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(218, 165, 32, 0.15);
    pointer-events: none;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(218, 165, 32, 0.2);
}

.question-source {
    font-family: 'Cinzel', serif;
    color: #c9a961;
    font-size: 0.95em;
    letter-spacing: 0.05em;
}

.question-difficulty {
    font-family: 'Cinzel', serif;
    font-size: 0.8em;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(218, 165, 32, 0.4);
    background: rgba(218, 165, 32, 0.1);
    color: #daa520;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 12px;
}

.question-difficulty.easy {
    border-color: rgba(76, 175, 80, 0.4);
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.question-difficulty.medium {
    border-color: rgba(255, 152, 0, 0.4);
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

.question-difficulty.hard {
    border-color: rgba(244, 67, 54, 0.4);
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

/* ========================================
   Sanskrit Text
   ======================================== */
.sanskrit-text {
    font-family: 'Noto Serif Devanagari', serif;
    font-size: 2.5em;
    color: #daa520;
    text-align: center;
    margin-bottom: 3rem;
    line-height: 2;
    font-weight: 600;
    text-shadow: 0 0 20px rgba(218, 165, 32, 0.2);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blank {
    display: inline-block;
    min-width: 180px;
    border-bottom: 3px solid #daa520;
    margin: 0 15px;
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

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

/* ========================================
   Options Grid
   ======================================== */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.option-button {
    font-family: 'Noto Serif Devanagari', serif;
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.05), rgba(139, 69, 19, 0.03));
    border: 2px solid rgba(218, 165, 32, 0.3);
    color: #e8e8e8;
    padding: 1.25rem 1.75rem;
    font-size: 1.4em;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.option-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(218, 165, 32, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.option-button:hover::before {
    width: 300px;
    height: 300px;
}

.option-button:hover {
    border-color: #daa520;
    transform: scale(1.05);
    box-shadow: 0 5px 25px rgba(218, 165, 32, 0.2);
}

.option-button.selected {
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.2), rgba(139, 69, 19, 0.15));
    border-color: #daa520;
    box-shadow: 0 0 30px rgba(218, 165, 32, 0.3);
}

.option-button.correct {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(56, 142, 60, 0.2));
    border-color: #4caf50;
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.4);
}

.option-button.incorrect {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.3), rgba(211, 47, 47, 0.2));
    border-color: #f44336;
    box-shadow: 0 0 30px rgba(244, 67, 54, 0.4);
}

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

/* ========================================
   Submit Button
   ======================================== */
.submit-button {
    font-family: 'Cinzel', serif;
    background: linear-gradient(135deg, #daa520, #b8860b);
    color: #0a0a0a;
    border: none;
    padding: 1.25rem 3rem;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 auto;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.submit-button::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 ease;
}

.submit-button:hover::before {
    left: 100%;
}

.submit-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(218, 165, 32, 0.5);
}

.submit-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.submit-button:disabled:hover {
    box-shadow: none;
}

/* ========================================
   Feedback Section
   ======================================== */
.feedback {
    margin-top: 2.5rem;
    padding: 2rem;
    border: 2px solid;
    display: none;
    position: relative;
}

.feedback.show {
    display: block;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.feedback.correct {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(56, 142, 60, 0.1));
    border-color: #4caf50;
}

.feedback.incorrect {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.15), rgba(211, 47, 47, 0.1));
    border-color: #f44336;
}

.feedback-icon {
    font-size: 3em;
    text-align: center;
    margin-bottom: 1rem;
}

.feedback-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8em;
    margin-bottom: 1rem;
    color: #daa520;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: center;
}

.feedback-text {
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.8;
    color: #e8e8e8;
    font-size: 1.15em;
    margin-bottom: 1rem;
}

.translation {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(218, 165, 32, 0.3);
    font-style: italic;
    color: #c9a961;
    font-size: 1.1em;
}

/* ========================================
   Next Button
   ======================================== */
.next-button {
    font-family: 'Cinzel', serif;
    background: transparent;
    color: #daa520;
    border: 2px solid #daa520;
    padding: 1rem 2.5rem;
    cursor: pointer;
    font-size: 1.05em;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-left: auto;
    margin-right: auto;
}

.next-button:hover {
    background: rgba(218, 165, 32, 0.15);
    box-shadow: 0 0 25px rgba(218, 165, 32, 0.3);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .game-header h1 {
        font-size: 2.5em;
    }

    .game-subtitle {
        font-size: 1.1em;
    }

    .question-card {
        padding: 1.5rem;
    }

    .sanskrit-text {
        font-size: 1.8em;
        min-height: 80px;
    }

    .score-display {
        gap: 1rem;
        padding: 1rem;
        flex-wrap: wrap;
    }

    .score-divider {
        display: none;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .option-button {
        font-size: 1.2em;
    }

    .submit-button {
        width: 100%;
    }

    .next-button {
        width: 100%;
    }
}