/**
 * HairStyleMojo Header Styles
 *
 * Migrated from WPCode snippet 27873 (header v1.1).
 *
 * @package HelloBizChild
 * @since   1.2.0
 */

/* ========================================
   HEADER BAR - STICKY
======================================== */
.hsh-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transition: var(--transition);
}

.hsh-header.scrolled {
    box-shadow: 0 4px 30px rgba(74,143,231,0.1);
    border-bottom-color: transparent;
}

.hsh-header-spacer {
    height: 80px;
}

.hsh-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo */
.hsh-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: var(--transition);
}

.hsh-logo:hover {
    transform: scale(1.02);
}

.hsh-logo-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hsh-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hsh-logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--charcoal);
    letter-spacing: -0.02em;
}

.hsh-logo-text span {
    color: var(--blue);
}

/* ========================================
   MAIN NAVIGATION
======================================== */
.hsh-nav {
    display: flex;
    align-items: center;
}

.hsh-nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hsh-nav-item {
    position: relative;
}

.hsh-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--charcoal);
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.hsh-nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--blue-subtle);
    border-radius: 50px;
    transform: scale(0);
    transition: var(--transition);
}

.hsh-nav-link:hover::before,
.hsh-nav-item.active .hsh-nav-link::before {
    transform: scale(1);
}

.hsh-nav-link span {
    position: relative;
    z-index: 1;
}

.hsh-nav-link:hover,
.hsh-nav-item.active .hsh-nav-link {
    color: var(--blue);
}

/* ========================================
   DROPDOWN MENU
======================================== */
.hsh-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 220px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
}

.hsh-nav-item:hover .hsh-dropdown,
.hsh-nav-item:focus-within .hsh-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* "More" chevron icon */
.hsh-more-chevron {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    margin-left: -2px;
    transition: transform 0.2s ease;
}
.hsh-nav-more:hover .hsh-more-chevron {
    transform: rotate(180deg);
}

.hsh-dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hsh-dropdown-item {
    margin: 0;
}

.hsh-dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--charcoal);
    text-decoration: none;
    border-radius: 10px;
    transition: var(--transition);
}

.hsh-dropdown-link:hover {
    background: var(--blue-subtle);
    color: var(--blue);
    transform: translateX(4px);
}

.hsh-dropdown-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

/* Icon colors — all blue-toned, no pink */
.hsh-dropdown-item .hsh-dropdown-icon { background: #EBF4FF; }

/* Nav dropdown arrow */
.hsh-nav-link svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.hsh-nav-item:hover .hsh-nav-link svg {
    transform: rotate(180deg);
}

/* ========================================
   SEARCH & CTA
======================================== */
.hsh-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Language Selector Dropdown */
.hsh-lang-selector {
    position: relative;
}

.hsh-lang-current {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    background: var(--blue-subtle);
    border: 1px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.hsh-lang-current:hover {
    border-color: var(--blue);
}

.hsh-lang-flag {
    font-size: 17px;
    line-height: 1;
}

.hsh-lang-code {
    font-size: 13px;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: 0.05em;
}

.hsh-lang-chevron {
    width: 14px;
    height: 14px;
    stroke: var(--blue);
    stroke-width: 2;
    fill: none;
    transition: transform 0.2s ease;
}

.hsh-lang-selector:hover .hsh-lang-chevron,
.hsh-lang-selector.open .hsh-lang-chevron {
    transform: rotate(180deg);
}

.hsh-lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 160px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: var(--transition);
    z-index: 100;
}

.hsh-lang-selector:hover .hsh-lang-dropdown,
.hsh-lang-selector.open .hsh-lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hsh-lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--charcoal);
    transition: var(--transition);
}

.hsh-lang-option:hover {
    background: var(--blue-subtle);
    color: var(--blue);
}

.hsh-lang-option.active {
    color: var(--blue);
    font-weight: 600;
}

.hsh-lang-name {
    flex: 1;
}

.hsh-lang-check {
    width: 16px;
    height: 16px;
    stroke: var(--blue);
    stroke-width: 2.5;
    fill: none;
}

.hsh-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(74,143,231,0.3);
}

.hsh-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74,143,231,0.4);
    color: var(--white);
}

.hsh-cta-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* ========================================
   MOBILE MENU TOGGLE
======================================== */
.hsh-mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 10001;
}

.hsh-hamburger {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hsh-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: var(--transition);
}

.hsh-mobile-toggle.active .hsh-hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hsh-mobile-toggle.active .hsh-hamburger span:nth-child(2) {
    opacity: 0;
}

.hsh-mobile-toggle.active .hsh-hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========================================
   MOBILE LANGUAGE SWITCHER
======================================== */
.hsh-mobile-lang {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.hsh-mobile-lang-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--charcoal);
    text-decoration: none;
    background: var(--blue-subtle);
    border-radius: 12px;
    transition: var(--transition);
}

.hsh-mobile-lang-link:hover {
    background: var(--blue);
    color: var(--white);
}

/* ========================================
   MOBILE MENU
======================================== */
.hsh-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85%;
    height: 100vh;
    background: var(--white);
    z-index: 10000;
    padding: 100px 24px 40px;
    overflow-y: auto;
    transition: var(--transition);
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
}

.hsh-mobile-menu.active {
    right: 0;
}

.hsh-mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hsh-mobile-nav-item {
    border-bottom: 1px solid var(--border);
}

.hsh-mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--charcoal);
    text-decoration: none;
    transition: var(--transition);
}

.hsh-mobile-nav-link:hover {
    color: var(--blue);
}

.hsh-mobile-nav-link svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.hsh-mobile-cta {
    margin-top: 30px;
}

.hsh-mobile-cta .hsh-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
}

.hsh-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(45,55,72,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.hsh-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
    .hsh-nav {
        display: none;
    }

    .hsh-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hsh-header-actions .hsh-cta-btn {
        display: none;
    }
}

@media (max-width: 600px) {
    .hsh-header-inner {
        padding: 0 20px;
        height: 70px;
    }

    .hsh-header-spacer {
        height: 70px;
    }

    .hsh-logo-text {
        font-size: 18px;
    }

    .hsh-logo-icon {
        width: 36px;
        height: 36px;
    }

    .hsh-lang-current {
        padding: 5px 9px;
    }

    .hsh-lang-code {
        font-size: 12px;
    }

    .hsh-lang-flag {
        font-size: 15px;
    }

    .hsh-mobile-menu {
        width: 280px;
    }
}

/* Admin bar offset */
.admin-bar .hsh-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .hsh-header {
        top: 46px;
    }
}
