/* css/index.css - AJUSTE FINAL: Botões Lado a Lado no Mobile */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Roboto:wght@300;400;500;700;900&display=swap');

/* --- VARIÁVEIS GLOBAIS --- */
:root {
    --cor-primaria: #d68c96;       
    --cor-primaria-hover: #c57d87; 
    --cor-fundo: #f8f8f8;
    --imagem-fundo: none;          
    
    /* Variáveis do Admin */
    --card-bg-color: #ffffff;
    --card-bg-image: none;
    --card-overlay-color: #000000;
    --card-opacity: 0.1;
    --card-text-color: #333333;
    --header-bg: #ffffff;
	--header-text-color: #333333;
}

/* --- RESET E GERAL --- */
* { box-sizing: border-box; font-family: 'Roboto', sans-serif; -webkit-tap-highlight-color: transparent; }

body { 
    background-color: var(--cor-fundo); 
    background-image: var(--imagem-fundo);
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    margin: 0; padding: 0; 
    min-height: 100vh; 
    display: flex; flex-direction: column; 
    padding-bottom: 80px; 
    transition: background 0.5s ease;
}

#main-container { 
    max-width: 1000px; margin: 0 auto; padding: 10px; width: 100%; flex: 1; display: flex; flex-direction: column;
}

/* --- HEADER --- */
header { 
    background: var(--header-bg); padding: 15px 25px; 
	color: var(--header-text-color);
    display: flex; justify-content: space-between; align-items: center; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-radius: 15px; 
    margin-top: 10px; margin-bottom: 20px; z-index: 10;
}
.logo img { max-height: 78px; width: auto; }
.btn-admin { 
    background: #333; color: #fff; text-decoration: none; 
    padding: 12px 20px; border-radius: 20px; font-size: 0.85rem; transition: 0.3s;
}

/* --- TÍTULO --- */
.titulo-escolha-prof {
    text-align: center; 
    color: var(--card-text-color, var(--cor-primaria));
    margin-bottom: 25px; font-size: 1.3rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px;
    position: relative; z-index: 5;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

/* --- CARTÃO PRINCIPAL --- */
.admin-card-visual {
    width: 100%; max-width: 1000px; margin: 0 auto; 
    padding: 25px 20px; /* Padding padrão Desktop */
    
    background-color: var(--card-bg-color);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    position: relative; overflow: hidden; z-index: 1;
    transition: all 0.3s ease; min-height: 60vh;
}
.admin-card-visual::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: var(--card-bg-image); background-size: cover; background-position: center;
    opacity: 1; z-index: -2; pointer-events: none;
}
.admin-card-visual::after {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--card-overlay-color); opacity: var(--card-opacity);
    z-index: -1; pointer-events: none;
}

/* --- GRID PROFISSIONAIS --- */
.tabs-container-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; width: 100%; margin-bottom: 20px; }

.tab-btn-grid {
    width: 160px; height: 200px; border-radius: 15px; position: relative; overflow: hidden; cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); border: 2px solid white;
    background-color: #eee; background-size: cover; background-position: center;
    display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
    padding-bottom: 15px; transition: transform 0.2s, box-shadow 0.2s;
}
.tab-btn-grid:hover { transform: translateY(-5px); box-shadow: 0 12px 25px rgba(0,0,0,0.3); }

.tab-btn-grid .nome-prof {
    background: transparent; color: white; padding: 0 5px; text-align: center;
    font-weight: 800; font-size: 1.1rem; line-height: 1.2; margin-bottom: 2px;
    text-shadow: 2px 2px 4px #000000, 0 0 10px rgba(0,0,0,0.8);
}
.tab-btn-grid .cargo-prof {
    background: transparent; color: white; font-size: 0.8rem; text-align: center;
    font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    text-shadow: 1px 1px 3px #000000, 0 0 5px rgba(0,0,0,0.9);
}

/* --- BOTÃO PRODUTOS --- */
.btn-produtos-destaque {
    width: 100%; max-width: 300px; margin: 20px auto; padding: 12px;
    background: white; color: #555; border: 1px solid #eee;
    border-radius: 30px; font-weight: bold; cursor: pointer;
    text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: 0.3s;
}

