/* Modern Header Styles - Premium & Professional */
* {
    box-sizing: border-box;
}

.site-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(139, 92, 246, 0.03) 50%, rgba(236, 72, 153, 0.03) 100%);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 15px rgba(99, 102, 241, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    padding: 0.75rem 0;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    background-color: rgba(255, 255, 255, 0.98);
}

body {
    padding-top: 60px;
}

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

.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.custom-logo-link {
    display: block;
    transition: opacity 0.2s ease;
}

.custom-logo-link:hover {
    opacity: 0.85;
}

.custom-logo {
    height: 55px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.1));
    transition: all 0.3s ease;
}

.custom-logo-link:hover .custom-logo {
    filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.2));
    transform: scale(1.02);
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    justify-content: flex-end;
}

/* Navigation Buttons - Improved Readability */
.nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-btn {
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.8);
    color: #374151;
    line-height: 1.2;
    backdrop-filter: blur(8px);
}

.nav-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: rgba(99, 102, 241, 0.3);
    color: #4F46E5;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
}

.nav-btn-primary {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    color: #ffffff;
    border: 2px solid transparent;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.nav-btn-primary:hover {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
}

.nav-btn i {
    font-size: 1rem;
}

/* Inbox Button - Better Visibility */
.inbox-btn {
    position: relative;
    padding: 0.75rem;
    border-radius: 8px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.inbox-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #111827;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.inbox-btn i {
    font-size: 1.25rem;
}

.inbox-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #dc2626;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    border: 2px solid white;
    line-height: 1;
}

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

.user-avatar-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
}

.user-avatar-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #111827;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.user-avatar-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.75rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1001;
    border: 2px solid #e5e7eb;
}

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

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.15s ease;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.2;
}

.user-dropdown a:first-child {
    border-radius: 10px 10px 0 0;
}

.user-dropdown a:last-child {
    border-radius: 0 0 10px 10px;
}

.user-dropdown a:hover {
    background: #f3f4f6;
    color: #111827;
}

.user-dropdown a i {
    width: 18px;
    text-align: center;
    font-size: 1rem;
    color: #6b7280;
}

/* Auth Buttons for Non-Logged-in Users */
.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.register-button {
    background: #2563eb;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid #2563eb;
    line-height: 1.2;
}

.register-button:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.login-button {
    background: #ffffff;
    color: #374151;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: 1.2;
}

.login-button:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #111827;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle {
    display: none;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    color: #374151;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #111827;
}

/* Mobile-only elements - hidden on desktop */
.mobile-only {
    display: none;
}

/* Dashboard button - hidden on desktop */
.dashboard-btn {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-container {
        gap: 1rem;
        padding: 0 1rem;
    }

    .custom-logo {
        height: 36px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-buttons,
    .auth-buttons,
    .user-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 1.5rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        border-bottom: 2px solid #e5e7eb;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

    .nav-buttons.active,
    .auth-buttons.active,
    .user-menu.active {
        display: flex;
    }

    .nav-btn,
    .register-button,
    .login-button {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    /* Mobile menu items styling */
    .mobile-menu-item {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        text-decoration: none;
        border-radius: 8px;
        transition: all 0.2s ease;
    }

    /* Show mobile-only elements */
    .mobile-only {
        display: inline;
    }

    /* Show dashboard button on mobile */
    .dashboard-btn {
        display: flex;
        background: #ffffff;
        color: #374151;
        border: 2px solid #e5e7eb;
        font-weight: 600;
    }

    .dashboard-btn:hover {
        background: #f3f4f6;
        border-color: #d1d5db;
        color: #111827;
    }

    /* Inbox button on mobile */
    .inbox-btn {
        position: relative;
    }

    .inbox-btn .mobile-only {
        font-weight: 600;
    }

    .user-dropdown {
        position: relative;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        margin-top: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border: 2px solid #e5e7eb;
        transition: all 0.3s ease;
    }

    .user-dropdown.active {
        opacity: 1;
        visibility: visible;
        max-height: 300px;
        margin-top: 1rem;
    }

    .user-avatar-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }
}

