/**
 * @file
 * Custom Header Styles - LinkedIn Style Navigation
 * 
 * These styles were previously in the Aristotle theme SCSS.
 * Now loaded as a separate CSS file to avoid modifying the theme source.
 */

/* ===========================================
   CRITICAL: Hide mobile menus by default
   =========================================== */

/* Hide mobile menus by default */
.fashion-header__mobile-menu {
    display: none !important;
}

.fashion-header__mobile-menu.show {
    display: block !important;
}

/* Hide hamburger on desktop */
.fashion-header__hamburger {
    display: none;
}

@media (max-width: 991px) {
    .fashion-header__hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 10px;
    }

    .fashion-header__hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .fashion-header__hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .fashion-header__hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .fashion-header__hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .fashion-header__mobile-menu.show {
        display: block !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
}

/* ===========================================
   AUTHENTICATED HEADER - White Background
   =========================================== */

.fashion-header--authenticated {
    background: #ffffff !important;
    border-bottom: 1px solid #e0e0e0 !important;
    padding: 0 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
}

.fashion-header--authenticated .fashion-header__inner {
    max-width: 1128px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.fashion-header--authenticated .fashion-header__left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fashion-header--authenticated .fashion-header__logo img {
    max-height: 36px;
    width: auto;
}

.fashion-header--authenticated .fashion-header__search {
    display: flex;
    align-items: center;
    background: #eef3f8;
    border-radius: 4px;
    padding: 0 12px;
    height: 34px;
    min-width: 280px;
}

.fashion-header--authenticated .fashion-header__search i {
    color: rgba(0, 0, 0, 0.6);
    font-size: 16px;
    margin-right: 8px;
}

.fashion-header--authenticated .fashion-header__search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.9);
    width: 100%;
}

.fashion-header--authenticated .fashion-header__search input::placeholder {
    color: rgba(0, 0, 0, 0.6);
}

/* Right section */
.fashion-header--authenticated .fashion-header__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme toggle button */
.fashion-header .theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: rgba(0, 0, 0, 0.6);
    font-size: 20px;
}

.fashion-header .theme-toggle:hover {
    color: rgba(0, 0, 0, 0.9);
}

.fashion-header .theme-toggle .theme-icon--dark {
    display: none;
}

body.dark-mode .fashion-header .theme-toggle .theme-icon--light {
    display: none;
}

body.dark-mode .fashion-header .theme-toggle .theme-icon--dark {
    display: inline;
}

/* Business link */
.fashion-header__business-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.6);
    font-size: 12px;
    padding: 0 12px;
    border-left: 1px solid #e0e0e0;
}

.fashion-header__business-link:hover {
    color: rgba(0, 0, 0, 0.9);
    text-decoration: none;
}

.fashion-header__business-link i {
    font-size: 20px;
    margin-bottom: 4px;
}

/* Mobile actions in mobile menu */
.fashion-header__mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 0;
    border-bottom: 1px solid #e0e0e0;
}

.fashion-header__mobile-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(0, 0, 0, 0.9);
    text-decoration: none;
    border-radius: 8px;
}

.fashion-header__mobile-item:hover {
    background: #f3f2ef;
    text-decoration: none;
}

.fashion-header__mobile-item i {
    font-size: 20px;
    color: rgba(0, 0, 0, 0.6);
}

/* Mobile user section */
.fashion-header__mobile-user {
    padding: 16px 0;
}

.fashion-header__mobile-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.9);
    background: #f3f2ef;
    border-radius: 8px;
    margin-bottom: 12px;
}

.fashion-header__mobile-profile .profile-pic img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.fashion-header__mobile-profile .profile-info {
    display: flex;
    flex-direction: column;
}

.fashion-header__mobile-profile .profile-info small {
    color: rgba(0, 0, 0, 0.6);
}

.fashion-header__mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fashion-header__mobile-menu-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(0, 0, 0, 0.9);
    text-decoration: none;
}

.fashion-header__mobile-menu-list li a:hover {
    background: #f3f2ef;
}

