/* /master/css/moderno.css - VERSÃO FINAL (CORRIGIDA) */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Cores (Serão sobrescritas pelo PHP) */
    --cor-primaria: #0077b6;
    --cor-primaria-dark: #023e8a;
    --fundo-pagina: #f3f4f6;
    --fundo-card: #ffffff;
    --cor-texto: #1f2937;
    --cor-texto-light: #6b7280;
    --raio-borda: 16px;
    --sombra-card: 0 10px 20px -5px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --sombra-video: 0 20px 50px -12px rgba(0, 0, 0, 0.25);
    --borda-suave: #e5e7eb;
}

body {
    background-color: var(--fundo-pagina);
    font-family: 'Poppins', sans-serif;
    color: var(--cor-texto);
    line-height: 1.6;
    margin: 0; padding: 0;
}
a { text-decoration: none; transition: 0.3s; }

/* --- HERO (AJUSTADO PARA O LOGO FICAR CERTINHO) --- */
.master-hero {
    height: 450px; background-size: cover; background-position: center;
    position: relative; display: flex; align-items: center; justify-content: center;
    text-align: center; color: #fff;
}
.hero-overlay { background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.9)); position: absolute; inset: 0; }

.hero-content { 
    position: relative; z-index: 2; max-width: 800px; padding: 0 20px;
    /* Flexbox para garantir que o logo e texto fiquem alinhados perfeitamente */
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}

.hero-logo {
    width: 140px; height: 140px; 
    border-radius: 30px; 
    border: 4px solid #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
    margin-bottom: 20px; 
    background: #fff; 
    object-fit: contain; /* Garante que a imagem não estique */
}

.master-hero h1 { font-size: 3rem; font-weight: 800; margin: 0 0 10px; text-shadow: 0 4px 10px rgba(0,0,0,0.3); letter-spacing: -1px; }

