/* Geography Explorer Game Styles */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 1200px;
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.game-area {
    padding: 30px;
}

.stats-panel {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.stat-label {
    color: #666;
}

.stat-value {
    color: #333;
    font-weight: 700;
}

.stat-separator {
    color: #999;
    margin: 0 5px;
}

.question-section {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    border-radius: 15px;
}

.question-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

#country-name {
    color: #d63031;
    font-size: 1.8rem;
}

.question-hint {
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
    min-height: 1.5rem;
}

.map-container {
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #e8f4fd;
}

#world-map {
    width: 100%;
    height: auto;
    max-height: 400px;
    display: block;
    background: #e8f4fd;
}

/* Country styling */
.country {
    fill: #dfe6e9;
    stroke: #b2bec3;
    stroke-width: 0.5;
    transition: all 0.3s ease;
    cursor: pointer;
}

.country:hover {
    fill: #74b9ff;
    stroke: #0984e3;
    stroke-width: 1;
}

.country.correct {
    fill: #00b894 !important;
    stroke: #00cec9 !important;
    stroke-width: 2;
}

.country.incorrect {
    fill: #d63031 !important;
    stroke: #e17055 !important;
    stroke-width: 2;
}

.country.highlight {
    fill: #fdcb6e !important;
    stroke: #e17055 !important;
    stroke-width: 2;
}

.hint-section {
    margin-bottom: 20px;
}

.hint-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.hint-btn {
    padding: 10px 15px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.hint-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.hint-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.multiple-choice {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 15px;
}

.choice-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.choice-btn {
    padding: 12px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.choice-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.choice-btn.correct {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.choice-btn.incorrect {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.message {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    min-height: 2rem;
    margin: 20px 0;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.message.correct {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.incorrect {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.hint {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.controls {
    text-align: center;
    margin-top: 20px;
}

.primary-btn, .secondary-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.primary-btn {
    background: linear-gradient(135deg, #0984e3 0%, #74b9ff 100%);
    color: white;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(9, 132, 227, 0.4);
}

.secondary-btn {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e0e0e0;
}

.secondary-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.results {
    padding: 30px;
    text-align: center;
    background: linear-gradient(135deg, #0984e3 0%, #74b9ff 100%);
    color: white;
}

.results h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.final-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.final-stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.final-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.final-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
}

.final-separator {
    margin: 0 5px;
}

.grade {
    font-size: 2rem !important;
}

.grade.A { color: #28a745; }
.grade.B { color: #17a2b8; }
.grade.C { color: #ffc107; }
.grade.D { color: #fd7e14; }
.grade.F { color: #dc3545; }

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 20px;
    }

    header h1 {
        font-size: 2rem;
    }

    .game-area {
        padding: 20px;
    }

    .stats-panel {
        flex-direction: column;
        gap: 10px;
    }

    .question-text {
        font-size: 1.2rem;
    }

    #country-name {
        font-size: 1.5rem;
    }

    .hint-buttons {
        flex-direction: column;
    }

    .choice-buttons {
        grid-template-columns: 1fr;
    }

    .final-stats {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.country.correct {
    animation: pulse 0.6s ease-out;
}

.country.incorrect {
    animation: shake 0.6s ease-out;
}

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