﻿/* Enhanced Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 30px var(--shadow-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(107, 44, 62, 0.1);
    padding: 10px 5px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--burgundy), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

    .logo::after {
        content: '✨';
        position: absolute;
        top: -5px;
        right: -25px;
        animation: sparkle 2s infinite;
    }

@keyframes sparkle {

    0%, 100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.2) rotate(180deg);
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

    .nav-links a {
        text-decoration: none;
        color: var(--dark-gray);
        font-weight: 500;
        position: relative;
        transition: all 0.3s ease;
        padding: 0.5rem 0;
    }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--burgundy), var(--gold));
            transition: width 0.3s ease;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .nav-links a:hover {
            color: var(--burgundy);
        }

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

    .mobile-menu-toggle span {
        width: 25px;
        height: 3px;
        background: var(--dark-gray);
        margin: 3px 0;
        transition: 0.3s;
    }

.cta-nav {
    background: linear-gradient(135deg, var(--burgundy), var(--wine));
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px var(--shadow-light);
    position: relative;
    overflow: hidden;
}

    .cta-nav::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
    }

    .cta-nav:hover::before {
        left: 100%;
    }

    .cta-nav:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px var(--shadow-medium);
    }
/* ============================================ */
/* NAVBAR - COLOR CORRECTED TO MATCH DESIGN */
/* ============================================ */

/* Header */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 15px var(--shadow-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(107, 44, 62, 0.1);
    padding: 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    max-width: 1400px;
    margin: 0 auto;
}

/* Brand Container */
.brand-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1002;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--burgundy), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    line-height: 1;
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1002;
}

/* Demo Button - Using your burgundy/wine */
.btn-demo {
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--burgundy), var(--wine));
    color: var(--white);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px var(--shadow-medium);
    font-size: 0.95rem;
}

    .btn-demo:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px var(--shadow-heavy);
        background: linear-gradient(135deg, var(--dark-burgundy), var(--burgundy));
    }

/* Login Button - Using your burgundy/wine */
.btn-login {
    background: linear-gradient(135deg, var(--burgundy), var(--wine));
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px var(--shadow-medium);
    text-decoration: none;
    display: inline-block;
    font-size: 0.95rem;
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px var(--shadow-heavy);
        background: linear-gradient(135deg, var(--dark-burgundy), var(--burgundy));
    }

/* Admin Dashboard Button - Using your burgundy/wine */
.btn-admin {
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--dark-burgundy), var(--burgundy));
    color: var(--white);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px var(--shadow-medium);
    font-size: 0.95rem;
}

    .btn-admin:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px var(--shadow-heavy);
        background: linear-gradient(135deg, var(--burgundy), var(--wine));
    }

    .btn-admin i {
        font-size: 0.9rem;
        color: var(--gold);
    }

/* Nav Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

    .nav-links li {
        margin: 0;
    }

    .nav-links a {
        text-decoration: none;
        color: var(--dark-gray);
        font-weight: 500;
        position: relative;
        transition: all 0.3s ease;
        padding: 0.25rem 0;
        font-size: 0.95rem;
    }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--burgundy), var(--gold));
            transition: width 0.3s ease;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .nav-links a:hover {
            color: var(--burgundy);
        }

/* User Menu Wrapper */
.user-menu-wrapper {
    position: relative;
}

.user-avatar-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--burgundy);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    background: none;
    padding: 0;
}

    .user-avatar-btn:hover {
        border-width: 3px;
        box-shadow: 0 0 15px var(--shadow-medium);
        transform: scale(1.05);
    }

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid var(--champagne);
    z-index: 1003;
}

    .user-dropdown.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .user-dropdown ul {
        list-style: none;
        padding: 0.5rem 0;
        margin: 0;
    }

    .user-dropdown li {
        margin: 0;
    }

        .user-dropdown li a,
        .logout-btn {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem 1.25rem;
            color: var(--dark-gray);
            text-decoration: none;
            transition: all 0.2s ease;
            width: 100%;
            border: none;
            background: none;
            text-align: left;
            font-size: 0.95rem;
            cursor: pointer;
            font-family: inherit;
        }

            .user-dropdown li a:hover,
            .logout-btn:hover {
                background: var(--champagne);
                color: var(--burgundy);
            }

            .user-dropdown li a i,
            .logout-btn i {
                width: 16px;
                color: var(--burgundy);
            }

