/* 
 * EXPLORAR CIDADE - ESTILOS GLOBAIS
 * Estilo: Premium Dark (Netflix inspired) + Laranja Vibrante
 */

:root {
    --bg-dark: #141414;
    /* Netflix background */
    --bg-card: #1f1f1f;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent-orange: #ff4d00;
    /* Laranja da imagem */
    --accent-orange-hover: #e54600;
    --border-color: #333333;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    opacity: 0;
    animation: fadeInPage 1s ease-in forwards;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    animation: revealUp 0.8s ease-out forwards;
}

/* Fallback para garantir visibilidade */
.reveal.animation-failed {
    opacity: 1;
}

.reveal-delay-1 {
    animation-delay: 0.2s;
}

.reveal-delay-2 {
    animation-delay: 0.4s;
}

.reveal-delay-3 {
    animation-delay: 0.6s;
}

/* NAVBAR */
.navbar {
    background-color: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    font-weight: 800;
    color: var(--accent-orange) !important;
    font-size: 1.5rem;
}

/* CARROSSEL DE DESTAQUES */
.highlights-section {
    padding: 2rem 0;
}

.highlights-title-bar {
    background-color: #222222;
    border-left: 6px solid var(--accent-orange);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.highlights-title {
    padding: 15px 0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-primary);
}

.btn-be-highlight {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.75rem; /* Levemente menor para caber no mobile */
    padding: 4px 12px;
    border: 1px solid var(--accent-orange);
    border-radius: 50px;
    transition: all 0.3s ease;
    background-color: rgba(255, 77, 0, 0.05);
    white-space: nowrap; /* Impede quebra de linha */
}

.btn-be-highlight:hover {
    background-color: var(--accent-orange);
    color: white !important;
    box-shadow: 0 0 20px rgba(255, 77, 0, 0.4);
    transform: translateY(-2px);
}

.carousel-item {
    transition: transform 0.6s ease-in-out;
}

@keyframes border-glow {
    0% {
        border-color: #ff4d00;
        box-shadow: 0 0 5px #ff4d00;
    }

    50% {
        border-color: #ff0000;
        box-shadow: 0 0 15px #ff0000;
    }

    100% {
        border-color: var(--accent-orange);
        box-shadow: 0 0 5px var(--accent-orange);
    }
}

.carousel {
    padding: 15px 0; /* Espaço para o glow não cortar em cima/baixo */
}

.carousel-inner {
    overflow: visible; /* Permite que o glow saia da área interna se necessário */
}

.thumb-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 10px auto; /* Aumentado para dar espaço à animação */
    border-radius: 12px;
    border: 3px solid var(--accent-orange);
    overflow: hidden; 
    animation: pulse-orange 2s infinite ease-in-out;
    background-color: var(--bg-card);
    transition: all 0.3s ease;
    cursor: pointer;
}

.establishment-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.thumb-wrapper:hover .establishment-thumb {
    transform: scale(1.15);
}

.thumb-wrapper:hover {
    border-color: #ff0000;
    box-shadow: 0 0 25px rgba(255, 77, 0, 0.6);
    animation-play-state: paused;
}

/* Responsividade Desktop: Impacto Visual Massivo nos Destaques */
@media (min-width: 992px) {
    .thumb-wrapper {
        width: 200px;
        height: 200px;
        border-width: 5px;
        border-radius: 18px;
    }
    .highlights-section p {
        font-size: 1.4rem !important;
        font-weight: 800;
        margin-top: 1rem !important;
        letter-spacing: 0.5px;
    }
    .btn-be-highlight {
        font-size: 1rem;
        padding: 8px 24px;
        border-width: 2px;
    }
}

