/**
 * Gem Match - Style
 * Match-3 puzzle game styles
 */

/* ==================== BODY / CONTAINER ==================== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0d0d2a;
}

.lg-game-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a3e 0%, #0d0d2a 100%);
}

/* ==================== MENU OVERLAY ==================== */
.gm-menu {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 13, 42, 0.95);
    z-index: 200;
    flex-direction: column;
}

.gm-menu-content {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(111, 66, 193, 0.3);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    max-width: 420px;
    width: 90%;
}

.gm-menu h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    background: linear-gradient(135deg, #e74c3c, #f1c40f, #2ecc71, #3498db, #9b59b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.gm-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    margin-bottom: 30px;
}

.gm-mode-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.gm-btn {
    display: block;
    width: 100%;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(111, 66, 193, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    font-family: inherit;
}

.gm-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #6f42c1;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.3);
}

.gm-btn:active {
    transform: translateY(0);
}

.gm-btn-timed {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-color: #e74c3c;
}

.gm-btn-timed:hover {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    border-color: #ff6b6b;
}

.gm-btn-zen {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border-color: #2ecc71;
}

.gm-btn-zen:hover {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-color: #6bff9e;
}

.gm-btn-challenge {
    background: linear-gradient(135deg, #f1c40f, #e67e22);
    border-color: #f1c40f;
    color: #1a1a2e;
}

.gm-btn-challenge:hover {
    background: linear-gradient(135deg, #e67e22, #f1c40f);
    border-color: #ffe066;
}

/* ==================== HUD ==================== */
.gm-hud {
    position: absolute;
    top: 0; left: 0; right: 0;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(13, 13, 42, 0.85) 0%, rgba(13, 13, 42, 0) 100%);
    z-index: 100;
    pointer-events: none;
}

.gm-hud-item {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(111, 66, 193, 0.25);
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    pointer-events: auto;
}

.gm-hud-score {
    font-size: 1.2rem;
    color: #f1c40f;
    min-width: 100px;
}

.gm-hud-timer {
    font-size: 1.1rem;
    color: #2ecc71;
}

.gm-hud-timer.warning {
    color: #e74c3c;
    animation: gm-pulse 0.5s ease-in-out infinite;
}

.gm-hud-level {
    color: #3498db;
}

.gm-hud-moves {
    color: #e67e22;
}

@keyframes gm-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ==================== GAME OVER OVERLAY ==================== */
.gm-gameover {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(13, 13, 42, 0.92);
    z-index: 200;
}

.gm-gameover-content {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(111, 66, 193, 0.3);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    max-width: 420px;
    width: 90%;
}

.gm-gameover h2 {
    font-size: 2.2rem;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #f1c40f, #e67e22);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gm-final-score {
    font-size: 3rem;
    font-weight: 800;
    color: #f1c40f;
    margin: 10px 0 20px;
}

.gm-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.gm-stat-item {
    padding: 12px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
}

.gm-stat-item .value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2ecc71;
}

.gm-stat-item .label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.gm-go-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ==================== PAUSE BUTTON ==================== */
.gm-pause-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(111, 66, 193, 0.25);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    font-family: inherit;
}

.gm-pause-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 600px) {
    .gm-menu h1 {
        font-size: 2rem;
    }
    .gm-menu-content {
        padding: 24px;
    }
    .gm-hud {
        padding: 6px 10px;
    }
    .gm-hud-item {
        padding: 4px 10px;
        font-size: 0.85rem;
    }
    .gm-gameover-content {
        padding: 24px;
    }
    .gm-final-score {
        font-size: 2rem;
    }
}