.logout-form {
    margin: 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
    gap: 4px;
}

    .mobile-menu-toggle span {
        width: 24px;
        height: 2.5px;
        background: var(--burgundy);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(107, 44, 62, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .mobile-menu-overlay.active {
        opacity: 1;
    }

/* Mobile Menu Panel */
.mobile-menu-panel {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 82%;
    max-width: 360px;
    height: 100vh;
    background: var(--white);
    z-index: 1001;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -8px 0 40px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

    .mobile-menu-panel.active {
        right: 0;
    }

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--dark-burgundy), var(--burgundy));
    border-bottom: 2px solid var(--gold);
    flex-shrink: 0;
}

.mobile-menu-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    -webkit-text-fill-color: var(--white);
    background: none;
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

    .mobile-menu-close:hover {
        background: rgba(255,255,255,0.25);
        border-color: var(--gold);
        color: var(--gold);
    }

.mobile-menu-content {
    padding: 1.25rem 1.25rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

    .mobile-menu-list li {
        margin: 0;
    }

    .mobile-menu-list a {
        display: flex;
        align-items: center;
        gap: 0.85rem;
        padding: 0.85rem 1rem;
        color: var(--dark-gray);
        text-decoration: none;
        font-weight: 500;
        font-size: 0.95rem;
        border-radius: 10px;
        transition: all 0.25s ease;
        border-left: 3px solid transparent;
        margin-bottom: 0.2rem;
    }

        .mobile-menu-list a:hover {
            background: rgba(107, 44, 62, 0.06);
            color: var(--burgundy);
            border-left-color: var(--gold);
            padding-left: 1.3rem;
        }

        .mobile-menu-list a i {
            width: 18px;
            color: var(--burgundy);
            font-size: 0.9rem;
            flex-shrink: 0;
        }

/* Mobile Menu Actions */
.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(107, 44, 62, 0.1);
    margin-top: auto;
}

/* Book a Demo — gold */
.mobile-demo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.9rem 1rem;
    background: linear-gradient(135deg, var(--gold), var(--light-gold));
    color: var(--dark-burgundy);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

    .mobile-demo-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
    }

/* Login — outlined */
.mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.9rem 1rem;
    background: transparent;
    color: var(--burgundy);
    border: 1.5px solid var(--burgundy);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

    .mobile-cta-btn:hover {
        background: var(--burgundy);
        color: var(--white);
    }

/* Mobile User Section */
.mobile-user-section {
    padding-top: 1rem;
    border-top: 1px solid rgba(107, 44, 62, 0.1);
    margin-top: auto;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1rem;
    background: linear-gradient(135deg, rgba(107, 44, 62, 0.05), rgba(212, 175, 55, 0.05));
    border-radius: 12px;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(107, 44, 62, 0.08);
}

.mobile-user-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid var(--burgundy);
    object-fit: cover;
    flex-shrink: 0;
}

.mobile-user-details {
    flex: 1;
    min-width: 0;
}

.mobile-user-name {
    font-weight: 600;
    color: var(--dark-gray);
    margin: 0 0 0.15rem 0;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-user-role {
    font-size: 0.76rem;
    color: var(--burgundy);
    margin: 0;
    font-weight: 500;
}

.mobile-user-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .mobile-user-menu li {
        margin: 0;
    }

    .mobile-user-menu a,
    .mobile-logout-btn {
        display: flex;
        align-items: center;
        gap: 0.85rem;
        padding: 0.8rem 1rem;
        color: var(--dark-gray);
        text-decoration: none;
        font-weight: 500;
        border-radius: 10px;
        transition: all 0.25s ease;
        width: 100%;
        border: none;
        background: none;
        text-align: left;
        cursor: pointer;
        font-family: inherit;
        font-size: 0.9rem;
        border-left: 3px solid transparent;
        margin-bottom: 0.15rem;
    }

        .mobile-user-menu a:hover,
        .mobile-logout-btn:hover {
            background: rgba(107, 44, 62, 0.06);
            color: var(--burgundy);
            border-left-color: var(--gold);
            padding-left: 1.3rem;
        }

        .mobile-user-menu a i,
        .mobile-logout-btn i {
            width: 18px;
            color: var(--burgundy);
            font-size: 0.9rem;
            flex-shrink: 0;
        }

/* Responsive */
@media (max-width: 968px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Panel always block for slide-in animation */
    .mobile-menu-panel {
        display: block;
    }

    /* Overlay ONLY shown when .active — never block by default */
    .mobile-menu-overlay {
        display: none;
        pointer-events: none;
    }

        .mobile-menu-overlay.active {
            display: block;
            pointer-events: all;
        }

    .nav-actions .btn-demo {
        display: none;
    }

    .btn-admin {
        display: none;
    }

    nav {
        padding: 0.6rem 0;
    }

    .logo {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .user-avatar-btn {
        width: 32px;
        height: 32px;
    }

    .btn-login {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }

    .mobile-menu-panel {
        width: 90%;
    }
}