/* --- HEADER PROFISSIONAL ATIVO --- */
.header-prof-ativo {
    background: rgba(255,255,255,0.95); padding: 15px; border-radius: 12px;
    margin-bottom: 25px; display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); width: 100%;
}
.info-prof-header .nome-grande { display: block; font-weight: 800; font-size: 1.2rem; color: #333; }
.info-prof-header .cargo-pequeno { font-size: 0.8rem; color: #666; text-transform: uppercase; }
.btn-voltar-discreto {
    background: #f5f5f5; color: #333; border: none; padding: 8px 15px;
    border-radius: 20px; font-weight: bold; cursor: pointer; font-size: 0.8rem;
}

/* --- CALENDÁRIO --- */
.calendar-container {
    background: #fff; border-radius: 16px; box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    padding: 20px; /* Padding Padrão */
    margin-top: 10px; width: 100%;
}
.calendar-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.btn-nav-mes {
    background: var(--cor-primaria);
    color: #fff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.btn-nav-mes:hover { filter: brightness(0.9); transform: scale(1.05); }
/* =========================================================================
   BLOCO DE ASSINATURA (ESTILO CLEAN / NOBRE)
   ========================================================================= */
.info-estabelecimento {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px; /* Mais espaço embaixo para respirar */
    padding: 10px;
    
    background: transparent;
    border: none;
    position: relative;
    z-index: 5;
}

.nome-loja {
    margin: 0 0 15px 0; /* Espaço entre o nome e o ícone */
    font-family: 'Great Vibes', cursive; 
    font-size: 3.5rem; 
    font-weight: 400;  
    color: #ffffff; 
    text-transform: none; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    transform: rotate(-2deg);
    display: inline-block;
}

/* Novo Botão Minimalista */
.botao-mapa-clean {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: transform 0.2s;
    width: fit-content;
    margin: 0 auto; /* Centraliza o bloco */
}

.botao-mapa-clean:active {
    transform: scale(0.95); /* Efeito de clique */
}

.botao-mapa-clean svg {
    /* Cor vermelha vibrante definida no HTML (#ff4757), aqui aplicamos a sombra */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); 
    animation: bounce 2s infinite; /* Leve animação para chamar atenção */
}

.botao-mapa-clean span {
    color: #ffffff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px; /* Letras espaçadas ficam mais elegantes */
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9);
    opacity: 0.9;
}

/* Animação suave de pulo do pino */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-6px);}
    60% {transform: translateY(-3px);}
}

/* Ajuste Mobile */
@media (max-width: 480px) {
    .nome-loja { font-size: 2.8rem; }
    .botao-mapa-clean span { font-size: 0.75rem; }
    .botao-mapa-clean svg { width: 30px; height: 30px; }
}
/* =========================================================================
   ESTILO DO MAPA (PREMIUM)
   ========================================================================= */
.mapa-container {
    margin-top: 15px;
    width: 100%;
    max-width: 500px; /* Não deixa ficar gigante em telas largas */
    margin-left: auto;
    margin-right: auto;
    
    border-radius: 15px;
    overflow: hidden; /* Garante que o mapa respeite as bordas redondas */
    
    /* Sombra suave para destacar do fundo */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    
    /* Borda branca fina para dar acabamento de "foto" */
    border: 2px solid rgba(255,255,255,0.8);
    
    /* Animação suave ao passar o mouse */
    transition: transform 0.3s ease;
}

