/* CSS do Layout Público - Vitrine de E-books */

:root {
    /* Identidade Visual Requerida */
    --bg-dark: #020617;          /* Fundo Escuro */
    --color-blue: #38BDF8;       /* Azul */
    --color-violet: #8B5CF6;     /* Lilás */
    --color-green: #22C55E;      /* Verde */
    --bg-light: #F8FAFC;         /* Fundo Claro */
    --text-dark: #1E293B;        /* Texto Escuro */
    --text-light: #F8FAFC;       /* Texto Claro */
    
    /* Fontes */
    --font-titles: 'Playfair Display', Georgia, serif;
    --font-texts: 'Inter', -apple-system, sans-serif;
}

body {
    font-family: var(--font-texts);
    color: var(--text-light);
    background-color: var(--bg-dark);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Placeholders Globais (Tema Escuro) */
input::placeholder,
textarea::placeholder,
.form-control::placeholder {
    color: #94a3b8 !important;
    opacity: 0.75 !important;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6, .display-font {
    font-family: var(--font-titles);
    font-weight: 700;
}

/* Acessibilidade por Teclado */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--color-blue) !important;
    outline-offset: 2px;
}

/* Navbar */
.navbar-public {
    background-color: var(--bg-dark);
    border-bottom: 1px solid rgba(139, 92, 246, 0.15); /* Borda em tom de Lilás */
}
.navbar-public .navbar-brand {
    font-family: var(--font-titles);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}
.navbar-public .navbar-brand img,
.navbar-logo {
    max-height: 65px;
    width: auto;
    object-fit: contain;
    transition: max-height 0.3s ease;
}

@media (max-width: 768px) {
    .navbar-public .navbar-brand img,
    .navbar-logo {
        max-height: 50px;
    }
}
.navbar-public .nav-link {
    color: rgba(248, 250, 252, 0.8) !important;
    font-weight: 500;
    font-size: 14.5px;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease-in-out;
}
.navbar-public .nav-link:hover, 
.navbar-public .nav-link:focus {
    color: var(--color-blue) !important;
}
.navbar-public .nav-link.active {
    color: var(--color-blue) !important;
    font-weight: 600;
}

/* Botões */
.btn-blue {
    background-color: var(--color-blue);
    color: var(--bg-dark);
    font-weight: 600;
    border: none;
    transition: all 0.2s ease;
}
.btn-blue:hover, .btn-blue:focus {
    background-color: #0ea5e9;
    color: #fff;
    transform: translateY(-1px);
}

.btn-violet {
    background-color: var(--color-violet);
    color: #fff;
    font-weight: 600;
    border: none;
    transition: all 0.2s ease;
}
.btn-violet:hover, .btn-violet:focus {
    background-color: #7c3aed;
    transform: translateY(-1px);
}

.btn-green {
    background-color: var(--color-green);
    color: #fff;
    font-weight: 600;
    border: none;
    transition: all 0.2s ease;
}
.btn-green:hover, .btn-green:focus {
    background-color: #16a34a;
    transform: translateY(-1px);
}

/* Banner de Cookies */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background-color: var(--bg-dark);
    color: var(--text-light);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 1050;
    max-width: 600px;
    margin: 0 auto;
}

/* Botão Flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 24px;
    right: 24px;
    background-color: var(--color-green);
    color: #fff;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}
.whatsapp-float i {
    font-size: 32px;
}
.whatsapp-float:hover, .whatsapp-float:focus {
    background-color: #16a34a;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.6);
}

/* Animação Glowing/Pulse no WhatsApp */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--color-green);
    border-radius: 50px;
    z-index: -1;
    opacity: 0.4;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Rodapé */
.footer-public {
    background-color: var(--bg-dark);
    color: rgba(248, 250, 252, 0.7);
    border-top: 1px solid rgba(139, 92, 246, 0.15);
}
.footer-public h5 {
    color: #fff;
    font-family: var(--font-titles);
    margin-bottom: 1.25rem;
}
.footer-public a {
    color: rgba(248, 250, 252, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-public a:hover, .footer-public a:focus {
    color: var(--color-blue);
}

/* Página de contato */
.contact-page {
    position: relative;
}

.contact-page::before {
    content: '';
    position: absolute;
    top: 1rem;
    left: 50%;
    width: min(38rem, 90vw);
    height: 18rem;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(139, 92, 246, 0.14), transparent 68%);
    pointer-events: none;
    z-index: -1;
}

.contact-intro .badge {
    color: var(--color-violet) !important;
    background-color: rgba(139, 92, 246, 0.12) !important;
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.contact-intro h1 {
    color: #fff !important;
}

.contact-intro-text {
    max-width: 42rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
}

.contact-card {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(56, 189, 248, 0.18) !important;
    box-shadow: 0 24px 55px rgba(2, 6, 23, 0.32) !important;
}

.contact-card::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--color-violet), var(--color-blue), var(--color-green));
}

.contact-label {
    color: #f1f5f9 !important;
    letter-spacing: 0.045em;
}

.contact-optional {
    color: #94a3b8;
    font-weight: 600;
}

.contact-control {
    min-height: 46px;
    padding: 0.7rem 0.9rem;
    color: #f8fafc !important;
    background-color: #0b1220;
    border: 1px solid #475569;
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.contact-control::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.contact-control:hover {
    border-color: #64748b;
}

.contact-control:focus {
    color: #fff;
    background-color: #0f172a;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 0.22rem rgba(56, 189, 248, 0.16);
}

textarea.contact-control {
    min-height: 140px;
    resize: vertical;
}

/* Otimização Mobile First */
@media (max-width: 768px) {
    .contact-intro h1 {
        font-size: 2rem !important;
    }
    .contact-card .card-body {
        padding: 1.5rem !important;
    }
    .cookie-banner {
        bottom: 12px;
        left: 12px;
        right: 12px;
        border-radius: 12px;
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 16px;
        right: 16px;
    }
    .whatsapp-float i {
        font-size: 26px;
    }
}
