@import url('https://fonts.cdnfonts.com/css/monument-extended');

/* --- BACKGROUND ANIMADO (Estilo Index) --- */
.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Fica atrás de tudo */
    background-color: #050505;
    overflow: hidden;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px); 
    mix-blend-mode: screen;
    opacity: 0.7;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

.glow-1 {
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 70%);
    top: -20%;
    left: -20%;
    animation-name: moveLight1;
    animation-duration: 10s;
}

.glow-2 {
    width: 90vw;
    height: 90vw;
    background: radial-gradient(circle, rgba(200, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: -20%;
    right: -20%;
    animation-name: moveLight2;
    animation-duration: 13s;
}

.glow-3 {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(220, 20, 20, 0.45) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: -10%;
    left: 20%;
    animation-name: moveLight3;
    animation-duration: 15s;
}

@keyframes moveLight1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30vw, 20vh) scale(1.1); }
    100% { transform: translate(10vw, 40vh) scale(0.9); }
}

@keyframes moveLight2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-35vw, -15vh) scale(1.1); }
    100% { transform: translate(-15vw, -35vh) scale(0.95); }
}

@keyframes moveLight3 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(15vw, -20vh) scale(1.3); } 
    100% { transform: translate(-10vw, -10vh) scale(1); }
}

/* Modal customizado para mensagens */
#custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
#custom-modal .modal-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.7);
}
#custom-modal .modal-content {
    position: relative;
    background: #111;
    color: #fff;
    padding: 32px 28px 22px 28px;
    border-radius: 12px;
    min-width: 320px;
    max-width: 90vw;
    box-shadow: 0 8px 32px #000a;
    text-align: center;
    z-index: 2;
    font-size: 1.1rem;
}
#custom-modal #modal-close {
    margin-top: 18px;
    background: #800;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 8px 28px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
#custom-modal #modal-close:hover {
    background: #a00;
}
:root {
    --bg-color: #050505;
    --card-bg: #111;
    --item-bg: #1a1a1a;
    --neon-red: #ff0000;
    --dark-red: #8b0000;
    --silver: #c0c0c0;
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --shadow-neon: 0 0 15px rgba(255, 0, 0, 0.6);
    --shadow-silver: 0 0 15px rgba(192, 192, 192, 0.3);
    --font-heading: 'Monument Extended', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --card-width: 170px; /* Default Desktop */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    /* Fundo gerenciado pelo .background-wrapper agora */
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
    position: relative; /* Para z-index funcionar nos filhos */
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--neon-red);
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.7), 0 0 20px rgba(255, 0, 0, 0.3);
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1px;
}

h1 { font-size: 3.5rem; margin-bottom: 0.5rem; }
h2 { font-size: 2.5rem; margin: 3rem 0 1.5rem; }
h3 { font-size: 1.8rem; margin-bottom: 1rem; }

p { color: var(--text-muted); line-height: 1.6; }

/* Melhoria visual para textos gerais */
p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1.08rem;
    letter-spacing: 0.01em;
    margin-bottom: 1.1em;
    text-shadow: none;
    font-family: var(--font-body), 'Segoe UI', Arial, sans-serif;
}

/* Destaque para textos de dica */
.dica, .tip, .hint, .booking-form div[style*="Dicas"] {
    background: linear-gradient(90deg, #1a1a1a 80%, #2a0000 100%);
    color: #ffe;
    border-left: 4px solid var(--neon-red);
    padding: 12px 18px;
    border-radius: 8px;
    margin: 18px 0 22px 0;
    font-size: 1rem;
    font-style: italic;
    box-shadow: 0 2px 12px #0004;
    font-family: 'Rock Salt', 'Permanent Marker', cursive, var(--font-body);
}

/* Melhoria para textos informativos */
#selected-info, .info, .section-info p {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6), 0 0 12px rgba(255, 255, 255, 0.2);
    margin-bottom: 1.2em;
    font-family: 'Courier New', Courier, monospace;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    margin-bottom: 40px;
    text-align: center;
}

/* Frame Estilo Neon (Substitui .card-frame e .booking-card) */
.neon-frame {
    background: var(--card-bg);
    border: 1px solid #333;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-neon), var(--shadow-silver);
    position: relative;
    overflow: hidden; 
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: neonPulse 2s infinite alternate;
}

