/* ============================================
   VIBE DATA NAVIGATION STYLES
   ============================================ */

.vibe-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

/* Logo */
.nav-logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    line-height: 1;
    margin-bottom: 2px;
}

.logo-tagline {
    font-size: 10px;
    color: #6b7280;
    line-height: 1;
}

/* Desktop Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.nav-link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-link:hover {
    background: #f3f4f6;
    color: #111;
}

/* More Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    padding: 8px;
    animation: fadeIn 0.15s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: block;
    padding: 10px 12px;
    font-size: 14px;
    color: #374151;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.15s;
}

.dropdown-item:hover {
    background: #f3f4f6;
    color: #111;
}

/* Right Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.pricing-link {
    padding: 8px 16px;
}

.btn-upgrade {
    padding: 8px 20px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-upgrade:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Account Menu (for Pro users) */
.account-dropdown {
    position: relative;
}

.account-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.account-trigger:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.account-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.account-tier {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: capitalize;
}

.dropdown-arrow {
    font-size: 10px;
    color: #9ca3af;
}

.account-menu {
    min-width: 220px;
}

.account-info {
    padding: 8px 12px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 4px;
}

.account-email {
    font-size: 13px;
    font-weight: 500;
    color: #111;
    margin-bottom: 2px;
    word-break: break-all;
}

.account-plan {
    font-size: 11px;
    color: #6b7280;
    text-transform: capitalize;
}

.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 4px 0;
}

.dropdown-item.highlight {
    color: #3b82f6;
    font-weight: 600;
}

.dropdown-item.highlight:hover {
    background: #eff6ff;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #374151;
    cursor: pointer;
    padding: 8px;
    margin: -8px;
}

/* Mobile Menu */
.mobile-overlay {
    display: none;
}

.mobile-menu {
    display: none;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 20px;
    }

    .nav-links {
        gap: 2px;
    }

    .nav-link {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 900px) {
    /* Hide desktop nav */
    .desktop-nav {
        display: none;
    }

    .nav-actions {
        display: none;
    }

    /* Show mobile toggle */
    .mobile-menu-toggle {
        display: block;
    }

    /* Mobile Overlay */
    .mobile-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        animation: fadeIn 0.2s ease-out;
    }

    /* Mobile Menu Drawer */
    .mobile-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        max-width: 85vw;
        background: white;
        z-index: 1000;
        padding: 24px 0;
        overflow-y: auto;
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
        animation: slideIn 0.25s ease-out;
    }

    @keyframes slideIn {
        from {
            transform: translateX(100%);
        }
        to {
            transform: translateX(0);
        }
    }

    .mobile-link {
        padding: 14px 24px;
        font-size: 16px;
        font-weight: 500;
        color: #111;
        text-decoration: none;
        border-left: 3px solid transparent;
        transition: all 0.15s;
    }

    .mobile-link:hover,
    .mobile-link:active {
        background: #f9fafb;
        border-left-color: #3b82f6;
    }

    .mobile-link.secondary {
        font-size: 14px;
        color: #6b7280;
        font-weight: 400;
    }

    .mobile-divider {
        height: 1px;
        background: #e5e7eb;
        margin: 12px 24px;
    }

    .mobile-cta {
        padding: 24px 24px 12px;
        margin-top: auto;
    }

    .mobile-upgrade-btn {
        display: block;
        text-align: center;
        padding: 14px 24px;
        background: linear-gradient(135deg, #3b82f6, #2563eb);
        color: white;
        text-decoration: none;
        font-size: 15px;
        font-weight: 600;
        border-radius: 8px;
    }

    .mobile-account-section {
        padding: 12px 0;
        background: #f9fafb;
    }

    .mobile-account-info {
        padding: 16px 24px 12px;
    }

    .mobile-account-email {
        font-size: 14px;
        font-weight: 500;
        color: #111;
        margin-bottom: 4px;
        word-break: break-all;
    }

    .mobile-account-tier {
        font-size: 12px;
        color: #6b7280;
        text-transform: capitalize;
        font-weight: 500;
    }

    .logo-tagline {
        display: none;
    }
}

@media (max-width: 400px) {
    .nav-container {
        padding: 0 16px;
        height: 56px;
    }

    .logo-text {
        font-size: 16px;
    }
}
