/* ==========================================================================
   Design System - Everton Sabú: Diagnóstico dos Bloqueios Mentais
   ========================================================================== */

:root {
    --bg-dark: #0B0B0C;
    --bg-card: #121214;
    --bg-card-glass: rgba(18, 18, 20, 0.75);
    --gold-primary: #D4AF37;
    --gold-hover: #C5A059;
    --gold-light: rgba(212, 175, 55, 0.15);
    --blue-deep: #0A192F;
    --blue-accent: #1E2A38;
    --text-white: #F4F4F5;
    --text-gray: #A1A1AA;
    --text-dark: #18181B;
    --border-gold: rgba(212, 175, 55, 0.2);
    --border-gray: rgba(161, 161, 170, 0.15);
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --shadow-premium: 0 15px 35px rgba(0, 0, 0, 0.7);
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset e Estrutura Básica */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main.main-content {
    flex: 1;
    width: 100%;
}

/* ==========================================================================
   Header e Navegação Responsiva
   ========================================================================== */
.main-header {
    background-color: rgba(11, 11, 12, 0.95);
    border-bottom: 1px solid var(--border-gold);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    padding: 15px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-serif);
    color: var(--gold-primary);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.1;
}

.logo-subtitle {
    color: var(--text-gray);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 25px;
}

.nav-item {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
    padding: 5px 0;
}

.nav-item:hover, .nav-item.active {
    color: var(--gold-primary);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--gold-primary);
}

.nav-btn-login {
    border: 1px solid var(--gold-primary);
    padding: 8px 18px;
    border-radius: 4px;
    color: var(--gold-primary) !important;
}

.nav-btn-login:hover {
    background-color: var(--gold-primary);
    color: var(--bg-dark) !important;
}

.nav-btn-logout {
    color: #F87171;
}

.nav-btn-logout:hover {
    color: #EF4444;
}

.nav-admin-badge {
    background-color: var(--blue-accent);
    border: 1px dashed var(--gold-primary);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--gold-primary) !important;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 110;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--gold-primary);
    transition: var(--transition-smooth);
}

/* ==========================================================================
   Seções e Landing Page (index.php)
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 100px 20px;
    background: radial-gradient(circle at top, var(--blue-deep) 0%, var(--bg-dark) 70%);
    text-align: center;
    border-bottom: 1px solid var(--border-gold);
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
}

.badge-tag {
    display: inline-block;
    background-color: var(--gold-light);
    color: var(--gold-primary);
    border: 1px solid var(--border-gold);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 3.2rem;
    line-height: 1.2;
    color: var(--text-white);
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--gold-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    font-weight: 300;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold-primary), #C5A059);
    color: var(--bg-dark);
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    padding: 16px 40px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, #C5A059, var(--gold-primary));
}

/* Cards e Grades */
.info-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-headline {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    text-align: center;
    color: var(--gold-primary);
    margin-bottom: 50px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.premium-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-gray);
    padding: 35px;
    border-radius: 12px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.premium-card:hover {
    border-color: var(--gold-primary);
    transform: translateY(-5px);
}

.premium-card h3 {
    font-family: var(--font-serif);
    color: var(--gold-primary);
    font-size: 1.35rem;
    margin-bottom: 15px;
}

.premium-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   Formulários e Cadastro
   ========================================================================== */
.form-section {
    background-color: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    max-width: 700px;
    margin: 40px auto;
    padding: 40px;
    box-shadow: var(--shadow-premium);
}

.form-group {
    margin-bottom: 22px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    color: var(--text-white);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 8px;
    text-align: left;
}

.form-control {
    width: 100%;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-gray);
    color: var(--text-white);
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
}

.disclaimer-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 25px 0;
    text-align: left;
    font-size: 0.85rem;
    color: var(--text-gray);
    background-color: rgba(255, 255, 255, 0.02);
    padding: 15px;
    border-radius: 6px;
    border: 1px solid var(--border-gray);
}

.disclaimer-checkbox input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--gold-primary);
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   Quiz Interface (diagnostico.js)
   ========================================================================== */
