:root {
    --nav-height: 80px;
    --nav-bg: #ffffff; /* White Background */
    --purple: #6366f1;
    --text-main: #1e293b;
    --text-muted: #64748b;
}

.site-header {
    height: var(--nav-height);
    background: var(--nav-bg);
    border-bottom: 1px solid #f1f5f9;
    position: sticky;
    top: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.site-header.scrolled {
    height: 70px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* ── Brand ── */
.brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-name {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
    display: flex;
    text-transform: uppercase;
}


.text-black { color: #000000; }
.text-purple { color: var(--purple); }

/* ── Mobile Toggle ── */
.mobile-nav-toggle {
    display: none;
    background: #f1f5f9;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: var(--text-main);
    cursor: pointer;
    font-size: 20px;
    transition: 0.3s;
}

/* ── Navigation Actions ── */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    text-decoration: none;
    color: #000000; /* Text show as black */
    font-weight: 800;
    font-size: 15px;
    padding: 10px 20px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link i {
    font-size: 20px;
    color: #6366f1; /* Icon as colors (indigo) */
    transition: all 0.3s;
}

.nav-link:hover {
    background: #f1f5f9;
}

/* Modern Active Style */
.nav-link.active {
    background: #f1f5ff;
    color: #6366f1;
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.1);
}

.nav-link.active i {
    color: #6366f1;
    transform: scale(1.1);
}


.btn-auth {
    padding: 10px 24px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-auth i {
    font-size: 14px;
}


.btn-login {
    color: var(--purple);
    background: rgba(99, 102, 241, 0.05);
}

.btn-register {
    background: var(--purple);
    color: white;
    margin-left: 5px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: #f8fafc;
    border-radius: 50px;
    border: 1.5px solid #f1f5f9;
    transition: 0.3s;
}

.user-menu:hover {
    background: #f1f5f9;
    border-color: var(--purple);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--purple);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
}

.user-name-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.btn-logout {
    font-size: 16px;
    color: #ef4444;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 8px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-logout:hover {
    background: #fef2f2;
    transform: scale(1.1);
}



/* ── Responsive Refinements ── */
@media (max-width: 1300px) {
    .nav-container { padding: 0 20px; }
    .nav-link { padding: 8px 12px; gap: 8px; font-size: 14px; }
    .brand-name { font-size: 20px; }
    .user-menu { padding: 6px 12px; gap: 8px; }
}

@media (max-width: 1150px) {
    .mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .nav-actions {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        border-bottom: 2px solid #f1f5f9;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        visibility: hidden;
        max-height: calc(100vh - var(--nav-height));
        overflow-y: auto;
        border-top: 1px solid #f1f5f9;
        opacity: 0;
    }

    .nav-actions.active {
        transform: translateY(0);
        visibility: visible;
        opacity: 1;
    }

    .nav-link {
        width: 100%;
        padding: 12px 15px;
        justify-content: flex-start;
        border-radius: 12px;
        background: #f8fafc;
        border: 1px solid transparent;
    }

    .nav-link:hover {
        border-color: #e2e8f0;
    }

    .user-menu {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
        margin-top: 5px;
        background: #f8fafc;
        padding: 12px 15px;
        border-radius: 12px;
    }

    .btn-auth {
        width: 100%;
        justify-content: center;
        margin-left: 0 !important;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .brand-name { font-size: 17px; letter-spacing: -0.5px; }
    .nav-container { padding: 0 15px; }
    .site-header { height: 70px; }
    .mobile-nav-toggle { width: 40px; height: 40px; font-size: 18px; }
}






/* ── Auth Modal Popup ────────────────── */
.auth-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    z-index: 20000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-overlay.active {
    display: flex;
    opacity: 1;
}

.auth-modal {
    background: white;
    width: 95%;
    max-width: 440px;
    border-radius: 24px;
    padding: 35px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-sizing: border-box;
}

.auth-overlay.active .auth-modal {
    transform: scale(1) translateY(0);
}

.auth-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-close:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: rotate(90deg);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.auth-header p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-input-group label {
    font-weight: 700;
    font-size: 13px;
    color: #1e293b;
    padding-left: 4px;
}

.auth-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    outline: none;
    transition: all 0.3s;
    box-sizing: border-box;
}

.auth-input:focus {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.02);
}

.btn-auth-submit {
    background: #6366f1;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-auth-submit:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

.auth-switch {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #64748b;
}

.auth-switch a {
    color: #6366f1;
    font-weight: 700;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .auth-modal {
        padding: 30px 20px;
    }
    .auth-header h2 {
        font-size: 20px;
    }
}
/* ── Global Toast Notifications ── */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 700;
    z-index: 10000;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast-container.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-container i {
    color: #6366f1;
    font-size: 18px;
}