.mapa-container:hover {
    transform: translateY(-3px); /* Leve flutuação ao passar o mouse */
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.mapa-container iframe {
    display: block; /* Remove espaços extras indesejados abaixo do iframe */
    width: 100%;
    height: 200px; /* Altura fixa confortável */
    background: #eee; /* Cor de fundo enquanto carrega */
}

/* Ajuste para Mobile */
@media (max-width: 480px) {
    .mapa-container {
        max-width: 100%; /* Ocupa largura total no celular */
        border-width: 1px; /* Borda mais fina */
    }
    
    .mapa-container iframe {
        height: 160px; /* Um pouco mais baixo no celular para economizar espaço */
    }
}

/* Grid do Calendário */
.calendar-grid { 
    display: grid; 
    grid-template-columns: repeat(7, 1fr); 
    gap: 5px; /* Gap padrão */
    text-align: center; 
}

.day-name { font-weight: bold; color: #999; font-size: 0.75rem; text-transform: uppercase; padding-bottom: 10px; }

.day-number {
    background: #fff; border: 1px solid #f0f0f0; border-radius: 8px; cursor: pointer;
    aspect-ratio: 1 / 1.4; display: flex; flex-direction: column; align-items: center; padding: 5px 2px;
}
.day-number span:first-child { font-weight: bold; font-size: 1rem; }
.day-number.dia-passado { background: #e0e0e0; color: #999; opacity: 0.7; cursor: not-allowed; }
.day-number.tem-agendamento { background: #e8f5e9; border-color: #c8e6c9; color: #2e7d32; }
.day-number.dia-bloqueado { background: #FFEBEE; border-color: #EF9A9A; color: #C62828; cursor: not-allowed; }
.day-number.dia-bloqueado .info-agendamentos strong { color: #C62828; }
.day-number.dia-aprendiz-bloqueado { 
    background: #f0f0f0; color: #bbb; opacity: 0.35; 
    cursor: not-allowed; pointer-events: none; 
    border-color: #e0e0e0;
}
.day-number.today { border: 2px solid var(--cor-primaria); }

.info-agendamentos { margin-top: auto; font-size: 0.6rem; line-height: 1; text-align: center; }
.info-agendamentos strong { font-size: 0.75rem; display: block; }

/* --- GALERIA --- */
#secao-galeria { width: 100%; margin-top: 30px; display: none; }
#secao-galeria.visivel { display: block; animation: fadeIn 0.5s; }
.titulo-galeria { font-size: 1rem; color: #444; margin-bottom: 15px; border-left: 4px solid var(--cor-primaria); padding-left: 10px; }
.gallery-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.gallery-item { aspect-ratio: 1/1; overflow: hidden; background: #eee; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }

/* --- MODAIS E VITRINE --- */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 3000; justify-content: center; align-items: flex-end; }
.modal-overlay.ativo { display: flex; animation: fadeIn 0.2s; }
.modal-loja-content { background: #fff; width: 100%; height: 92vh; border-radius: 20px 20px 0 0; overflow-y: auto; display: flex; flex-direction: column; animation: slideUp 0.3s; }
.modal-header-loja { padding: 15px 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: white; z-index: 10; }
.btn-fechar-modal { background: #f0f0f0; border: none; width: 32px; height: 32px; border-radius: 50%; font-weight: bold; cursor: pointer; }

#grid-vitrine-publica { padding: 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 8px; }
.produto-thumb { aspect-ratio: 9/16; background: #eee; border-radius: 8px; overflow: hidden; position: relative; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.produto-thumb img { width: 100%; height: 100%; object-fit: cover; }
.produto-info-overlay { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); color: white; padding: 10px 5px 5px 5px; font-size: 0.85rem; text-align: center; }

#modal-viewer-fullscreen { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #000; z-index: 5000; align-items: center; justify-content: center; overflow: hidden; }
#modal-viewer-fullscreen.ativo { display: flex; }
#viewer-img { max-width: 100%; max-height: 100%; object-fit: contain; will-change: transform; transform-origin: center center; }
.btn-fechar-viewer { position: absolute; top: 20px; right: 20px; z-index: 5001; background: rgba(0,0,0,0.5); color: white; border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
#viewer-caption { position: absolute; bottom: 30px; left: 0; width: 100%; text-align: center; color: white; padding: 10px; pointer-events: none; text-shadow: 0 2px 4px #000; }

.site-footer { 
    position: fixed; 
    bottom: 0; 
    /* Centralização para elemento fixo */
    left: 50%; 
    transform: translateX(-50%);
    
    width: 100%; 
    max-width: 1000px; /* <--- AQUI ESTÁ A MÁGICA: Limita igual ao conteúdo principal */
    
    background-color: #333; 
    color: #fff; 
    padding: 10px 15px; 
    z-index: 2000; 
    font-size: 0.8rem; 
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1); 
    
    /* Opcional: Arredonda as pontas de cima para ficar mais bonito */
    border-radius: 15px 15px 15px 15px; 
}
.footer-flex-container { display: flex; align-items: center; justify-content: center; gap: 15px; }
.img-dev-large { height: 35px; opacity: 0.9; }
.contact-link { color: #fff; text-decoration: none; background: rgba(255,255,255,0.1); padding: 4px 8px; border-radius: 4px; display: flex; gap: 5px; align-items: center; }

@keyframes fadeIn { from {opacity:0} to {opacity:1} }
@keyframes slideUp { from {transform:translateY(100%)} to {transform:translateY(0)} }

/* =========================================================================
   CORREÇÃO EXTREMA PARA MOBILE (AJUSTE DE TAMANHO DOS BOTÕES)
   ========================================================================= */
@media (max-width: 480px) {
    /* Ajuste de GAP e Padding do Container */
    .tabs-container-grid {
        gap: 8px !important;
    }

    /* Reduz tamanho dos profissionais na grade para caber 2 */
    .tab-btn-grid {
        width: 46% !important; /* Menor que 50% e 48% para garantir espaço */
        height: 150px !important; /* Altura reduzida */
    }

    /* Padding do cartão principal */
    .admin-card-visual {
        padding: 15px 5px !important; 
    }

    /* Reduz padding do container do calendário */
    .calendar-container {
        padding: 10px 5px !important;
    }
    
    /* Reduz o espaçamento entre os dias */
    .calendar-grid {
        gap: 2px !important;
    }
}

/* Botão de Destaque para Combos e Extras */
.btn-combo-especial {
    background: linear-gradient(45deg, #d68c96, #ff9800); /* Degradê Rosa para Laranja */
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 50px; /* Bem redondo */
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    margin-bottom: 15px; /* Espaço para o botão de baixo */
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(214, 140, 150, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s;
    text-decoration: none; /* Caso use tag <a> */
}

.btn-combo-especial:active {
    transform: scale(0.98);
}

.icone-brilho {
    animation: piscar 1.5s infinite;
}

@keyframes piscar {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}