.quiz-container {
    max-width: 750px;
    margin: 60px auto;
    padding: 20px;
}

.progress-wrapper {
    margin-bottom: 30px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background-color: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-gray);
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-hover));
    transition: width 0.4s ease-in-out;
}

.quiz-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-premium);
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.pergunta-texto {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    line-height: 1.4;
    color: var(--text-white);
    margin-bottom: 35px;
}

.opcoes-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.opcao-card {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: 16px 24px;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
}

.opcao-card:hover {
    border-color: var(--gold-primary);
    background-color: var(--gold-light);
}

.opcao-card.selected {
    border-color: var(--gold-primary);
    background-color: rgba(212, 175, 55, 0.25);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.15);
}

.opcao-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--text-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.opcao-card.selected .opcao-radio {
    border-color: var(--gold-primary);
}

.opcao-card.selected .opcao-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background-color: var(--gold-primary);
    border-radius: 50%;
    display: block;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn-nav {
    background-color: var(--bg-card);
    color: var(--text-white);
    border: 1px solid var(--border-gray);
    padding: 12px 25px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-nav:hover:not(:disabled) {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.btn-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ==========================================================================
   Resultados e Área de Vendas
   ========================================================================== */
.resultado-wrapper {
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
}

.bloqueio-alerta {
    background-color: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.25);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 40px;
}

.bloqueio-alerta h2 {
    font-family: var(--font-serif);
    color: #F87171;
    font-size: 2rem;
    margin-bottom: 10px;
}

.bloqueio-score-badge {
    display: inline-block;
    background-color: rgba(239, 68, 68, 0.15);
    color: #F87171;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 8px 20px;
    border-radius: 20px;
    margin: 15px 0;
}

.diagnostico-corpo {
    background-color: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-premium);
}

.diagnostico-corpo h3 {
    font-family: var(--font-serif);
    color: var(--gold-primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-left: 4px solid var(--gold-primary);
    padding-left: 15px;
}

.diagnostico-corpo p {
    color: var(--text-white);
    margin-bottom: 20px;
    line-height: 1.8;
}

.paywall-box {
    background: radial-gradient(circle at center, var(--blue-accent) 0%, var(--blue-deep) 100%);
    border: 1px solid var(--gold-primary);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
}

.paywall-box h2 {
    font-family: var(--font-serif);
    color: var(--gold-primary);
    font-size: 2rem;
    margin-bottom: 15px;
}

.paywall-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin: 20px 0;
}

.paywall-price span {
    font-size: 1.2rem;
    color: var(--gold-primary);
    font-weight: 600;
}

/* ==========================================================================
   Admin e Logs
   ========================================================================== */
.admin-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.admin-widget {
    background-color: var(--bg-card);
    border: 1px solid var(--border-gray);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

.admin-widget .widget-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-top: 10px;
}

.admin-table-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 40px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th, .admin-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-gray);
    font-size: 0.9rem;
}

.admin-table th {
    background-color: var(--blue-accent);
    color: var(--gold-primary);
    font-weight: 600;
}

.admin-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pago {
    background-color: rgba(16, 185, 129, 0.15);
    color: #34D399;
}

.status-pendente {
    background-color: rgba(245, 158, 11, 0.15);
    color: #FBBF24;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background-color: #050506;
    border-top: 1px solid var(--border-gold);
    padding: 50px 20px;
    margin-top: 60px;
    text-align: center;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-disclaimer {
    color: var(--text-gray);
    font-size: 0.8rem;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: justify;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #52525B;
    border-top: 1px solid var(--border-gray);
    padding-top: 25px;
}

/* ==========================================================================
   Animações
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--gold-light);
    border-top-color: var(--gold-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 30px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Responsividade
   ========================================================================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-dark);
        border-bottom: 1px solid var(--border-gold);
        padding: 20px;
        box-shadow: var(--shadow-premium);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 15px;
    }
    
    .nav-item {
        width: 100%;
        padding: 8px 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}