.fashion-header__mobile-menu-list li a i {
    font-size: 18px;
    color: rgba(0, 0, 0, 0.6);
}

/* Profile pic in nav item */
.fashion-header__profile-pic img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.fashion-header__me-label {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
}

.fashion-header__me-label i {
    font-size: 16px !important;
}

/* User dropdown styling */
.fashion-header__nav-item--me .dropdown-menu {
    min-width: 280px;
    padding: 0;
}

.user-menu-block {
    padding: 16px;
}

.user-menu-block .user-name {
    margin-bottom: 12px;
}

.user-menu-block .user-name a {
    display: block;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.9);
    text-decoration: none;
}

.user-menu-block .user-name span {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.6);
}

.user-menu-list {
    list-style: none;
    margin: 0;
    padding: 12px 0 0;
    border-top: 1px solid #e0e0e0;
}

.user-menu-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    color: rgba(0, 0, 0, 0.9);
    text-decoration: none;
    font-size: 14px;
}

.user-menu-item a:hover {
    color: #0a66c2;
}

.user-menu-item a i {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.6);
}

/* ===========================================
   ANONYMOUS USER HEADER - LinkedIn Style
   =========================================== */

.fashion-header--anonymous {
    background: #ffffff !important;
    border-bottom: 1px solid #e0e0e0 !important;
    padding: 0 !important;
}

.fashion-header--anonymous .fashion-header__inner {
    max-width: 1128px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.fashion-header--anonymous .fashion-header__left {
    display: flex;
    align-items: center;
}

.fashion-header--anonymous .fashion-header__logo img {
    max-height: 36px;
    width: auto;
}

.fashion-header--anonymous .fashion-header__logo--text .logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #0a66c2;
    text-decoration: none;
}

.fashion-header--anonymous .fashion-header__logo--text .logo-highlight {
    background: #0a66c2;
    color: #fff;
    padding: 0 4px;
    border-radius: 4px;
    margin-left: 2px;
}

/* Anonymous Navigation Icons with backgrounds */
.fashion-header__nav--anonymous {
    display: flex !important;
    align-items: center;
    gap: 24px;
    margin-left: auto;
    margin-right: 32px;
}

.fashion-header__nav--anonymous .fashion-header__nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    color: rgba(0, 0, 0, 0.6);
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 70px;
}

.fashion-header__nav--anonymous .fashion-header__nav-item:hover {
    color: rgba(0, 0, 0, 0.9);
    text-decoration: none !important;
}

.fashion-header__nav--anonymous .fashion-header__nav-item:hover i {
    color: rgba(0, 0, 0, 0.9) !important;
}

.fashion-header__nav--anonymous .fashion-header__nav-item i {
    font-size: 24px;
    margin-bottom: 6px;
    color: rgba(0, 0, 0, 0.6) !important;
    background: none !important;
    background-color: transparent !important;
    width: auto;
    height: auto;
    display: block;
    border-radius: 0;
    transition: all 0.2s ease;
}

.fashion-header__nav--anonymous .fashion-header__nav-item span {
    white-space: nowrap;
    margin-top: 4px;
}

/* Anonymous Auth Buttons Container */
.fashion-header__right--anonymous {
    display: flex;
    align-items: center;
    border-left: 1px solid #e0e0e0;
    padding-left: 24px;
    margin-left: 8px;
    gap: 16px;
}

.fashion-header__auth-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Access account button (outlined blue - LinkedIn style) */
a.fashion-header__access-btn,
.fashion-header__access-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 24px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #0a66c2 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: 1px solid #0a66c2 !important;
    border-radius: 24px !important;
    text-decoration: none !important;
    transition: all 0.167s ease !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
}

a.fashion-header__access-btn:hover,
.fashion-header__access-btn:hover {
    background: rgba(112, 181, 249, 0.15) !important;
    background-color: rgba(112, 181, 249, 0.15) !important;
    border-color: #0a66c2 !important;
    color: #004182 !important;
    border-width: 2px !important;
    text-decoration: none !important;
}

