/* Non-critical CSS - Loaded asynchronously */

/* Header Navigation */
.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--cor-primaria);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 28px;
    height: 3px;
    background-color: var(--cor-primaria);
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    will-change: transform, opacity;
}

/* Header Buttons */
.btn-login-large, .btn-header-login {
    background: transparent;
    border: 2px solid var(--cor-primaria);
    color: var(--cor-primaria) !important;
    padding: 10px 22px !important;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    /* letter-spacing removido para evitar CLS em animações */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    will-change: transform, background-color;
}

.btn-login-large:hover, .btn-header-login:hover {
    background: var(--cor-primaria);
    color: #000 !important;
}

.btn-register, .btn-header-register {
    background: var(--cor-primaria);
    color: #000 !important;
    padding: 10px 22px !important;
    border-radius: 50px;
    border: 2px solid var(--cor-primaria);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    /* letter-spacing removido para evitar CLS em animações */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    will-change: transform, background-color;
}

.btn-register:hover, .btn-header-register:hover {
    background: transparent;
    color: var(--cor-primaria) !important;
}

/* Header Logo */
.btn-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #ffd700;
    border-radius: 8px;
    color: #ffd700 !important;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.btn-logo:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700 !important;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease, background-color 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
}

.nav-menu li a:hover {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

/* Header Buttons Styles */
.btn-header-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px !important;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    color: #e0e0e0 !important;
    font-weight: 600;
    font-size: 15px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    will-change: transform, background-color;
}

.btn-header-nav:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #ffd700;
    color: #ffd700 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.btn-saldo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px !important;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid #10b981;
    border-radius: 10px;
    color: #10b981 !important;
    font-weight: 700;
    font-size: 15px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    will-change: transform, background-color;
}

.btn-saldo:hover {
    background: #10b981;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-header-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px !important;
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid #ef4444;
    border-radius: 10px;
    color: #ef4444 !important;
    font-weight: 600;
    font-size: 15px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    will-change: transform, background-color;
}

.btn-header-logout:hover {
    background: #ef4444;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-header-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px !important;
    background: rgba(255, 215, 0, 0.05);
    border: 2px solid #ffd700;
    border-radius: 10px;
    color: #ffd700 !important;
    font-weight: 600;
    font-size: 15px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    will-change: transform, background-color;
}

.btn-header-login:hover {
    background: #ffd700;
    color: #1a1a2e !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.btn-header-register {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px !important;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border: 2px solid #ffd700;
    border-radius: 10px;
    color: #1a1a2e !important;
    font-weight: 700;
    font-size: 15px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    will-change: transform;
}

.btn-header-register:hover {
    background: linear-gradient(135deg, #ffed4e, #ffd700);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
}

/* User Menu Dropdown */
.user-menu-item {
    position: relative;
}

.user-menu-toggle {
    cursor: pointer;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    list-style: none;
    padding: 10px 0;
    z-index: 10000;
}

.user-dropdown::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: transparent;
}

.user-menu-item:hover .user-dropdown {
    display: block;
}

.user-dropdown li {
    margin: 0;
}

.user-dropdown li a {
    display: block;
    padding: 12px 20px;
    color: #e0e0e0;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
    font-size: 15px;
    font-weight: 500;
}

.user-dropdown li a:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
}

/* Header Height Variable */
:root {
    --header-height: 60px;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Card Hover Effects */
.babalorixa-card:hover {
    transform: translateY(-8px);
    border-color: var(--cor-primaria);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 215, 0, 0.1);
}

.babalorixa-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    will-change: transform;
}

.babalorixa-card:hover .babalorixa-photo img {
    transform: scale(1.08);
}

.babalorixa-name {
    font-family: 'Cinzel', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--cor-primaria);
    margin-bottom: 8px;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    text-align: center;
}

.babalorixa-title {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
    line-height: 1.4;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    text-align: center;
    padding: 0 5px;
}

/* Rating */
.consultor-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.estrelas {
    display: flex;
    gap: 3px;
}