.hero-rating-badge {
    display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px); padding: 8px 20px; border-radius: 50px; margin-top: 15px;
    color: #fff; border: 1px solid rgba(255,255,255,0.3); font-weight: 600;
}
.hero-rating-badge:hover { background: rgba(255,255,255,0.25); transform: scale(1.05); }
.stars { color: #fbbf24; }

/* BARRA RÁPIDA */
.quick-info-bar { background: #fff; padding: 20px 0; position: relative; z-index: 10; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.quick-info-grid { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.quick-info-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.quick-info-item strong { font-size: 0.8rem; opacity: 0.6; text-transform: uppercase; letter-spacing: 1px; }
.quick-info-item a { color: var(--cor-primaria); font-weight: 700; font-size: 1.1rem; }

/* LAYOUT */
.master-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.main-content-moderno { padding: 50px 0; }
.content-section {
    background: var(--fundo-card); border-radius: var(--raio-borda);
    padding: 40px; margin-bottom: 30px; box-shadow: var(--sombra-card);
}
.section-title {
    font-size: 1.6rem; font-weight: 700; color: var(--cor-texto);
    margin-bottom: 25px; padding-bottom: 10px; border-bottom: 2px solid var(--fundo-pagina);
    display: flex; align-items: center; gap: 12px;
}
.section-title i { color: var(--cor-primaria); }

/* --- GRIDS E CARDS --- */
.modern-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.modern-card {
    background: #fff; border: 1px solid var(--borda-suave); border-radius: 16px;
    padding: 25px; transition: 0.3s; display: flex; flex-direction: column;
}
.modern-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px -10px rgba(0,0,0,0.1); border-color: var(--cor-primaria); }

/* --- DETALHES, SERVIÇOS E PAGAMENTO --- */
.details-grid-moderno {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}
.modern-info-card {
    background: var(--fundo-card);
    padding: 30px;
    border-radius: var(--raio-borda);
    box-shadow: var(--sombra-card);
    border: 1px solid var(--borda-suave);
}
.modern-info-card h3 {
    font-size: 1.2rem; font-weight: 700; margin: 0 0 20px;
    display: flex; align-items: center; gap: 10px;
}
.modern-info-card h3 i { color: var(--cor-primaria); background: var(--fundo-pagina); padding: 8px; border-radius: 8px; }

.modern-tag-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-wrap: wrap; gap: 10px;
}
.modern-tag {
    background: var(--fundo-pagina);
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--cor-texto);
    display: flex; align-items: center; gap: 8px;
    border: 1px solid transparent;
    transition: 0.2s;
}
.modern-tag:hover { border-color: var(--cor-primaria); background: #fff; }
.modern-tag i { color: var(--cor-primaria); }

/* VAGAS */
.vaga-tag { background: #d1fae5; color: #047857; font-size: 0.75rem; font-weight: 800; padding: 4px 10px; border-radius: 6px; text-transform: uppercase; display: inline-block; margin-bottom: 10px; }
.vaga-titulo { font-size: 1.2rem; margin: 0 0 5px; line-height: 1.3; }
.btn-moderno { display: block; width: 100%; text-align: center; background: var(--cor-primaria); color: #fff; padding: 12px; border-radius: 10px; font-weight: 600; margin-top: auto; transition: 0.3s; }
.btn-moderno:hover { filter: brightness(1.1); }

/* PROMO & EVENTOS */
.promo-img { height: 180px; margin: -25px -25px 20px; border-radius: 16px 16px 0 0; background-size: cover; background-position: center; }
.cupom-moderno { background: #f3e8ff; color: #9333ea; border: 2px dashed #d8b4fe; padding: 10px; text-align: center; border-radius: 10px; font-weight: 700; margin-top: 15px; }
.event-date-box { background: var(--cor-primaria); color: #fff; width: 55px; text-align: center; padding: 8px; border-radius: 10px; margin-right: 15px; }
.event-date-box span { display: block; font-size: 1.4rem; font-weight: 800; line-height: 1; }
.event-date-box small { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }

/* CARDAPIO & GALERIA */
.menu-item-moderno { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px dashed var(--borda-suave); }
.menu-price { font-weight: 700; color: var(--cor-primaria); background: var(--fundo-pagina); padding: 5px 12px; border-radius: 20px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; }
.gallery-grid img { width: 100%; height: 160px; object-fit: cover; border-radius: 12px; transition: 0.3s; cursor: pointer; }
.gallery-grid img:hover { transform: scale(1.03); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* VIDEO & MAPA */
.video-cinema { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--sombra-video); }
.video-cinema iframe, .map-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.location-hours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.map-container { position: relative; padding-bottom: 60%; height: 0; border-radius: 12px; overflow: hidden; }
.hours-list li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--borda-suave); }

/* AVALIAÇÕES */
.review-form-box { background: #f9fafb; border: 1px solid var(--borda-suave); padding: 30px; border-radius: var(--raio-borda); margin-top: 40px; }
.modern-input { width: 100%; padding: 15px; border: 2px solid #e5e7eb; border-radius: 10px; font-size: 1rem; background: #fff; margin-bottom: 15px; }
.star-rating-modern { display: flex; flex-direction: row-reverse; justify-content: center; gap: 10px; margin: 10px 0 20px; }
.star-rating-modern input { display: none; }
.star-rating-modern label { font-size: 2.5rem; color: #d1d5db; cursor: pointer; }
.star-rating-modern input:checked ~ label, .star-rating-modern label:hover, .star-rating-modern label:hover ~ label { color: #fbbf24; }
.btn-submit-modern { width: 100%; padding: 15px; background: var(--cor-primaria); color: #fff; border: none; border-radius: 10px; font-weight: 700; cursor: pointer; }
.review-item { background: #fff; padding: 20px; border-radius: 12px; border: 1px solid var(--borda-suave); margin-bottom: 15px; }

/* --- AJUSTES MOBILE (LOGO E HERO CORRIGIDOS) --- */
/* --- AJUSTES MOBILE (CORREÇÃO DE CORTES) --- */
@media (max-width: 900px) {
    .details-grid-moderno, .location-hours-grid { grid-template-columns: 1fr; }
    .quick-info-grid { flex-direction: column; gap: 15px; }
    
    .master-hero { 
        /* Remove a altura fixa e deixa crescer conforme o conteúdo */
        height: auto; 
        min-height: 450px; 
        
        /* Adiciona espaço no topo para o logo não ficar atrás do menu */
        padding-top: 100px; 
        padding-bottom: 60px;
        
        /* Garante que o fundo cubra tudo */
        background-attachment: scroll; 
    }
    
    .hero-content {
        /* Garante que não ultrapasse a largura da tela */
        width: 100%;
        padding: 0 15px;
    }

    /* Ajuste do Logo para Mobile */
    .hero-logo { 
        width: 100px; 
        height: 100px; 
        border-radius: 20px; 
        margin-bottom: 15px; 
        /* Garante que a imagem não distorça */
        object-fit: contain;
        background-color: #fff;
    }
    
    .master-hero h1 { 
        font-size: 2rem; 
        margin-bottom: 10px;
    }
    
    /* Ajuste das estrelas para não cortarem */
    .hero-rating-badge {
        margin-top: 10px;
        margin-bottom: 10px;
        font-size: 0.9rem;
    }
}