/* Join now button (filled blue - LinkedIn style) */
a.fashion-header__join-btn,
.fashion-header__join-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 24px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #fff !important;
    background: #0a66c2 !important;
    background-color: #0a66c2 !important;
    border: none !important;
    border-radius: 24px !important;
    text-decoration: none !important;
    transition: all 0.167s ease !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
}

a.fashion-header__join-btn:hover,
.fashion-header__join-btn:hover {
    background: #004182 !important;
    background-color: #004182 !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* Cart container for anonymous header */
.fashion-header__cart {
    display: flex;
    align-items: center;
    margin-left: 8px;
}

.fashion-header__cart .block-commerce-cart {
    display: flex;
    align-items: center;
}

.fashion-header__cart a {
    color: rgba(0, 0, 0, 0.6) !important;
    font-size: 20px;
}

.fashion-header__cart a:hover {
    color: rgba(0, 0, 0, 0.9) !important;
}

/* Mobile menu for anonymous users */
.fashion-header--anonymous .fashion-header__mobile-menu {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 16px;
}

.mobile-nav-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.mobile-nav-icons a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: rgba(0, 0, 0, 0.6);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    background: #f3f2ef;
}

.mobile-nav-icons a:hover {
    background: #e0e0e0;
    color: rgba(0, 0, 0, 0.9);
}

.mobile-nav-icons a i {
    font-size: 18px;
}

.fashion-header--anonymous .fashion-header__mobile-auth {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.fashion-header--anonymous .fashion-header__mobile-auth .fashion-header__access-btn,
.fashion-header--anonymous .fashion-header__mobile-auth .fashion-header__join-btn {
    width: 100%;
    justify-content: center;
}

/* Responsive adjustments for anonymous header */
@media (max-width: 992px) {
    .fashion-header__nav--anonymous .fashion-header__nav-item {
        padding: 8px 12px;
        min-width: 50px;
    }

    .fashion-header__nav--anonymous .fashion-header__nav-item span {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .fashion-header__right--anonymous {
        border: none;
        padding-left: 0;
        margin-left: 0;
    }

    .fashion-header__auth-buttons {
        display: none;
    }
}

/* ===========================================
   AUTHENTICATED USER HEADER - LinkedIn Style Gray Icons
   =========================================== */

/* Base styling for authenticated header nav icons */
.fashion-header__nav .fashion-header__nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    height: 52px;
    color: rgba(0, 0, 0, 0.6) !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 400;
    transition: all 0.15s ease;
    position: relative;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    min-width: 80px;
}

/* Icon styling - gray color */
.fashion-header__nav .fashion-header__nav-item i,
.fashion-header__nav .fashion-header__nav-item .fi {
    font-size: 24px !important;
    margin-bottom: 4px;
    color: rgba(0, 0, 0, 0.6) !important;
    line-height: 1;
}

/* Label text */
.fashion-header__nav .fashion-header__nav-item span:not(.marker) {
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    color: rgba(0, 0, 0, 0.6) !important;
    font-weight: 400;
}

/* Hover state */
.fashion-header__nav .fashion-header__nav-item:hover {
    color: rgba(0, 0, 0, 0.9) !important;
    text-decoration: none !important;
}

.fashion-header__nav .fashion-header__nav-item:hover i,
.fashion-header__nav .fashion-header__nav-item:hover .fi {
    color: rgba(0, 0, 0, 0.9) !important;
}

.fashion-header__nav .fashion-header__nav-item:hover span:not(.marker) {
    color: rgba(0, 0, 0, 0.9) !important;
}

/* Active state */
.fashion-header__nav .fashion-header__nav-item.fashion-header__nav-item--active {
    color: rgba(0, 0, 0, 0.9) !important;
    border-bottom-color: #000;
}

.fashion-header__nav .fashion-header__nav-item.fashion-header__nav-item--active i,
.fashion-header__nav .fashion-header__nav-item.fashion-header__nav-item--active .fi {
    color: rgba(0, 0, 0, 0.9) !important;
}

.fashion-header__nav .fashion-header__nav-item.fashion-header__nav-item--active span:not(.marker) {
    color: rgba(0, 0, 0, 0.9) !important;
}

.fashion-header__nav .fashion-header__nav-item.fashion-header__nav-item--active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #000;
}

