/*
 * GushOfLove — Header
 *
 * Loaded on: all pages.
 */

.eros-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: 1000;
    background: #fff;
    backdrop-filter: blur(12px) saturate(1.4);
    border-bottom: 1px solid var(--clr-border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s;
}

.eros-header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,.1);
}

.eros-header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 100%;
    padding: 0 24px;
    max-width: var(--container-max);
    margin-inline: auto;
}

.eros-logo {
    flex-shrink: 0;
}

.eros-logo-link {
    display: flex;
    align-items: center;
}

.eros-logo-img {
    height: 60px;
    width: auto;
    display: block;
    max-height: 60px;
}

.eros-site-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--clr-text);
    text-decoration: none;
    letter-spacing: -.02em;
}

.eros-site-name:hover {
    text-decoration: none;
    color: var(--clr-primary);
}

.eros-logo .custom-logo-link img,
.eros-header .custom-logo-link img,
.eros-header img.custom-logo {
    height: 60px;
    width: auto;
    max-height: 60px;
    display: block;
}

.eros-nav {
    flex: 1;
}

.eros-nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.eros-nav-menu li {
    position: relative;
}

.eros-nav-menu a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--clr-text);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background .15s,color .15s;
    position: relative;
}

.eros-nav-menu a:hover {
    background: var(--clr-primary-lt);
    color: var(--clr-primary);
    text-decoration: none;
}

.eros-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: var(--clr-primary);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    border-radius: 999px;
}

.eros-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.eros-hdr-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--clr-border);
    text-decoration: none;
    transition: border-color .2s;
    flex-shrink: 0;
}

.eros-hdr-avatar:hover {
    border-color: var(--clr-primary);
    text-decoration: none;
}

.eros-hdr-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.eros-hdr-avatar-initials {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,var(--clr-primary),var(--clr-primary-dk));
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eros-hdr-online-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 9px;
    height: 9px;
    background: #22c55e;
    border: 2px solid #fff;
    border-radius: 50%;
}

.eros-hdr-logout {
    font-size: .82rem;
    padding: 8px 16px;
}

.eros-btn-admin {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: 7px 14px;
    background: rgba(232,23,93,.1);
    color: var(--clr-primary);
    border: 1.5px solid var(--clr-primary);
    border-radius: var(--radius-full);
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
}

.eros-btn-admin:hover {
    background: var(--clr-primary);
    color: #fff;
}

.eros-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
    padding: 0;
    transition: background .15s;
}

.eros-menu-toggle:hover {
    background: var(--clr-primary-lt);
}

.eros-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
}

.eros-hamburger span {
    display: block;
    height: 2px;
    background: var(--clr-text);
    border-radius: 2px;
    transition: transform .25s,opacity .25s,width .25s;
    transform-origin: center;
}

.eros-menu-toggle[aria-expanded="true"] .eros-hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.eros-menu-toggle[aria-expanded="true"] .eros-hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.eros-menu-toggle[aria-expanded="true"] .eros-hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.eros-desktop-only {
    display: inline-flex;
}

.eros-mobile-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px,85vw);
    background: #fff;
    z-index: 2000;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    box-shadow: -8px 0 40px rgba(0,0,0,.15);
    overflow-y: auto;
    overflow-x: hidden;
}

.eros-mobile-nav[aria-hidden="false"],
.eros-mobile-nav.open {
    transform: translateX(0);
}

.eros-mobile-nav-inner {
    padding: 20px 0 40px;
}

.eros-mobile-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f8;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 20px 20px auto;
    color: var(--clr-text);
    transition: background .15s;
}

.eros-mobile-close:hover {
    background: #ededf2;
}

.eros-mobile-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--clr-border);
    margin-bottom: 8px;
}

.eros-mobile-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg,var(--clr-primary),var(--clr-primary-dk));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
}

.eros-mobile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eros-mobile-name {
    font-size: .95rem;
    font-weight: 700;
    color: var(--clr-text);
}