.estrela-card {
    color: #64748b !important; /* Cinza para estrelas inativas */
    font-size: 18px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.estrela-card.ativo {
    color: #ffd700 !important; /* Amarelo dourado para estrelas ativas */
    opacity: 1 !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.rating-score {
    font-size: 0.8rem;
    color: #cbd5e1;
}

/* Price */
.consultor-price {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    padding: 10px 24px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* CTA Button */
.cta-button {
    width: 100%;
    max-width: 200px;
    background: linear-gradient(135deg, #ffd700, #f59e0b);
    color: #0f172a;
    padding: 14px 20px;
    border-radius: 10px;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    /* transition: transform 0.3s ease, box-shadow 0.3s ease; - Removido box-shadow para evitar CLS/Repaint */
    transition: transform 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.25);
    margin-top: auto;
    text-decoration: none;
    display: inline-block;
    will-change: transform;
}

.cta-button:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.cta-button.disabled {
    background: #334155;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
}

/* Status Classes */
.status-disponivel { border-color: rgba(34, 197, 94, 0.4); }
.status-disponivel:hover { border-color: #22c55e; }
.status-disponivel .cta-button { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; }

.status-ocupado { border-color: rgba(234, 179, 8, 0.4); }
.status-ocupado:hover { border-color: #eab308; }
.status-ocupado .cta-button.disabled { background: linear-gradient(135deg, #ca8a04, #a16207); color: #fff; }

.status-offline { border-color: rgba(239, 68, 68, 0.3); }
.status-offline:hover { border-color: #ef4444; }
.status-offline .cta-button.disabled { background: linear-gradient(135deg, #dc2626, #991b1b); color: #fff; }

/* Features Section */
.features {
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.2) 100%);
    padding: 48px 0;
}

section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

section > .container > p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.feature-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 35px 25px;
    border-radius: 16px;
    transition: transform 0.3s ease;
    will-change: transform;
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 41, 59, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 3rem;
    display: block;
    flex-shrink: 0;
}

.feature-title {
    font-size: 1.3rem;
    margin: 0;
    color: #fff;
    font-family: 'Cinzel', serif;
}

.feature-text {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Content Section */
.content-section {
    padding: 60px 0;
}

/* Footer */
footer {
    background: #020617;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 30px;
}

footer a:hover {
    color: var(--cor-primaria) !important;
}

/* Utility Classes */
.error-message {
    color: #ef4444;
    text-align: center;
    padding: 20px;
    font-size: 1rem;
}

.loading-message {
    color: #94a3b8;
    text-align: center;
    padding: 40px;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .personagem-cards-container {
        max-width: 700px;
    }
    .babalorixa-card {
        width: 300px;
    }
}

@media (min-width: 769px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Navigation */
@media (max-width: 968px) {
    .logo {
        flex-direction: row;
        gap: 8px;
        align-items: center;
    }

    .btn-logo {
        font-size: 13px;
        padding: 8px 14px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 30px 20px;
        gap: 15px;
        transition: left 0.3s ease;
        overflow-y: auto;
        align-items: stretch;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        display: flex;
        justify-content: center;
        padding: 15px 20px !important;
        text-align: center;
        font-size: 16px;
        width: 100%;
    }

    .btn-header-nav,
    .btn-header-login,
    .btn-header-register,
    .btn-header-logout,
    .btn-saldo {
        width: 100%;
        justify-content: center;
    }

    .user-dropdown {
        position: static;
        display: none;
        margin-top: 10px;
        border-radius: 8px;
        width: 100%;
    }

    .user-menu-item.active .user-dropdown {
        display: block;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* Body padding for fixed header */
body {
    padding-top: var(--header-height);
}

/* Footer responsive */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column !important;
        gap: 30px !important;
        text-align: center !important;
    }

    .footer-section {
        min-width: auto !important;
    }
    
    .babalorixa-name {
        font-size: 1.1rem;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    .babalorixa-title {
        font-size: 0.8rem;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: break-word;
        min-height: auto;
    }
}
