/* ============================================
   assets/css/shell.css
   Estilos compartilhados entre SPA e Landing Pages
   ============================================ */

/* ============================================
   RESET E BASE
   ============================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    overflow-x: hidden;
    color: #1e293b;
}

/* ============================================
   NAVBAR FIXA
   ============================================ */
.app-navbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: 72px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-navbar.scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    height: 64px;
}

.navbar-brand-logo {
    height: 44px;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: contain;
}

.app-navbar.scrolled .navbar-brand-logo {
    height: 36px;
}

.navbar-brand-text {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.3px;
}

.navbar-brand-text span {
    color: #2173C5;
}

.nav-link-custom {
    color: #64748b !important;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 14px !important;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.nav-link-custom:hover {
    color: #2173C5 !important;
    background: rgba(33, 115, 197, 0.04);
}

.nav-link-custom.active {
    color: #2173C5 !important;
    font-weight: 600;
}



/* ============================================
   NAVBAR DROPDOWN (Desktop)
   ============================================ */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown-arrow {
    font-size: 9px;
    transition: transform 0.25s ease;
    opacity: 0.5;
}

.nav-dropdown.open .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    min-width: 200px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10), 0 2px 6px rgba(0, 0, 0, 0.04);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1010;
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-dropdown-item i {
    width: 16px;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.nav-dropdown-item:hover {
    background: rgba(33, 115, 197, 0.05);
    color: #2173C5;
}

.nav-dropdown-item:hover i {
    color: #2173C5;
}

.nav-dropdown-item.active {
    color: #2173C5;
    font-weight: 600;
}

.nav-dropdown-item.active i {
    color: #2173C5;
}

.btn-nav-cta,
.btn-nav-cta:focus-visible {
    background: #2173C5;
    color: #fff !important;
    border: none;
    padding: 9px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.btn-nav-cta:hover {
    background: #1a5aa0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 115, 197, 0.2);
    color: #fff !important;
}

/* ============================================
   CONTENT AREA (SPA)
   ============================================ */
#content-area {
    margin-top: 72px;
    min-height: calc(100vh - 72px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#content-area.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* ============================================
   LANDING SPACER
   ============================================ */
.landing-spacer {
    height: 72px;
}

/* ============================================
   LOADING OVERLAY (SPA)
   ============================================ */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(33, 115, 197, 0.12);
    border-top-color: #2173C5;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   FOOTER
   ============================================ */
.app-footer {
    background: #0c0c1d;
    color: #94a3b8;
    padding: 56px 0 28px;
}

.app-footer h6 {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    display: block;
    padding: 3px 0;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.footer-link:hover {
    color: var(--app-blue, #2173C5);
}

.footer-description {
    font-size: 13px;
    line-height: 1.7;
    color: #64748b;
    max-width: 300px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
    margin-top: 36px;
}

.footer-social a {
    color: #64748b;
    font-size: 16px;
    margin-right: 14px;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social a:hover {
    color: #2173C5;
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
#btn-scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 42px;
    height: 42px;
    background: #2173C5;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

#btn-scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

#btn-scroll-top:hover {
    background: #1a5aa0;
    transform: translateY(-2px);
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   MOBILE MENU - Oculto por padrão (visível apenas em mobile)
   ============================================ */
.navbar-collapse-custom {
    display: none;
}

@media (max-width: 991px) {




    .navbar-collapse-custom {
        display: block;
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: #ffffff;
        z-index: 1002;
        padding: 72px 24px 24px;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
        overflow-y: auto;
    }

    .navbar-collapse-custom.show {
        right: 0;
    }

    .navbar-collapse-custom .nav-link-custom {
        display: block;
        padding: 11px 14px !important;
        font-size: 15px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    }

    .navbar-collapse-custom .btn-nav-cta {
        width: 100%;
        text-align: center;
        margin-top: 16px;
        padding: 12px 20px;
    }

    .btn-mobile-close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 22px;
        color: #1e293b;
        cursor: pointer;
    }

    /* ========== Mobile Dropdown (Accordion) ========== */
    .mobile-dropdown {
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    }

    .mobile-dropdown-toggle {
        background: none;
        border: none;
        cursor: pointer;
        width: 100%;
        text-align: left;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-dropdown-arrow {
        font-size: 10px;
        opacity: 0.4;
        transition: transform 0.25s ease;
    }

    .mobile-dropdown.open .mobile-dropdown-arrow {
        transform: rotate(180deg);
    }

    .mobile-dropdown-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding-left: 12px;
    }

    .mobile-dropdown.open .mobile-dropdown-menu {
        max-height: 200px;
    }

    .mobile-dropdown-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 14px;
        font-size: 14px;
        font-weight: 500;
        color: #64748b;
        text-decoration: none;
        border-radius: 6px;
        transition: color 0.2s ease;
    }

    .mobile-dropdown-item i {
        width: 16px;
        text-align: center;
        font-size: 12px;
        color: #94a3b8;
    }

    .mobile-dropdown-item:hover {
        color: #2173C5;
    }

}


/* ============================================
   NAVBAR — SWINOTAS ULTRA-DESTAQUE (CARRO-CHEFE)
   Estética Glassmorphism + Glow Effect
   ============================================ */

.nav-link-destaque {
    color: #ffffff !important; /* Texto branco para contraste no gradiente */
    font-weight: 700;
    font-size: 14px;
    padding: 8px 20px !important;
    border-radius: 50px; /* Formato pílula mais moderno */
    
    /* Fundo com Gradiente Assinado */
    background: linear-gradient(135deg, #2173C5 0%, #3bc1e3 100%);
    
    /* Efeito de Vidro e Sombra Profunda */
    box-shadow: 0 4px 15px rgba(33, 115, 197, 0.3), 
                inset 0 1px 1px rgba(255, 255, 255, 0.3);
    
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.nav-link-destaque:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 25px rgba(33, 115, 197, 0.5), 
                0 0 15px rgba(59, 193, 227, 0.4);
    color: #ffffff !important;
}

/* O "Dot" agora brilha de verdade */
.nav-link-destaque .nav-destaque-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80; /* Verde mais vibrante */
    flex-shrink: 0;
    box-shadow: 0 0 10px #4ade80;
    animation: pulse-dot-premium 2s infinite;
}

/* Animação de Pulso Refinada */
@keyframes pulse-dot-premium {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(74, 222, 128, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

/* Brilho de passagem (Shine Effect) ao carregar/hover */
.nav-link-destaque::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: all 0.7s;
}

.nav-link-destaque:hover::after {
    left: 120%;
}

/* Ajustes Mobile */
@media (max-width: 991px) {
    .nav-link-destaque {
        display: flex;
        justify-content: center;
        width: 100%;
        padding: 14px !important;
        margin: 10px 0;
        font-size: 16px;
    }
}