/* Vocabulary Context Practice - Centralized CSS */
/* Used by all week[N]-context.html files */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #e8d5c4;
    position: relative;
}

/* Main Content Container */
.container {
    max-width: 1200px;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.8s ease-out;
    margin: 20px;
    margin-top: 20px;
    border: 1px solid rgba(184, 134, 11, 0.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 2.5em;
    color: #daa520;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 1.2em;
    color: #d4af37;
    margin-bottom: 20px;
}

/* Instructions Box */
.instructions-box {
    background: linear-gradient(135deg, #704214 0%, #8b5a00 100%);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(218, 165, 32, 0.3);
}

.instructions-title {
    font-size: 1.5em;
    color: #e8d5c4;
    margin-bottom: 10px;
}

.instructions-text {
    font-size: 1.1em;
    color: #e8d5c4;
    opacity: 0.9;
    line-height: 1.6;
}

/* Progress and Score Section */
.stats-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-box {
    background: rgba(40, 40, 40, 0.8);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    flex: 1;
    min-width: 150px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(184, 134, 11, 0.2);
}

.stat-label {
    color: #d4af37;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.8em;
    font-weight: bold;
    color: #daa520;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Question Container */
.question-container {
    background: rgba(40, 40, 40, 0.8);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(184, 134, 11, 0.3);
}

.question-number {
    font-size: 1.2em;
    color: #b8860b;
    margin-bottom: 20px;
    font-weight: bold;
}

.sentence {
    font-size: 1.4em;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #e8d5c4;
}

.blank {
    display: inline-block;
    min-width: 150px;
    padding: 5px 15px;
    background: rgba(184, 134, 11, 0.2);
    border: 2px solid #b8860b;
    border-radius: 5px;
    font-weight: bold;
    color: #ffd700;
    margin: 0 5px;
}

/* Choices Grid */
.choices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.choice-btn {
    background: rgba(26, 26, 26, 0.8);
    border: 3px solid rgba(184, 134, 11, 0.3);
    padding: 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1em;
    color: #e8d5c4;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.choice-btn:hover:not(:disabled) {
    background: rgba(184, 134, 11, 0.2);
    border-color: #b8860b;
    transform: scale(1.02);
}

.choice-btn:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.choice-btn.correct {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    border-color: #1e8449;
    animation: correctPulse 0.5s ease;
}

.choice-btn.incorrect {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border-color: #a93226;
    animation: shake 0.5s ease;
}

.choice-btn.show-correct {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border-color: #d68910;
}

@keyframes correctPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.word-info {
    font-size: 0.9em;
    color: #d4af37;
    font-style: italic;
    margin-top: 5px;
}

/* Feedback Section */
.feedback-section {
    background: rgba(40, 40, 40, 0.8);
    padding: 25px;
    border-radius: 10px;
    margin-top: 20px;
    display: none;
    border: 1px solid rgba(184, 134, 11, 0.3);
}

.feedback-section.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.feedback-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
}

.feedback-correct {
    color: #27ae60;
}

.feedback-incorrect {
    color: #e74c3c;
}

.feedback-text {
    color: #e8d5c4;
    line-height: 1.6;
}

.correct-answer {
    background: rgba(39, 174, 96, 0.2);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid #27ae60;
}

/* Control Buttons */
.controls {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.control-btn {
    background: linear-gradient(135deg, #b8860b 0%, #daa520 100%);
    color: #1a1a1a;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.control-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(218, 165, 32, 0.3);
}

.control-btn:disabled {
    background: linear-gradient(135deg, #7f8c8d 0%, #95a5a6 100%);
    cursor: not-allowed;
    transform: scale(1);
}

/* Results Modal */
.results-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.results-content {
    background: rgba(26, 26, 26, 0.95);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    border: 2px solid rgba(218, 165, 32, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.results-title {
    font-size: 2em;
    color: #daa520;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.results-stats {
    font-size: 1.2em;
    color: #e8d5c4;
    margin-bottom: 30px;
    line-height: 1.8;
}

.results-stats strong {
    color: #daa520;
}

.play-again-btn {
    background: linear-gradient(135deg, #b8860b 0%, #daa520 100%);
    color: #1a1a1a;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.play-again-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(218, 165, 32, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 20px;
        border-radius: 15px;
        margin-top: 60px;
    }

    h1 {
        font-size: 2em;
    }

    .question-container {
        padding: 25px;
    }

    .sentence {
        font-size: 1.2em;
    }

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

    .stats-section {
        flex-direction: column;
    }

    .stat-box {
        min-width: 100%;
    }
}
