/* monsoon-game.css */

.game-page {
    padding-top: 80px;
    min-height: 100vh;
    background: var(--bg-primary);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Scoreboard */
.scoreboard {
    display: flex;
    gap: 15px;
    padding: 20px;
    width: 100%;
    max-width: 900px;
    justify-content: center;
    flex-wrap: wrap;
    background: var(--bg-card);
    border-bottom: 2px solid var(--border-color);
}

.stat-card {
    background: rgba(0,0,0,0.2);
    padding: 10px 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    min-width: 120px;
}

.stat-card .label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.stat-card strong {
    font-size: 1.5rem;
    color: var(--saffron);
}

.btn-start-game {
    background: var(--green);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-start-game:hover {
    background: #0f6c04;
}

/* Clouds Deck */
.cloud-deck {
    margin: 30px 0;
    text-align: center;
}

.cloud-deck h3 {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.clouds-container {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.rain-cloud {
    font-size: 2rem;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 20px;
    cursor: grab;
    user-select: none;
    border: 2px dashed #888;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.1s;
}

.rain-cloud:active {
    cursor: grabbing;
    transform: scale(1.1);
}

/* States Grid (Map) */
.states-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1000px;
    padding: 20px;
}

.state-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.state-card.drag-over {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    transform: scale(1.02);
}

.state-card h3 {
    margin-top: 0;
    font-size: 1.3rem;
}

.water-bar-container {
    height: 20px;
    width: 100%;
    background: #333;
    border-radius: 10px;
    margin: 15px 0;
    position: relative;
    overflow: hidden;
}

.water-bar {
    height: 100%;
    background: #3b82f6;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

/* Status colors */
.status-Drought {
    border-color: #ef4444;
}
.status-Drought .water-bar {
    background: #ef4444;
}

.status-Flood {
    border-color: #8b5cf6;
}
.status-Flood .water-bar {
    background: #8b5cf6;
}

.status-Balanced {
    border-color: #10b981;
}
.status-Balanced .water-bar {
    background: #10b981;
}

.status-label {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.status-label.Drought { color: #ef4444; }
.status-label.Flood { color: #8b5cf6; }
.status-label.Balanced { color: #10b981; }

/* Modal overrides */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 10px; }
.mb-4 { margin-bottom: 20px; }
.mt-4 { margin-top: 20px; }

.final-score {
    font-size: 1.5rem;
    color: var(--saffron);
}

.modal-content {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}
