/**
 * Custom Mobile Header Styles
 * Professional mobile header with hamburger menu
 * 
 * @package Prix_Photo_Theme
 * @since 1.0.0
 */

/* ========================================
   Mobile Header - Hide on Desktop
   ======================================== */

.prix-mobile-header {
    display: none;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
    position: relative;
}

/* Show mobile header on mobile devices */
@media (max-width: 781px) {
    .prix-mobile-header {
        display: block !important;
    }
}

/* ========================================
   Mobile Header Inner Container
   ======================================== */

.prix-mobile-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: 100%;
    margin: 0 auto;
}

/* ========================================
   Mobile Logo
   ======================================== */

.prix-mobile-logo {
    flex: 1;
    display: flex;
    align-items: center;
}

.prix-mobile-logo-link,
.prix-mobile-logo-text {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.prix-mobile-logo-link:hover,
.prix-mobile-logo-text:hover {
    opacity: 0.8;
}

.prix-mobile-logo-link img {
    display: block;
    max-width: 100%;
    height: auto;
}

.prix-mobile-logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
}

/* ========================================
   Mobile Menu Wrapper
   ======================================== */

.prix-mobile-menu-wrapper {
    display: flex;
    align-items: center;
    margin-left: auto;
    z-index: 1001;
}

/* ========================================
   Mobile Menu Toggle Button (Hamburger)
   ======================================== */

.prix-mobile-menu-toggle {
    position: relative;
    width: calc(var(--icon-size) * 1.5);
    height: calc(var(--icon-size) * 1.5);
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prix-mobile-menu-toggle:hover {
    opacity: 0.7;
}

.prix-mobile-menu-toggle:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Hamburger Icon */
.prix-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: calc(var(--icon-size) / 5); /* Proportional gap */
}

.prix-hamburger span {
    display: block;
    width: var(--icon-size);
    height: calc(var(--icon-size) / 10); /* Proportional height */
    background: currentColor;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hamburger animation when menu is open */
.prix-mobile-menu-open .prix-mobile-menu-toggle .prix-hamburger span:nth-child(1) {
    transform: translateY(calc(var(--icon-size) / 3.5)) rotate(45deg);
}

.prix-mobile-menu-open .prix-mobile-menu-toggle .prix-hamburger span:nth-child(2) {
    opacity: 0;
}

.prix-mobile-menu-open .prix-mobile-menu-toggle .prix-hamburger span:nth-child(3) {
    transform: translateY(calc(var(--icon-size) / -3.5)) rotate(-45deg);
}

/* ========================================
   Responsive Adjustments
   ======================================== */

@media (max-width: 480px) {
    .prix-mobile-header-inner {
        padding: 0.75rem 1rem;
    }
    
    .prix-mobile-menu-toggle {
        width: 40px;
        height: 40px;
    }
    
    .prix-hamburger span {
        width: 20px;
    }
}

/* ========================================
   Desktop - Hide Mobile Header
   ======================================== */

@media (min-width: 782px) {
    .prix-mobile-header {
        display: none !important;
    }
}



/* Hide default WordPress header on mobile */
@media (max-width: 781px) {
    .site-header {
        display: none !important;
    }
}




/* ========================================
   Mobile Header Right Section
   ======================================== */

.prix-mobile-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    z-index: 1001;
}

/* ========================================
   Account/Membership Icon
   ======================================== */

.prix-mobile-account-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.prix-account-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(var(--icon-size) * 1.5);
    height: calc(var(--icon-size) * 1.5);
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.prix-account-link:hover {
    opacity: 0.7;
    background-color: rgba(0, 0, 0, 0.05);
}

.prix-account-link:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.prix-account-link svg {
    display: block;
}

/* ========================================
   Layout Variants
   ======================================== */

/* Logo Full Width */
.prix-mobile-logo.width-full {
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Menu Full Width */
.prix-mobile-menu-wrapper.width-full {
    width: 100%;
    justify-content: flex-end;
}

.prix-mobile-menu-wrapper.width-full.margin-top {
    margin-top: 1rem;
}

/* Flex Grow */
.prix-mobile-logo.flex-grow {
    flex-grow: 1;
    justify-content: center;
}

/* Margin Left Auto */
.prix-mobile-logo.margin-left-auto {
    margin-left: auto;
}

.prix-mobile-menu-wrapper.margin-left-auto {
    margin-left: auto;
}