/* AVALIAÇÃO NOS DESTAQUES */
.highlight-rating {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.highlight-rating i {
    color: #ffc107; /* Amarelo Estrela */
    font-size: 0.75rem;
}

.highlight-rating span {
    font-weight: 700;
    color: var(--text-primary);
}

@media (min-width: 992px) {
    .highlight-rating {
        font-size: 1.1rem;
        margin-top: 5px;
    }
    .highlight-rating i {
        font-size: 1rem;
    }
}

/* CARDS DE ESTABELECIMENTOS */
.card-establishment {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    height: 100%;
}

/* Estilos específicos por nível */
.card-establishment.level-0 {
    border-color: #444;
}

.card-establishment.level-1 {
    border-color: #666;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.card-establishment.level-2 {
    border-color: var(--accent-orange);
    box-shadow: 0 4px 12px rgba(255, 77, 0, 0.2);
}

.card-establishment.level-3 {
    border-color: #ffd700;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.card-establishment:hover {
    transform: translateY(-5px);
    border-color: var(--accent-orange);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.card-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 2px;
}

.card-body {
    padding: 1rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.rating-stars {
    color: #ffc107;
    font-size: 0.9rem;
}

.rating-count {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.category-badge {
    font-size: 0.75rem;
    background-color: var(--border-color);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--text-secondary);
}

/* BOTÃO CHAMATIVO (Neurociência: Urgência e Contraste) */
.btn-premium {
    background: linear-gradient(45deg, var(--accent-orange), #ff8000);
    border: none;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(255, 77, 0, 0.3);
}

.btn-premium:hover {
    background: linear-gradient(45deg, #ff8000, var(--accent-orange));
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 77, 0, 0.5);
    color: white;
}

@keyframes btn-pulse-anim {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 77, 0, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(255, 77, 0, 0.6);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 77, 0, 0.3);
    }
}

.btn-pulse {
    animation: btn-pulse-anim 1.5s infinite ease-in-out;
}

/* ANIMAÇÃO DE PULSAÇÃO (PARA TOP 1, 2 e 3) */
@keyframes pulse-orange {
    0% {
        border-color: #ff4d00;
        box-shadow: 0 0 0 0 rgba(255, 77, 0, 0.7);
    }

    50% {
        border-color: #ff0000;
        box-shadow: 0 0 0 10px rgba(255, 77, 0, 0);
    }

    100% {
        border-color: #ff4d00;
        box-shadow: 0 0 0 0 rgba(255, 77, 0, 0);
    }
}

.top-pulse {
    position: relative;
    animation: pulse-orange 2s infinite;
    border-color: var(--accent-orange) !important;
}

/* Badge de Ranking */
.rank-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-orange);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

@keyframes rank-fire-animation {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px #ff4d00);
    }

    50% {
        transform: scale(1.2);
        filter: drop-shadow(0 0 15px #ff0000);
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px #ff4d00);
    }
}

.rank-fire {
    background: transparent !important;
    /* Remove o fundo sólido */
    color: #ff4d00 !important;
    animation: rank-fire-animation 1.5s infinite ease-in-out;
    border: none !important;
    /* Remove a borda quadrada/circular pesada */
    font-size: 1.5rem !important;
    /* Aumenta o destaque do ícone de fogo */
    box-shadow: none !important;
}

.fire-anim-text {
    color: #ff4d00;
    animation: rank-fire-animation 1s infinite alternate;
    text-shadow: 0 0 10px rgba(255, 77, 0, 0.5);
}

/* DROP DOWN FILTERS */
.filter-dropdown {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.filter-dropdown:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 0.25rem rgba(255, 77, 0, 0.25);
    background-color: var(--bg-card);
    color: var(--text-primary);
}

/* BOTÃO VOLTAR AO TOPO */
#btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-orange);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 77, 0, 0.4);
    z-index: 2000;
    transition: all 0.3s ease;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

#btn-back-to-top.show {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#btn-back-to-top:hover {
    background-color: #e54600;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 77, 0, 0.6);
}

/* ESTADO VAZIO (NO RESULTS) */
.no-results-container {
    padding: 5rem 1rem;
    text-align: center;
    width: 100%;
    opacity: 0;
    animation: fadeInPage 0.8s ease-out forwards;
}

.no-results-fire {
    font-size: 5rem;
    color: var(--accent-orange);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.no-results-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
    max-width: 400px;
    margin: 0 auto;
}