@keyframes neonPulse {
    from {
        box-shadow: 0 0 10px rgba(255, 0, 0, 0.4), 0 0 5px rgba(192, 192, 192, 0.1);
        border-color: #333;
    }
    to {
        box-shadow: 0 0 25px rgba(255, 0, 0, 0.8), 0 0 15px rgba(200, 0, 0, 0.3);
        border-color: #800;
    }
}

.section-info {
    text-align: center;
    margin-bottom: 25px;
}

/* CARROSSEL DE DATAS */
.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

/* Botões de Navegação */
.nav-btn {
    background: rgba(0,0,0,0.5);
    border: 2px solid var(--silver);
    color: var(--silver);
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    flex-shrink: 0;
}

.nav-btn:hover {
    background: var(--neon-red);
    color: #fff;
    border-color: var(--neon-red);
    box-shadow: 0 0 15px var(--neon-red);
}

.nav-btn.prev { margin-right: 15px; }
.nav-btn.next { margin-left: 15px; }

/* Janela de Visualização */
.carousel-viewport {
    width: 100%;
    overflow: hidden;
    padding: 15px 0;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    width: max-content;
}

/* Card de Data */
.date-card {
    flex: 0 0 var(--card-width); /* Largura Dinâmica (JS) */
    background: var(--item-bg);
    border: 2px solid #444;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0.6;
    transform: scale(0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.date-card.active {
    border-color: var(--neon-red);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
    opacity: 1;
    transform: scale(1.05);
    z-index: 5;
    background: #1e1e1e;
}

.day-name { 
    font-size: 1.4rem; 
    font-weight: bold; 
    color: var(--text-main); 
    font-family: 'Pirata One', cursive; 
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.day-date { 
    font-size: 0.85rem; 
    color: var(--silver); 
    margin-bottom: 12px; 
}

/* Botões de Período */
.slot-btn {
    display: block;
    width: 100%;
    padding: 10px 0;
    margin-top: 8px;
    background: transparent;
    border: 1px solid #555;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.2s;
}

.slot-btn:hover:not(:disabled) {
    background: var(--neon-red);
    border-color: var(--neon-red);
    box-shadow: 0 0 10px var(--neon-red);
    transform: scale(1.02);
}

.slot-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #333;
}

/* Formulário */
.booking-form {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px dashed #333;
    width: 100%;
    max-width: 500px;
    animation: fadeIn 0.5s ease;
    display: none; /* JS vai mostrar */
}

input, select, textarea {
    width: 100%;
    padding: 15px;
    background: #000;
    border: 1px solid #444;
    color: #fff;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    margin-bottom: 15px;
    transition: border-color 0.3s;
    appearance: none;
    -webkit-appearance: none; /* Remove estilo nativo iOS */
}

/* Fix iOS Zoom on focus */
@media screen and (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

input:focus, select:focus {
    border-color: var(--neon-red);
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.3);
}

.btn-confirm {
    width: 100%;
    padding: 15px;
    background: var(--dark-red);
    color: #fff;
    border: 1px solid var(--neon-red);
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-confirm:hover {
    background: var(--neon-red);
    box-shadow: 0 0 20px var(--neon-red);
}

/* PORTFOLIO */
.portfolio-wrapper {
    width: 100%;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
    position: relative;
    display: flex;
    justify-content: flex-start; /* Alterado de center para garantir scroll correto */
}

/* Esconder barra de rolagem mas permitir scroll */
.portfolio-wrapper::-webkit-scrollbar { 
    height: 0px; 
    background: transparent; 
}

.portfolio-track {
    display: flex;
    gap: 30px;
    padding: 10px 20px; /* Padding lateral */
    width: max-content;
}

/* POPUP NOTIFICAÇÃO */
.info-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(20, 0, 0, 0.9);
    border: 1px solid var(--neon-red);
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
    z-index: 10000;
    font-weight: bold;
    font-family: var(--font-body);
    font-size: 0.95rem;
    display: none;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.info-popup.show {
    opacity: 1;
    transform: translateX(0);
}

.portfolio-card {
    width: 260px;
    background: var(--item-bg);
    border: 2px solid #333;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    transition: all 0.3s;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    border-color: var(--silver);
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.2);
}

.portfolio-img {
    height: 180px;
    width: 100%;
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid #333;
}

.portfolio-info {
    padding: 15px;
    text-align: center;
}

.price-tag {
    display: block;
    color: var(--neon-red);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

.desc-tag { font-size: 0.9rem; color: #aaa; }

.rules {
    margin-top: 50px;
    text-align: center;
    color: #555;
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .neon-frame { padding: 20px; }
    .nav-btn { width: 40px; height: 40px; font-size: 1.2rem; }
    /* REMOVIDO date-card fixo para respeitar variavel JS --card-width */
    h1 { font-size: 2.5rem; }
}

/* Ajustes Específicos para iPhone/Mobile para ganhar largura */
@media (max-width: 600px) {
    body {
        padding: 20px 5px !important; /* Reduz padding lateral externo */
    }
    .container {
        padding: 0 5px !important; /* Quase full width */
    }
    .neon-frame {
        padding: 20px 10px !important;
        border-radius: 12px;
    }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    .carousel-viewport {
        overflow: visible; /* Deixar vazar um pouco visualmente ajuda a entender que tem mais */
        /* Mas cuidado com scroll horizontal da pagina toda. Melhor hidden mas com width 100% */
        overflow: hidden; 
        padding-left: 0;
        padding-right: 0;
    }
    
    .carousel-wrapper {
        width: 100vw;
        margin-left: -20px; /* Counter-act container padding/margins se necessario, ou apenas center */
        padding: 0;
        justify-content: center;
    }
}

/* Bot�o Admin */
.float-admin-btn { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: #000; border: 2px solid var(--silver); border-radius: 50%; color: var(--silver); display: flex; align-items: center; justify-content: center; font-size: 24px; text-decoration: none; transition: 0.3s; box-shadow: 0 0 10px rgba(255, 255, 255, 0.1); z-index: 9999; }
.float-admin-btn:hover { border-color: var(--neon-red); color: var(--neon-red); box-shadow: 0 0 15px var(--neon-red); transform: rotate(90deg); }

/* --- ADMIN & UI IMPROVEMENTS --- */

/* Modern Button Style */
.btn-confirm {
    background: linear-gradient(135deg, #8b0000 0%, #ff0000 100%);
    border: none;
    border-radius: 50px; /* Pill shape */
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5);
    background: linear-gradient(135deg, #a00000 0%, #ff3333 100%);
}

.btn-confirm:active {
    transform: translateY(1px);
}

/* Better Input/Textarea Visibility */
input, select, textarea {
    background: #1a1a1a;
    border: 1px solid #444;
    padding: 15px;
    font-size: 1rem;
    color: #fff;
    border-radius: 8px;
    width: 100%;
    margin-bottom: 15px;
}

input:focus, select:focus, textarea:focus {
    background: #222;
    border-color: var(--neon-red);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
    outline: none;
}

/* Admin Widget Cards Alignment */
.widget-card {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center horizontally */
    justify-content: center; /* Center vertically */
    text-align: center;
    padding: 25px;
}

/* Admin Table Improvements */
.data-table th, .data-table td {
    padding: 15px;
    text-align: center; /* Center text in cells */
    vertical-align: middle;
}

.data-table th {
    background: #111;
    font-weight: bold;
    letter-spacing: 1px;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Mobile Adjustments for Admin */
@media (max-width: 768px) {
    .neon-frame {
        padding: 20px;
        width: 100% !important; /* Force full width on mobile frames */
        box-sizing: border-box;
    }
    
    .data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .widget-card h4 {
        font-size: 1rem;
    }
    
    .widget-value {
        font-size: 2rem;
    }
    
    /* Center Modal Content */
    #custom-modal .modal-content, 
    .login-overlay div,
    #modal-edit-client > div,
    #modal-add-appt .neon-frame {
        width: 90% !important;
        max-width: 400px;
        padding: 25px;
    }
}

/* Social link hover */
.social-icon {
    transition: transform 0.3s;
    display: inline-block;
    color: #fff; /* Default color */
}
.social-icon:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.5));
}

