/**
 * TRIXPLUS Liquid Glass CSS
 * Header fixed at TOP with chromatic aberration on edges
 */

/* ============================================
   CSS CUSTOM PROPERTIES
============================================ */
:root {
    --trix-primary: #08f081;
    --trix-white: #ffffff;
    --trix-dark: #0a0a0f;
    --frost-blur: 10px;
}

/* ============================================
   FIXED TOP HEADER
============================================ */
/* ============================================
   FIXED TOP HEADER (Universal)
============================================ */
.trix-header-fixed {
    position: fixed !important;
    top: 20px !important;
    bottom: auto !important;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1400px;
    z-index: 9999;
}

/* Mobile Adjustments for Fixed Header */
@media (max-width: 1023px) {
    /* 
       We removed the 'reset' logic here to keep the header floating.
       Liquid Sweep is now allowed to run on mobile.
    */

    /* Cursor glow is annoying on touch, keep hidden */
    .cursor-glow {
        display: none;
    }

    .trix-hero {
        padding-top: 100px;
        /* Space for the floating header */
    }
}

/* ============================================
   LIQUID GLASS HEADER
   Uses backdrop-filter with SVG chromatic aberration filter
============================================ */
.trix-header-glass {
    position: relative;
    border-radius: 999px;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: visible;

    /* Semi-transparent background */
    background: rgba(20, 20, 30, 0.4);

    /* Apply SVG filter for chromatic aberration + blur */
    backdrop-filter: blur(var(--frost-blur)) url(#liquid-glass-filter) saturate(1.2);
    -webkit-backdrop-filter: blur(var(--frost-blur)) url(#liquid-glass-filter) saturate(1.2);

    /* Subtle border */
    /* Shadows (Clean Desktop-Match) */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1);

    /* Hardware Acceleration for iOS Glass */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}



.trix-header-glass:hover {
    transform: scale(1.01) translateZ(0);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        0 12px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(8, 240, 129, 0.1);
}

/* Top highlight */
.trix-header-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    pointer-events: none;
}

/* Light sweep */
.liquid-sweep {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
    z-index: 5;
}

.liquid-sweep::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.05) 50%,
            transparent 100%);
    animation: sweepLight 10s ease-in-out infinite;
}

@keyframes sweepLight {

    0%,
    100% {
        left: -150%;
    }

    50% {
        left: 150%;
    }
}

/* Dropdown menus - DOWNWARD (header at top) */
@media (min-width: 1024px) {

    .trix-header-nav .sub-menu,
    .trix-header-nav .dropdown-menu,
    .wp-block-navigation__submenu-container {
        top: 100% !important;
        bottom: auto !important;
        margin-top: 15px;
        transform-origin: top center;
    }
}

/* CSS Split: Hero and Animation styles moved to trix-animations.css */