/* Override existing header icon colors - high specificity */
header.page-header.fashion-header .block-notifications .fi,
header.fashion-header .block-notifications .fi,
.fashion-header .block-notifications .fi {
    color: rgba(0, 0, 0, 0.6) !important;
}

header.page-header.fashion-header .fashion-header__nav-item i,
header.page-header.fashion-header .fashion-header__nav-item .fi,
header.fashion-header .fashion-header__nav-item i,
header.fashion-header .fashion-header__nav-item .fi,
.fashion-header .fashion-header__nav-item i,
.fashion-header .fashion-header__nav-item .fi {
    color: rgba(0, 0, 0, 0.6) !important;
}

header.page-header.fashion-header .fashion-header__nav-item:hover i,
header.page-header.fashion-header .fashion-header__nav-item:hover .fi,
header.fashion-header .fashion-header__nav-item:hover i,
header.fashion-header .fashion-header__nav-item:hover .fi,
.fashion-header .fashion-header__nav-item:hover i,
.fashion-header .fashion-header__nav-item:hover .fi {
    color: rgba(0, 0, 0, 0.9) !important;
}

/* ===========================================
   NOTIFICATION DROPDOWN STYLING
   =========================================== */

/* Dropdown container */
.fashion-header__nav-item.dropdown .dropdown-menu {
    min-width: 360px;
    max-width: 400px;
    max-height: 420px;
    overflow-y: auto;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    background: #fff;
}

/* Mark all as read link */
.fashion-header__nav-item .dropdown-menu .all-read,
.notifications-block .all-read {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #0a66c2;
    text-decoration: none;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.fashion-header__nav-item .dropdown-menu .all-read:hover,
.notifications-block .all-read:hover {
    background: #e8f4fd;
    text-decoration: none;
}

/* Notification list */
.notification-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Individual notification item */
.notification-item {
    border-bottom: 1px solid #f0f0f0;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:after {
    display: none !important;
}

.notification-item-text {
    display: block;
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(0, 0, 0, 0.9);
    background: #fff;
    text-decoration: none;
    transition: background 0.15s ease;
    border-radius: 0 !important;
}

.notification-item-text:hover {
    background: #f3f2ef;
    text-decoration: none;
}

/* Unread notification */
.notification-item.unread .notification-item-text {
    background: #e8f4fd;
    border-left: 3px solid #0a66c2;
}

.notification-item.unread .notification-item-text:hover {
    background: #dceefb;
}

/* View all notifications link */
.view-notifications,
.fashion-header__nav-item .dropdown-menu .view-notifications {
    display: block;
    padding: 14px 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.6);
    text-decoration: none;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.view-notifications:hover {
    background: #e0e0e0;
    color: rgba(0, 0, 0, 0.9);
    text-decoration: none;
}

/* Notification marker dot */
.fashion-header__nav-item .marker:not(.hidden) {
    position: absolute;
    top: -2px;
    right: -4px;
    width: 8px;
    height: 8px;
    background: #cc1016;
    border-radius: 50%;
    border: 2px solid #fff;
}

.fashion-header__nav-item i {
    position: relative;
}

/* Messages dropdown - same styling */
.fashion-header__nav-item--messages .dropdown-menu {
    min-width: 320px;
}

/* Fix for notification icons positioning */
.fashion-header__nav-item .fi-rr-bell,
.fashion-header__nav-item .fi-rr-envelope {
    position: relative;
}

/* Ajax loader in notifications */
.notifications-block .ajax-progress {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.notifications-block .ajax-progress .throbber {
    width: 30px;
    height: 30px;
}

/* Empty notifications state */
.notifications-block:empty::after {
    content: 'No new notifications';
    display: block;
    padding: 40px 20px;
    text-align: center;
    color: rgba(0, 0, 0, 0.6);
    font-size: 14px;
}