/**
 * Beauty Platform Header Styles
 * 
 * Premium header with glassmorphism, gradient accents,
 * sticky behavior, hover animations, and responsive design.
 */

/* ============================================
   Base Header Styling
   ============================================ */
.beauty-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 194, 210, 0.15) 50%, rgba(247, 225, 238, 0.25) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(216, 89, 140, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gradient accent line at the very top */
.beauty-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #D8598C, #9D6099, #5C4B75, #9D6099, #D8598C);
    background-size: 200% 100%;
    animation: headerGradientShift 8s ease infinite;
}

@keyframes headerGradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Subtle bottom shadow */
.beauty-header::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(to bottom, rgba(92, 75, 117, 0.06), transparent);
    pointer-events: none;
}

/* ============================================
   Inner Header Layout
   ============================================ */
.beauty-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
    gap: 2rem;
}

/* ============================================
   Logo
   ============================================ */
.beauty-header .beauty-logo img,
.beauty-header .wp-block-site-logo img {
    display: block;
    height: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.beauty-header .beauty-logo img:hover,
.beauty-header .wp-block-site-logo img:hover {
    transform: scale(1.06);
}

/* Brand group (logo + title) */
.beauty-header-brand {
    flex-shrink: 0;
}

/* ============================================
   Site Title
   ============================================ */
.beauty-header .wp-block-site-title {
    margin: 0;
    flex-shrink: 0;
}

.beauty-header .wp-block-site-title a {
    font-family: var(--wp--preset--font-family--playfair-display) !important;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: var(--wp--preset--color--accent-4) !important;
    text-decoration: none !important;
    letter-spacing: -0.5px;
    position: relative;
    transition: color 0.3s ease;
}

.beauty-header .wp-block-site-title a:hover {
    color: var(--wp--preset--color--accent-1) !important;
}

/* ============================================
   Navigation Links
   ============================================ */
.beauty-header .wp-block-navigation {
    gap: 0.25rem;
}

.beauty-header .wp-block-navigation a.wp-block-navigation-item__content {
    font-family: var(--wp--preset--font-family--outfit) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--wp--preset--color--contrast) !important;
    text-decoration: none !important;
    padding: 8px 16px;
    position: relative;
    transition: color 0.3s ease;
}

/* Animated underline effect */
.beauty-header .wp-block-navigation a.wp-block-navigation-item__content::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: linear-gradient(90deg, var(--wp--preset--color--accent-1), var(--wp--preset--color--accent-2));
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.beauty-header .wp-block-navigation a.wp-block-navigation-item__content:hover {
    color: var(--wp--preset--color--accent-4) !important;
}

.beauty-header .wp-block-navigation a.wp-block-navigation-item__content:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Active / current page indicator */
.beauty-header .wp-block-navigation-item.current-menu-item>a.wp-block-navigation-item__content {
    color: var(--wp--preset--color--accent-1) !important;
}

.beauty-header .wp-block-navigation-item.current-menu-item>a.wp-block-navigation-item__content::after {
    transform: scaleX(1);
}

/* ============================================
   CTA Button
   ============================================ */
.beauty-header-cta .wp-block-button__link {
    font-family: var(--wp--preset--font-family--outfit) !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #D8598C, #C0457A) !important;
    color: #FFFFFF !important;
    border: none !important;
    padding: 10px 28px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(216, 89, 140, 0.25);
}

.beauty-header-cta .wp-block-button__link:hover {
    background: linear-gradient(135deg, #C0457A, #9D6099) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(216, 89, 140, 0.4);
}

.beauty-header-cta .wp-block-button__link:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(216, 89, 140, 0.25);
}

/* Shimmer effect on CTA */
.beauty-header-cta .wp-block-button__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.beauty-header-cta .wp-block-button__link:hover::before {
    left: 100%;
}

/* ============================================
   Submenu / Dropdown Styling
   ============================================ */
.beauty-header .wp-block-navigation__submenu-container {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(216, 89, 140, 0.1) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(92, 75, 117, 0.12),
        0 2px 8px rgba(216, 89, 140, 0.06) !important;
    padding: 8px !important;
    min-width: 200px;
    animation: dropdownFadeIn 0.25s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.beauty-header .wp-block-navigation__submenu-container a {
    padding: 10px 16px !important;
    border-radius: 8px !important;
    transition: background-color 0.2s ease !important;
}

.beauty-header .wp-block-navigation__submenu-container a:hover {
    background-color: var(--wp--preset--color--accent-3) !important;
}

/* ============================================
   Mobile Overlay Menu
   ============================================ */
.beauty-header .wp-block-navigation__responsive-container.is-menu-open {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.beauty-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    font-size: 1.125rem !important;
    padding: 12px 0 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--wp--preset--color--accent-4) !important;
}

/* Hamburger button styling */
.beauty-header .wp-block-navigation__responsive-container-open {
    color: var(--wp--preset--color--accent-4) !important;
}

.beauty-header .wp-block-navigation__responsive-container-close {
    color: var(--wp--preset--color--accent-4) !important;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .beauty-header-inner {
        gap: 1rem;
    }

    .beauty-header .wp-block-site-title a {
        font-size: 1.5rem !important;
    }

    .beauty-header .wp-block-navigation a.wp-block-navigation-item__content {
        font-size: 0.8rem !important;
        padding: 6px 12px;
        letter-spacing: 1px;
    }

    .beauty-header-cta .wp-block-button__link {
        padding: 8px 20px !important;
        font-size: 0.8rem !important;
    }

    .beauty-header .wp-block-site-logo img {
        width: 40px !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .beauty-header-inner {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .beauty-header .wp-block-site-title a {
        font-size: 1.35rem !important;
    }

    /* Hide CTA on very small screens – it's in the mobile menu instead */
    .beauty-header-cta {
        display: none !important;
    }

    .beauty-header .wp-block-site-logo img {
        width: 36px !important;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .beauty-header .wp-block-site-title a {
        font-size: 1.2rem !important;
    }

    .beauty-header .wp-block-site-logo img {
        width: 32px !important;
    }
}

/* ============================================
   Reduced Motion Preferences
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    .beauty-header,
    .beauty-header .wp-block-navigation a.wp-block-navigation-item__content::after,
    .beauty-header-cta .wp-block-button__link,
    .beauty-header-cta .wp-block-button__link::before,
    .beauty-header .wp-block-site-logo img {
        animation: none !important;
        transition: none !important;
    }

    .beauty-header::before {
        animation: none !important;
    }
}