/* games/who-said-this/game.css */

/* ========================================
   Quote Display
   ======================================== */

.quote-card {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95), rgba(20, 20, 20, 0.85));
    border: 2px solid rgba(218, 165, 32, 0.3);
    padding: 3rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.quote-card::before {
    content: '"';
    position: absolute;
    top: -15px;
    left: 30px;
    font-size: 8em;
    color: rgba(218, 165, 32, 0.15);
    font-family: Georgia, serif;
    line-height: 1;
}

.quote-card::after {
    content: '"';
    position: absolute;
    bottom: -60px;
    right: 30px;
    font-size: 8em;
    color: rgba(218, 165, 32, 0.15);
    font-family: Georgia, serif;
    line-height: 1;
}

.quote-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);
    flex-wrap: wrap;
    gap: 1rem;
}

.quote-category {
    font-family: 'Cinzel', serif;
    color: #c9a961;
    font-size: 0.9em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.quote-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;
}

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

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

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

/* ========================================
   Sanskrit Quote
   ======================================== */

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

.translation-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4em;
    color: #c9a961;
    text-align: center;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 2rem;
    padding: 0 2rem;
}

/* ========================================
   Speaker Options
   ======================================== */

.speakers-prompt {
    font-family: 'Cinzel', serif;
    font-size: 1.1em;
    color: #8b7355;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.speaker-option {
    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: 2rem 1.5rem;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.speaker-option::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;
}

.speaker-option:hover::before {
    width: 400px;
    height: 400px;
}

.speaker-option:hover {
    border-color: #daa520;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(218, 165, 32, 0.3);
}

.speaker-option.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);
}

.speaker-option.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);
}

.speaker-option.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);
}

.speaker-option.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.option-label {
    font-family: 'Cinzel', serif;
    font-size: 0.85em;
    color: #8b7355;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.speaker-name {
    font-family: 'Cinzel', serif;
    font-size: 1.3em;
    color: #daa520;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.speaker-context {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1em;
    color: #b8b8b8;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.speaker-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95em;
    color: #8b7355;
    font-style: italic;
}

.option-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5em;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.speaker-option.correct .option-indicator,
.speaker-option.incorrect .option-indicator {
    opacity: 1;
}

/* ========================================
   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;
}

/* ========================================
   Explanation Section
   ======================================== */

.explanation-section {
    display: none;
    margin-top: 3rem;
    padding: 2.5rem;
    border: 2px solid;
    animation: slideDown 0.5s ease;
}

.explanation-section.show {
    display: block;
}

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

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

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

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

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

.quote-source {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(218, 165, 32, 0.3);
    font-family: 'Cinzel', serif;
    color: #c9a961;
    text-align: center;
    font-size: 1.1em;
    letter-spacing: 0.05em;
}

.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) {
    .quote-card {
        padding: 2rem 1.5rem;
    }

    .sanskrit-quote {
        font-size: 1.6em;
        padding: 0 1rem;
    }

    .translation-quote {
        font-size: 1.2em;
        padding: 0 1rem;
    }

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

    .speaker-option {
        padding: 1.5rem 1.25rem;
    }

    .submit-button {
        width: 100%;
    }

    .next-button {
        width: 100%;
    }

    .quote-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========================================
   Animations
   ======================================== */

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}