/**
 * customization.css - Estilos para tela de personalização
 * Fase 6: Sistema de Personalização
 */

/* ========== CONTAINER DA TELA ========== */
#customization-screen {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* ========== TÍTULO ========== */
.screen-title {
    text-align: center;
    color: #ffd700;
    font-size: 2.5em;
    margin: 0;
    font-family: 'Cinzel Decorative', serif;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.screen-subtitle {
    text-align: center;
    color: #b0b0b0;
    font-size: 1.1em;
    margin: -15px 0 0 0;
}

/* ========== GRID DE TEMAS ========== */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1000px;
}

/* ========== CARD DE TEMA ========== */
.theme-card {
    background: rgba(30, 35, 45, 0.95);
    border: 2px solid #444;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-card:hover:not(.locked) {
    transform: translateY(-5px);
    border-color: #4caf50;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.theme-card.active {
    border-color: #4caf50;
    border-width: 3px;
    box-shadow:
        0 0 30px rgba(76, 175, 80, 0.6),
        inset 0 0 20px rgba(76, 175, 80, 0.1);
}

.theme-card.locked {
    cursor: not-allowed;
    opacity: 0.6;
    filter: grayscale(50%);
}

/* ========== PREVIEW DO TEMA ========== */
.theme-preview {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.theme-card:hover:not(.locked) .theme-preview {
    transform: scale(1.05);
}

/* ========== NOME DO TEMA ========== */
.theme-name {
    color: #ffd700;
    font-size: 1.3em;
    margin: 0 0 8px 0;
    font-family: 'Cinzel Decorative', serif;
}

/* ========== DESCRIÇÃO ========== */
.theme-description {
    color: #b0b0b0;
    font-size: 0.9em;
    line-height: 1.4;
    margin: 0 0 10px 0;
}

/* ========== BADGES ========== */
.theme-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
    z-index: 2;
}

.active-badge {
    background: #4caf50;
    color: white;
}

.locked-badge {
    background: #666;
    color: #ddd;
}

/* ========== BOTÃO VOLTAR ========== */
.customization-back {
    background: #f44336;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.customization-back:hover {
    background: #d32f2f;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(244, 67, 54, 0.4);
}

.customization-back:active {
    transform: scale(0.98);
}

/* ========== RESPONSIVIDADE ========== */

/* Tablets */
@media (max-width: 768px) {
    #customization-screen {
        padding: 30px 15px;
    }

    .screen-title {
        font-size: 2em;
    }

    .screen-subtitle {
        font-size: 1em;
    }

    .theme-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .theme-preview {
        height: 150px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    #customization-screen {
        padding: 20px 10px;
    }

    .screen-title {
        font-size: 1.6em;
    }

    .screen-subtitle {
        font-size: 0.9em;
    }

    .theme-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .theme-card {
        padding: 15px;
    }

    .theme-preview {
        height: 140px;
    }

    .theme-name {
        font-size: 1.1em;
    }

    .theme-description {
        font-size: 0.85em;
    }
}

/* ========== ANIMAÇÕES ========== */
@keyframes theme-select-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.theme-card.active {
    animation: theme-select-pulse 2s ease-in-out infinite;
}

/* ========== BANDEIRAS DE IDIOMA (Settings) ========== */
.language-flag {
    position: absolute;
    object-fit: cover;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    user-select: none;
    -webkit-user-select: none;
}

.language-flag:hover {
    filter: brightness(1.2);
    transform: scale(1.05);
}

.language-flag:active {
    transform: scale(0.95);
}
