/* ==========================================================================
   VIUCraft Public Layout — Navbar (public), Footer
   ========================================================================== */

/* ---------- Public navbar ---------- */
.navbar-public {
    padding: 1rem 0;
    height: auto;
    min-height: 72px;
    background: rgba(255, 255, 255, 0.85); /* Increased transparency for deeper glass effect */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: var(--z-navbar);
    transition: all var(--transition-base);
}

.navbar-public .container-wide {
    display: flex;
    flex-wrap: inherit;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar-public .navbar-collapse {
    display: flex;
    flex-basis: auto;
    flex-grow: 1;
    align-items: center;
}

.navbar-public .navbar-nav {
    display: flex;
    flex-direction: row;
    list-style: none; /* Crucial: Remove bullets */
    padding-left: 0;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto; /* Center links if desired, or use ms-auto */
    gap: 0.5rem;
}

.navbar-public .navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

.navbar-public.navbar-transparent {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
}

.navbar-public.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    box-shadow: var(--shadow-sm); /* Keep subtle */
    padding: 0.75rem 0;
}

.navbar-public .navbar-brand {
    padding: 0;
    font-size: 1.25rem;
    font-weight: 800; /* Extra bold for premium logotype */
    color: var(--text-main);
    display: flex;
    align-items: center;
    text-decoration: none;
    letter-spacing: -0.03em; /* Tighter tracking */
    margin-right: 2rem;
}

.navbar-public .navbar-brand .logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--gradient-brand);
    color: white;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    margin-right: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.navbar-public .nav-link {
    color: var(--slate-600);
    font-weight: 600;
    font-size: var(--font-size-sm);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.navbar-public .nav-link:hover {
    color: var(--text-main);
    background: var(--slate-50);
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.navbar-public .btn-outline-dark {
    border: 1px solid var(--border-default);
    color: var(--slate-700);
    font-size: var(--font-size-sm);
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md);
    background: #fff;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.navbar-public .btn-outline-dark:hover {
    background-color: var(--slate-50);
    border-color: var(--border-default); /* Keep border consistent */
    color: var(--slate-900);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.navbar-public .btn-outline-dark:active {
    transform: scale(0.98);
}

/* Base button primary already styled in base.css with transitions and glow */
.navbar-public .btn-primary {
    font-size: var(--font-size-sm);
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md);
    opacity: 1;
}

/* Transparent navbar variant link colors */
.navbar-public.navbar-transparent .nav-link {
    color: var(--slate-700);
}

.navbar-public.navbar-transparent .nav-link:hover {
    color: var(--slate-900);
    /* Glassmorphism on hover for transparent nav */
    background: rgba(255, 255, 255, 0.4); 
    backdrop-filter: blur(8px);
}

/* Mobile navbar toggler */
.navbar-public .navbar-toggler {
    border: 1px solid var(--border-default);
    padding: 0.5rem;
    border-radius: var(--radius-md);
    color: var(--slate-600);
    background: transparent;
}

@media (max-width: 991.98px) {
    .navbar-public .navbar-collapse {
        flex-direction: column;
        align-items: flex-start;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        padding: 1.5rem;
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-2xl); /* Deep shadow for dropdown */
        margin-top: 1rem;
        border: 1px solid var(--border-subtle);
        width: 100%;
    }

    .navbar-public .navbar-nav {
        flex-direction: column;
        width: 100%;
        gap: 0.25rem;
        margin-bottom: 1rem;
    }

    .navbar-public .nav-link {
        display: block;
        padding: 0.75rem 1rem;
        width: 100%;
    }

    .auth-buttons {
        flex-direction: column;
        width: 100%;
    }

    .auth-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Public footer ---------- */
.footer-public {
    background: var(--slate-950); /* Deepest dark for premium contrast */
    color: var(--slate-400);
    padding: 80px 0 40px; /* Increased padding */
    border-top: 1px solid var(--slate-800);
}

.footer-public h6 {
    color: #fff;
    font-weight: 600;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.footer-public ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-public ul li { margin-bottom: 0.75rem; }

.footer-public ul li a {
    color: var(--slate-400); /* Slightly dimmer resting state */
    text-decoration: none;
    font-size: var(--font-size-base);
    transition: all var(--transition-fast);
}

.footer-public ul li a:hover,
.footer-public ul li a:focus {
    color: #fff;
    text-decoration: none; /* No underline, use color shift */
    outline: none;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand .logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-brand); /* Colored logo on dark footer */
    border-radius: var(--radius-md);
    color: white;
}

.footer-brand span {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.footer-tagline {
    font-size: var(--font-size-sm);
    color: var(--slate-400); /* Softer */
    max-width: 280px;
    line-height: var(--line-height-normal);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05); /* Very subtle divider */
    padding-top: 2rem;
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--slate-500);
}

.footer-social {
    display: flex;
    gap: 1.25rem;
}

.footer-social a {
    color: var(--slate-500);
    font-size: 1.25rem;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-social a:hover {
    color: #fff;
    transform: translateY(-2px);
}

/* ---------- Auth page wrapper ---------- */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-surface-subtle);
}

.auth-page main {
    flex: 1;
    display: flex;
    flex-direction: column;
}
