/* Header Menu Component Styles */

/* Container */
.header-menu-container {
    width: 100%;
    background: linear-gradient(135deg, rgba(10, 15, 28, 0.95), rgba(30, 42, 58, 0.9));
    border-bottom: 1px solid rgba(112, 128, 144, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    margin-bottom: 1.5rem;
}

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

/* Left Section: Logo and Navigation */
.header-menu-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

.header-menu-logo-link {
    text-decoration: none;
    color: inherit;
}

.header-menu-branding {
    display: flex;
    flex-direction: column;
    /* gap: 0.25rem; */
}

.header-menu-logo {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5f 50%, #708090 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.header-menu-subtitle {
    font-size: 0.813rem;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Navigation Links (Desktop) */
.header-menu-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.header-menu-nav-link {
    padding: 0.625rem 1rem;
    font-size: 0.938rem;
    font-weight: 500;
    color: #e2e8f0;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.header-menu-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.header-menu-nav-link.active {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    font-weight: 600;
}

/* Right Section: Authentication */
.header-menu-right {
    display: flex;
    align-items: center;
}

/* Desktop Authentication */
.header-menu-auth-desktop {
    display: flex;
    align-items: center;
}

/* Login Button */
.login-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.938rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

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

/* User Menu */
.user-menu-wrapper {
    position: relative;
}

.menu-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.user-email-text {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-btn i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 240px;
    background: linear-gradient(135deg, rgba(30, 42, 58, 0.98), rgba(45, 55, 72, 0.95));
    border: 1px solid rgba(112, 128, 144, 0.3);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    z-index: 1001;
}

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

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.dropdown-item i {
    font-size: 1rem;
    width: 1.25rem;
}

.dropdown-divider {
    height: 1px;
    background: rgba(112, 128, 144, 0.3);
    margin: 0.5rem 0;
}

.logout-item {
    color: #ff6b35;
}

.logout-item:hover {
    background: rgba(255, 107, 53, 0.1);
    color: #ff8c61;
}

/* Mobile Hamburger Button */
.header-menu-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-menu-hamburger:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Mobile Menu Overlay */
.header-menu-mobile-menu {
    position: fixed;
    top: calc(100% - 1px);
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(10, 15, 28, 0.98), rgba(30, 42, 58, 0.95));
    border-bottom: 1px solid rgba(112, 128, 144, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 999;
    padding: 1rem;
}

.header-menu-mobile-nav,
.header-menu-mobile-auth {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.header-menu-mobile-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: #e2e8f0;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.header-menu-mobile-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.header-menu-mobile-link.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

.header-menu-mobile-link i {
    font-size: 1.125rem;
    width: 1.5rem;
    text-align: center;
}

.header-menu-mobile-divider {
    height: 1px;
    background: rgba(112, 128, 144, 0.3);
    margin: 1rem 0;
}

.header-menu-mobile-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    color: #94a3b8;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.header-menu-mobile-user i {
    font-size: 1.25rem;
    color: #3b82f6;
}

.user-email-mobile {
    font-weight: 500;
    color: #e2e8f0;
}

.logout-link {
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.3);
    color: #ff6b35;
}

.logout-link:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.4);
}

/* Responsive Design */

/* Tablet: Hide navigation text on smaller screens */
@media (max-width: 968px) {
    .header-menu-nav {
        gap: 0.25rem;
    }

    .header-menu-nav-link {
        padding: 0.625rem 0.75rem;
        font-size: 0.875rem;
    }

    .header-menu-wrapper {
        padding: 1rem 1.5rem;
    }
}

/* Mobile: Show hamburger, hide desktop nav and auth */
@media (max-width: 768px) {
    .header-menu-wrapper {
        padding: 0.875rem 1rem;
        gap: 1rem;
    }

    .header-menu-left {
        gap: 1rem;
    }

    .header-menu-logo {
        font-size: 1.5rem;
    }

    .header-menu-subtitle {
        font-size: 0.688rem;
    }

    /* Hide desktop navigation */
    .header-menu-nav {
        display: none;
    }

    /* Hide desktop auth */
    .header-menu-auth-desktop {
        display: none;
    }

    /* Show hamburger */
    .header-menu-hamburger {
        display: flex;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .header-menu-wrapper {
        padding: 0.75rem;
    }

    .header-menu-logo {
        font-size: 1.25rem;
    }

    .header-menu-subtitle {
        display: none;
    }

    .user-email-text {
        max-width: 120px;
    }
}
