/* Standard Navigation Styles for Enhancer.work */

/* Navigation Header */
.nav-header {
    background: white;
    border-bottom: 2px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 40;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #7c3aed;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: #4b5563;
    font-weight: 500;
    transition: color 0.2s;
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: #7c3aed;
}

.nav-link.active {
    color: #7c3aed;
    border-bottom-color: #7c3aed;
}

/* User Menu Section */
.user-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

/* Usage Display */
.usage-display {
    font-size: 0.875rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    white-space: nowrap;
}

/* User Menu Button */
.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.user-menu-btn:hover {
    background: #f3f4f6;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: #7c3aed;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.user-name {
    color: #111827;
    font-weight: 500;
}

.chevron-icon {
    font-size: 0.75rem;
    color: #6b7280;
    transition: transform 0.2s;
}

.user-menu-btn.active .chevron-icon {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.user-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 280px;
    z-index: 50;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
}

.user-dropdown.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.dropdown-header {
    padding: 1rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.dropdown-user-name {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.dropdown-user-email {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.dropdown-user-plan {
    font-size: 0.75rem;
    color: #9ca3af;
    display: inline-block;
    background: white;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    margin-top: 0.25rem;
}

.dropdown-menu {
    padding: 0.5rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 0.95rem;
}

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

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

.dropdown-item:hover i {
    color: #7c3aed;
}

.dropdown-item.make-test {
    border-top: 1px solid #e5e7eb;
    background: #faf5ff;
}

.dropdown-item.make-test:hover {
    background: #f3e8ff;
}

/* Special styling for Quick Quiz link when available */
.nav-link.quick-quiz-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    border: none;
}

.nav-link.quick-quiz-link:hover {
    opacity: 0.9;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        font-size: 0.875rem;
    }
    
    .usage-display {
        display: none;
    }
    
    .user-name {
        display: none;
    }
}

/* Hide elements by default */
.hidden {
    display: none !important;
}