/* 
 * GRUPO CERVANTES - PORTAL OFICIAL
 * Estilos minimalistas com Tailwind CSS
 * Foco: Performance e Responsividade
 */

/* ========================================
   1. RESET E OTIMIZAÇÕES BÁSICAS
======================================== */

* {
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   2. COMPONENTES ESSENCIAIS
======================================== */

/* Estrela Central - Classes de Zoom Responsivo */
.star-tiny {
    filter: brightness(0.9) contrast(1.1);
}

.star-small {
    filter: brightness(0.95) contrast(1.05);
}

.star-normal {
    filter: brightness(1) contrast(1);
}

.star-large {
    filter: brightness(1.05) contrast(1.1);
}

.star-huge {
    filter: brightness(1.1) contrast(1.15);
}

/* Transições suaves para todos os elementos da estrela */
.clip-star {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.clip-star img {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ícones padronizados */
.icon-standard {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
}

.icon-small {
    width: 3rem;
    height: 3rem;
    margin-right: 1rem;
    border-radius: 50%;
}

/* ========================================
   3. MAPA LEAFLET (essencial)
======================================== */

#mapa-cervantes {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
}

.leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.95);
}

.leaflet-control-zoom a {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.leaflet-control-attribution {
    background-color: rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.8);
    font-size: 10px;
}

/* ========================================
   4. RESPONSIVIDADE MOBILE
======================================== */

@media (max-width: 640px) {
    /* Fundo específico para mobile */
    body.bg-cervantes {
        background-image: url('../../public/images/Cervantes_Grupo_Mobile.svg') !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }
    
    .clip-star {
        display: none !important;
    }
    
    #mapa-cervantes {
        height: 300px !important;
    }
    
    .icon-standard {
        width: 3rem;
        height: 3rem;
    }
    
    .icon-small {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* ========================================
   4.1. AJUSTE ESPECÍFICO PARA 1366x768
======================================== */

@media (min-width: 1280px) and (max-width: 1440px) and (min-height: 720px) and (max-height: 800px) {
    /* Reduz o tamanho da estrela especificamente para 1366x768 */
    .clip-star {
        width: 32.4rem !important;
        height: 32.4rem !important;
        transform: translate(-50%, -50%) scale(0.8) !important;
    }
}

/* ========================================
   5. AJUSTES MÍNIMOS PARA TELAS GRANDES
======================================== */

@media (min-width: 1920px) {
    .container {
        max-width: 1800px;
    }
}