.eros-mobile-view-profile {
    font-size: .8rem;
    color: var(--clr-primary);
    text-decoration: none;
    font-weight: 600;
}

.eros-mobile-view-profile:hover {
    text-decoration: underline;
}

.eros-mobile-menu {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.eros-mobile-menu li a,
.eros-mobile-menu li button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    font-size: .95rem;
    font-weight: 600;
    color: var(--clr-text);
    text-decoration: none;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background .12s,color .12s;
}

.eros-mobile-menu li a:hover,
.eros-mobile-menu li button:hover {
    background: var(--clr-primary-lt);
    color: var(--clr-primary);
    text-decoration: none;
}

.eros-mob-badge {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: var(--clr-primary);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    border-radius: 999px;
}

.eros-mob-logout {
    color: #dc2626;
}

.eros-mob-logout:hover {
    background: #fef2f2;
}

.eros-mob-sep {
    height: 1px;
    background: var(--clr-border);
    margin: 8px 20px;
}

.eros-mob-cta {
    color: var(--clr-primary);
}

.eros-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
    backdrop-filter: blur(2px);
}

.eros-mobile-overlay.open {
    opacity: 1;
    pointer-events: all;
}

@media (min-width:1025px) {
    .eros-header {
        min-height: 85px;
    }
}

@media (max-width:1024px) {
    .eros-header-inner {
        gap: 16px;
        padding: 0 20px;
    }

    .eros-hdr-logout,
    .eros-btn-admin {
        display: none !important;
    }

    .eros-nav-menu a {
        padding: 8px 10px;
        font-size: .85rem;
    }
}

@media (max-width:768px) {
    .eros-menu-toggle {
        display: flex;
    }

    .eros-nav,
    .eros-desktop-only {
        display: none !important;
    }

    .eros-hdr-avatar {
        display: flex;
    }

    .eros-header-inner {
        padding: 0 16px;
        gap: 12px;
    }

    .eros-logo-img {
        height: 32px;
        max-height: 32px;
    }
}

@media (max-width:480px) {
    .eros-header-inner {
        padding: 0 12px;
        gap: 8px;
    }

    .eros-logo-img {
        height: 28px;
        max-height: 28px;
    }

    .eros-header-actions {
        gap: 6px;
    }
}

.eros-skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--clr-primary,#e8175d);
    color: #fff;
    padding: 10px 20px;
    font-weight: 700;
    font-size: .9rem;
    border-radius: 0 0 8px 0;
    z-index: 99999;
    text-decoration: none;
    transition: top .15s;
}

.eros-skip-link:focus {
    top: 0;
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.eros-nav-menu a:focus-visible,
.eros-btn:focus-visible,
.eros-hdr-avatar:focus-visible,
.eros-menu-toggle:focus-visible {
    outline: 2px solid var(--clr-primary,#e8175d);
    outline-offset: 2px;
}

.eros-header,
.eros-header-inner {
    max-width: 100vw;
    overflow: visible;
}

@media (max-width:768px) {
    .eros-header-actions .eros-btn-primary {
        display: none !important;
    }

    .eros-header-actions .eros-btn-ghost {
        display: none !important;
    }

    .eros-logo {
        flex-shrink: 0;
        flex: 0 0 auto;
    }

    .eros-header-actions {
        flex: 0 0 auto;
        margin-left: auto;
    }
}

@media (max-width:380px) {
    .eros-header-inner {
        padding: 0 10px;
        gap: 6px;
    }

    .eros-logo-img {
        height: 26px;
        max-height: 26px;
    }

    .eros-menu-toggle {
        width: 36px;
        height: 36px;
    }

    .eros-hdr-avatar {
        width: 32px;
        height: 32px;
    }
}

body.admin-bar .eros-header {
    top: 32px;
}

@media screen and (max-width:782px) {
    body.admin-bar .eros-header {
        top: 46px;
    }
}

.elementor-column-wrap:empty,
.elementor-widget-container:empty,
.elementor-section:empty,
.e-con:empty {
    display: none !important;
}
