/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/hello-theme/
Description: Child theme for Hello Elementor
Author: Persephone's Cabinet
Author URI: https://persephonescabinet.com/
Template: hello-elementor
Version: 1.0.0
*/

/* --- MOBILE UX REDESIGN: BOTTOM NAV & DRAWER --- */

/* Mobile Bottom Nav Container */
.pcos-mobile-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    z-index: 9999 !important;
    background: #0f0f0f !important; /* Solid Deep Dark */
    /* -webkit-backdrop-filter: blur(10px) !important; REMOVED FOR PERFORMANCE */
    /* backdrop-filter: blur(10px) !important; REMOVED FOR PERFORMANCE */
    border-top: 1px solid rgba(212, 175, 55, 0.3); /* Gold Hint */
    box-shadow: 0px -2px 10px rgba(0,0,0,0.5) !important;
    padding: 10px 0 !important;
    display: none; /* Desktop Hidden */
    
    /* Flex Layout */
    display: flex;
    justify-content: space-around;
    align-items: center;
}

/* Force Hide on Desktop */
@media (min-width: 768px) {
    .pcos-mobile-bottom-nav {
        display: none !important;
    }
}

/* Show only on Mobile */
@media (max-width: 767px) {
    .pcos-mobile-bottom-nav {
        display: flex !important;
    }
    
    /* Hide Default Header styling helper */
    /* Only if we add this class to the header section in Elementor */
    .pcos-hide-on-mobile {
        display: none !important;
    }
}

/* Nav Item Styling */
.pcos-nav-item {
    text-align: center;
    color: #888;
    transition: all 0.3s ease;
    cursor: pointer;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
}

.pcos-nav-item.active, .pcos-nav-item:hover {
    color: #D4AF37;
}

.pcos-nav-item i, .pcos-nav-item svg {
    font-size: 22px;
    width: 22px; /* Force SVG size */
    height: 22px;
    margin-bottom: 4px;
    display: block;
    color: inherit;
    fill: currentcolor; /* Ensure SVG follows text color */
}

.pcos-nav-item span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Montserrat', sans-serif;
    color: inherit;
}

.pcos-nav-item:active, .pcos-nav-item:focus {
    transform: scale(0.95);
}

/* --- DRAWER -- */
.pcos-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: none; /* Allow clicks through when closed */
    visibility: hidden; /* Ensure it doesn't block rendering on Safari */
    transition: visibility 0.3s;
}

.pcos-mobile-drawer.open {
    pointer-events: auto;
    visibility: visible;
}

.pcos-drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    opacity: 0;
    transition: opacity 0.3s;
}

.pcos-mobile-drawer.open .pcos-drawer-overlay {
    opacity: 1;
}

.pcos-drawer-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: #0a0a0a;
    border-right: 1px solid #D4AF37;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}

.pcos-mobile-drawer.open .pcos-drawer-panel {
    transform: translateX(0);
}

.pcos-drawer-header {
    padding: 24px 20px;
    background: linear-gradient(180deg, #151515 0%, #0a0a0a 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
}

.pcos-drawer-close {
    margin-left: auto;
    font-size: 24px;
    color: #666;
    cursor: pointer;
}

.pcos-drawer-avatar img {
    border-radius: 50%;
    border: 2px solid #D4AF37;
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.pcos-drawer-user-info h4 {
    margin: 0;
    color: #D4AF37;
    font-family: 'Cinzel', serif;
    font-size: 1.1em;
}

.pcos-drawer-user-info span {
    font-size: 0.8em;
    display: block;
    color: #888;
}

.pcos-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Menu Styling */
.pcos-drawer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pcos-drawer-menu-list li a {
    display: block;
    padding: 15px 10px;
    color: #ffffff; /* Bright White */
    font-size: 18px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    text-decoration: none;
    transition: color 0.2s ease-in-out; /* optimized transition */
    font-family: 'Cinzel', serif;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.pcos-drawer-menu-list li a:hover {
    color: #D4AF37;
    background: rgba(212, 175, 55, 0.05); /* Lighter background */
}

/* Simplified Icon */
.pcos-drawer-menu-list li a::before {
    content: '✦';
    color: #D4AF37;
    margin-right: 10px;
    font-size: 14px;
    opacity: 0.7;
    display: inline-block; /* Performance fix */
}

/* Actions */
.pcos-drawer-actions {
    margin-top: 30px;
    display: grid;
    gap: 10px;
}

.pcos-action-btn {
    display: block;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #D4AF37;
    text-align: center;
    padding: 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
}

/* Drawer Specifics (Elementor Popup Overrides) - Generic in case used elsewhere */
.elementor-popup-modal .dialog-widget-content {
    background-color: #0a0a0a !important; /* Deep Dark */
    border-right: 1px solid #D4AF37 !important;
}

/* --- GLOBAL TYPOGRAPHY (USER REQUEST) --- */

/* Primary Purple H2s */
h2, .elementor-widget-heading h2.elementor-heading-title {
    color: #7F4b6b;
}

/* Page Titles (H1) - Default to Gold/White for visibility on dark backgrounds */
h1, .elementor-widget-heading h1.elementor-heading-title {
    color: #D4AF37; /* Gold */
}


/* Z-Index Fix: Force Elementor Header above Content */
.site-header, 
header.elementor-section, 
.elementor-location-header {
    position: relative;
    z-index: 9999 !important;
}

/* Ensure submenus break out */
.elementor-nav-menu--main .elementor-nav-menu ul.sub-menu {
    z-index: 10000 !important;
}
