/**
 * WP HTML5 Shooter Frontend Styles
 */

.wp-shooter-container {
    max-width: 100%;
    margin: 20px 0;
    border: 2px solid #333;
    border-radius: 8px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    font-family: 'Arial', sans-serif;
}

.wp-shooter-game-area {
    text-align: center;
    margin-bottom: 20px;
}

.wp-shooter-canvas {
    border: 2px solid #444;
    border-radius: 4px;
    background: #000;
    display: block;
    margin: 0 auto 15px;
    box-shadow: inset 0 0 20px rgba(0, 100, 255, 0.3);
    outline: none;
}

.wp-shooter-canvas:focus {
    border-color: #0088ff;
    box-shadow: inset 0 0 20px rgba(0, 100, 255, 0.5), 0 0 10px rgba(0, 100, 255, 0.3);
}

.wp-shooter-controls {
    margin: 15px 0;
    text-align: center;
}

.wp-shooter-btn {
    background: linear-gradient(135deg, #0088ff, #0066cc);
    color: white;
    border: none;
    padding: 12px 24px;
    margin: 5px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 136, 255, 0.3);
}

.wp-shooter-btn:hover {
    background: linear-gradient(135deg, #0099ff, #0077dd);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 136, 255, 0.4);
}

.wp-shooter-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 136, 255, 0.3);
}

.wp-shooter-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.wp-shooter-hud {
    display: flex;
    justify-content: space-around;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 6px;
    padding: 10px;
    margin: 15px auto;
    max-width: 600px;
    border: 1px solid #444;
}

.hud-item {
    text-align: center;
    color: #fff;
}

.hud-label {
    display: block;
    font-size: 12px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.hud-value {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #0088ff;
    text-shadow: 0 0 5px rgba(0, 136, 255, 0.5);
}

.hud-value.score {
    color: #ffff00;
    text-shadow: 0 0 5px rgba(255, 255, 0, 0.5);
}

.hud-value.lives {
    color: #ff4444;
    text-shadow: 0 0 5px rgba(255, 68, 68, 0.5);
}

.hud-value.enemies {
    color: #44ff44;
    text-shadow: 0 0 5px rgba(68, 255, 68, 0.5);
}

.wp-shooter-high-scores {
    background: rgba(0, 0, 0, 0.9);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #444;
}

.wp-shooter-high-scores h3 {
    color: #ffff00;
    text-align: center;
    margin: 0 0 15px 0;
    font-size: 24px;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

.high-scores-table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
    margin-bottom: 15px;
}

.high-scores-table th,
.high-scores-table td {
    padding: 8px 12px;
    text-align: center;
    border-bottom: 1px solid #444;
}

.high-scores-table th {
    background: rgba(0, 136, 255, 0.2);
    color: #0088ff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.high-scores-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

.high-scores-table tr:hover {
    background: rgba(0, 136, 255, 0.1);
}

.high-scores-table .rank {
    font-weight: bold;
    color: #ffff00;
}

.high-scores-table .score {
    font-weight: bold;
    color: #44ff44;
}

.high-scores-table .player {
    color: #fff;
    font-weight: bold;
}

.no-scores {
    text-align: center;
    color: #aaa;
    font-style: italic;
    margin: 20px 0;
}

.loading {
    text-align: center;
    color: #0088ff;
    font-style: italic;
    margin: 20px 0;
}

.refresh-scores {
    background: linear-gradient(135deg, #44ff44, #33cc33);
    display: block;
    margin: 0 auto;
}

.refresh-scores:hover {
    background: linear-gradient(135deg, #55ff55, #44dd44);
}

.wp-shooter-instructions {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
    border-left: 4px solid #0088ff;
}

.wp-shooter-instructions h4 {
    color: #0088ff;
    margin: 0 0 10px 0;
    font-size: 18px;
}

.wp-shooter-instructions ul {
    margin: 0;
    padding-left: 20px;
    color: #ccc;
}

.wp-shooter-instructions li {
    margin: 5px 0;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wp-shooter-container {
        padding: 10px;
        margin: 10px 0;
    }
    
    .wp-shooter-canvas {
        max-width: 100%;
        height: auto;
    }
    
    .wp-shooter-hud {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .hud-item {
        flex: 1;
        min-width: 80px;
    }
    
    .wp-shooter-btn {
        padding: 10px 20px;
        font-size: 14px;
        margin: 3px;
    }
    
    .high-scores-table {
        font-size: 12px;
    }
    
    .high-scores-table th,
    .high-scores-table td {
        padding: 6px 8px;
    }
}

@media (max-width: 480px) {
    .wp-shooter-hud {
        flex-direction: column;
        text-align: center;
    }
    
    .hud-item {
        margin: 5px 0;
    }
    
    .wp-shooter-btn {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
    
    .high-scores-table th:nth-child(n+4),
    .high-scores-table td:nth-child(n+4) {
        display: none;
    }
}

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

.wp-shooter-btn:hover {
    animation: pulse 0.6s ease-in-out;
}

@keyframes glow {
    0% { text-shadow: 0 0 5px rgba(0, 136, 255, 0.5); }
    50% { text-shadow: 0 0 20px rgba(0, 136, 255, 0.8), 0 0 30px rgba(0, 136, 255, 0.6); }
    100% { text-shadow: 0 0 5px rgba(0, 136, 255, 0.5); }
}

.hud-value {
    animation: glow 2s ease-in-out infinite;
}

/* Power-up indicators */
.power-up-health { color: #ff4444; }
.power-up-rapid-fire { color: #ffff44; }
.power-up-shield { color: #44ffff; }
.power-up-speed { color: #ff44ff; }

/* Game state indicators */
.game-paused .wp-shooter-canvas {
    filter: blur(2px) brightness(0.7);
}

.game-over .wp-shooter-canvas {
    filter: grayscale(0.8) brightness(0.5);
}

/* Accessibility */
.wp-shooter-canvas:focus {
    outline: 2px solid #0088ff;
    outline-offset: 2px;
}

.wp-shooter-btn:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}
