/* ============================================
   WALL BREAKER - Game-specific Styles
   ============================================ */

/* Back Link - uses shared game-overlays.css styling (bottom: 15px, left: 15px) */

/* Override UI overlay position */
.ui-overlay {
    top: auto;
    bottom: auto;
    top: 60px;
}

/* Level Panel */
.level-panel {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 10px 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 25px;
}

.level-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.level-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Lives Display */
.lives-value {
    font-size: 1.2rem;
    margin-top: 5px;
    letter-spacing: 3px;
}

/* Game Over Overlay */
.game-over-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.game-over-overlay.visible {
    display: flex;
}

.game-over-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 0 0 20px currentColor;
}

.game-over-title.win {
    color: #4ecdc4;
}

.game-over-title.lose {
    color: #ff6b6b;
}

.game-over-score {
    font-size: 1.8rem;
    color: #ffd700;
    margin-bottom: 30px;
}

.game-over-btn {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    border: none;
    color: #fff;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-over-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(78, 205, 196, 0.4);
}

/* Level Complete Overlay */
.level-complete-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.level-complete-overlay.visible {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.level-complete-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #4ecdc4;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(78, 205, 196, 0.5);
    animation: pulse 0.5s ease infinite alternate;
}

.level-complete-score {
    font-size: 1.5rem;
    color: #ffd700;
    margin-bottom: 15px;
}

.level-complete-next {
    font-size: 1.8rem;
    color: #fff;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

/* Power-up indicator */
.powerup-indicator {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 20px;
    color: #fff;
    font-size: 1rem;
    display: none;
    z-index: 50;
}

.powerup-indicator.visible {
    display: block;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ui-overlay {
        top: 50px;
    }

    .game-over-title {
        font-size: 2.2rem;
    }

    .level-complete-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .game-over-title {
        font-size: 1.8rem;
    }

    .level-complete-title {
        font-size: 1.5rem;
    }
}
