/* static/games/tobacco_invaders/tobacco_invaders.css */
/* Tema: Plantas Medicinais vs Tabagismo - BotaniCura */

.game-container {
    background: linear-gradient(135deg, #0a2a1e 0%, #1a4d32 50%, #0d3825 100%);
    border-radius: 20px;
    padding: 25px;
    box-shadow:
        0 12px 40px rgba(0, 80, 40, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border: 2px solid #2e8b57;
    position: relative;
    overflow: hidden;
}

.game-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7CFC00, #FFE8A3, #9AE66E, #FCD27F);
    border-radius: 20px 20px 0 0;
}

/* Canvas com borda temática */
#gameCanvas {
    border: 3px solid #2e7d32 !important;
    border-radius: 16px !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: linear-gradient(160deg, #00110f 0%, #0a2a1e 100%) !important;
}

/* Botões modernizados */
.btn-success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.35);
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
    background: linear-gradient(135deg, #45a049 0%, #4CAF50 100%);
}

.btn-outline-light {
    background: transparent;
    color: #e8f5e9;
    border: 2px solid #e8f5e9;
    border-radius: 12px;
    padding: 10px 22px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(76, 175, 80, 0.15);
    color: white;
    transform: translateY(-1px);
    border-color: #8BC34A;
}

/* Badges temáticas */
.badge.bg-success {
    background: linear-gradient(135deg, #4CAF50, #66BB6A) !important;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.85em;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    color: white !important;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #2196F3, #42A5F5) !important;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.85em;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
    color: white !important;
}

/* Seletor de Plantas - Design Melhorado */
#plant-select {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    border: 2px solid #4CAF50;
    border-radius: 12px;
    color: white;
    padding: 8px 16px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 36px;
}

#plant-select:focus {
    outline: none;
    border-color: #8BC34A;
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.3);
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
}

/* HUD - Display de Jogo */
#hud {
    background: rgba(10, 30, 20, 0.85);
    border: 2px solid #4CAF50;
    border-radius: 15px;
    padding: 12px 20px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#hud span {
    font-weight: 600;
    color: #e8f5e9 !important;
    font-size: 1.1em;
}

/* Botão de Áudio */
#btn-audio {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1b5e20;
    border: 2px solid #6c757d;
    color: #e0f0e5;
    font-size: 14px;
    transition: all 0.3s ease;
}

#btn-audio:hover {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.2);
    transform: scale(1.1);
    color: #7CFC00;
}

/* Cartão Principal */
.card.shadow-sm {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: transparent;
}

.card-body {
    background: rgba(248, 255, 249, 0.95);
    border-radius: 20px;
    padding: 24px;
}

/* Mensagens do Jogo */
#msg .alert {
    border-radius: 12px;
    border: none;
    font-weight: 500;
    padding: 10px 16px;
}

.alert-info {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #0d47a1;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #ef6c00;
}

/* Link de Volta */
.text-decoration-none {
    color: #4CAF50 !important;
    font-weight: 600;
    transition: color 0.3s ease;
}

.text-decoration-none:hover {
    color: #45a049 !important;
    text-decoration: underline !important;
}

/* Títulos */
h1 {
    color: #2e7d32;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
    margin-top: 0.5rem;
}

.form-label {
    color: #388e3c;
    font-weight: 600;
    font-size: 0.95em;
    margin-bottom: 0.25rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .game-container {
        padding: 15px;
        margin: 0 -10px;
        border-radius: 15px;
    }

    #gameCanvas {
        border-radius: 12px !important;
        height: auto !important;
    }

    #hud {
        padding: 8px 15px;
        font-size: 0.95em;
        text-align: center;
        margin-top: 12px;
    }

    .btn-success,
    .btn-outline-light {
        padding: 10px 20px;
        font-size: 0.95em;
        width: 100%;
    }

    .d-grid.gap-2.d-md-flex {
        flex-direction: column;
    }
}

/* Estados de foco para acessibilidade */
button:focus,
select:focus {
    outline: 2px solid #8BC34A;
    outline-offset: 2px;
}

/* Efeitos opcionais (descomente se quiser usar) */
/*
.pulse-glow {
    animation: pulse-glow 2s infinite;
}
@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}
*/