/* ============================================
   YOUNA - Common/Global Styles
   ============================================ */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    /* Safe Area Variables for Mobile Browsers */
    --sat: env(safe-area-inset-top, 0px);
    --sar: env(safe-area-inset-right, 0px);
    --sab: env(safe-area-inset-bottom, 0px);
    --sal: env(safe-area-inset-left, 0px);
    
    /* Theme Colors - DARKER THEME */
    --primary-black: #000000;
    --near-black: #00050a;
    --light-silver: #C0C0C0;
    --medium-gray: #999B9B;
    --light-gray: #B8B8B8;
    --dark-gray-transparent: rgba(64, 64, 64, 0.7);
    --metallic-silver: rgba(64, 64, 64, 0.03);
    --glass-bg: rgba(0, 0, 0, 0.9);
    --glass-border: rgba(255, 255, 255, 0.08);
   
    /* Text Colors */
    --text-color: #cccccc;
    --header-color: #f0f0f0;
   
    /* Z-index */
    --z-bg: -20;
    --z-effects: -10;
    --z-content: 30;
    --z-controls: 45;
    --z-navigation: 40;
    --z-modal: 1000;
}

/* ============================================
   Reset and Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    background:
        radial-gradient(circle at 20% 30%, var(--primary-black) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, var(--near-black) 0%, transparent 50%),
        linear-gradient(135deg, #00050a 0%, #000000 50%, #00050a 100%);
    color: var(--text-color);
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    height: 100%;
    width: 100%;
    position: fixed;
    overflow: hidden;
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: auto;
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
}

/* ============================================
   Animated Background Text
   ============================================ */
.animated-bg-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20vw;
    font-weight: 900;
    color: rgba(0, 26, 51, 0.15);
    z-index: var(--z-effects);
    pointer-events: none;
    mix-blend-mode: multiply;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    opacity: 0.15;
}

/* ============================================
   Particles
   ============================================ */
.particle {
    position: fixed;
    width: 3px;
    height: 3px;
    background: var(--light-silver);
    border-radius: 50%;
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    pointer-events: none;
    z-index: var(--z-effects);
    opacity: 0;
    box-shadow:
        0 0 12px var(--light-silver),
        0 0 20px rgba(192, 192, 192, 0.8),
        0 0 35px rgba(192, 192, 192, 0.6);
    animation: particle-glow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite alternate;
}

.particle.type-1 {
    background: var(--light-silver);
    box-shadow:
        0 0 15px var(--light-silver),
        0 0 25px rgba(192, 192, 192, 0.9),
        0 0 40px rgba(192, 192, 192, 0.7);
}

.particle.type-2 {
    background: var(--light-gray);
    box-shadow:
        0 0 12px var(--light-gray),
        0 0 20px rgba(184, 184, 184, 0.9),
        0 0 32px rgba(184, 184, 184, 0.7);
    width: 2px;
    height: 2px;
}

.particle.type-3 {
    background: var(--medium-gray);
    box-shadow:
        0 0 18px var(--medium-gray),
        0 0 28px rgba(153, 153, 153, 0.9),
        0 0 45px rgba(153, 153, 153, 0.7);
    width: 4px;
    height: 4px;
}

.particle.type-4 {
    background: #ffffff;
    box-shadow:
        0 0 10px #ffffff,
        0 0 18px rgba(255, 255, 255, 0.8),
        0 0 28px rgba(255, 255, 255, 0.6);
    width: 2px;
    height: 2px;
}

.particle.pulse {
    animation: particle-pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.particle.glow {
    opacity: 0.9;
    animation: none;
    box-shadow:
        0 0 20px currentColor,
        0 0 40px rgba(192, 192, 192, 0.9),
        0 0 60px rgba(192, 192, 192, 0.7);
}

/* ============================================
   Background Overlays
   ============================================ */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at center, rgba(0, 5, 10, 0.4) 0%, rgba(0, 0, 0, 0.8) 70%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 50%, rgba(0, 0, 0, 0.6) 100%);
    z-index: var(--z-bg);
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: calc(var(--z-bg) + 1);
    pointer-events: none;
}

.dark-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 5, 10, 0.05) 50%,
        rgba(0, 0, 0, 0.1) 100%);
    z-index: calc(var(--z-bg) + 2);
    pointer-events: none;
}

/* ============================================
   Main Container
   ============================================ */
#younaPage {
    position: relative;
    height: 100%;
    width: 100%;
    color: white;
    opacity: 1;
    background: transparent;
}

/* ============================================
   Navigation Grid Container
   ============================================ */
.ahz-nav-grid-container {
    position: fixed;
    top: var(--container-top-offset, 2rem);
    left: 0;
    right: 0;
    width: 100%;
    z-index: var(--z-navigation);
    padding-left: var(--container-padding-mobile, 1rem);
    padding-right: var(--container-padding-mobile, 1rem);
    display: grid;
    grid-template-columns: 1fr; /* Mobile: single column */
    grid-template-rows: auto;
    gap: var(--grid-gap-desktop, 1rem);
    align-items: center;
    pointer-events: none; /* Allow clicks through container to children */
}

/* Desktop: 3-column grid layout (≥ 1024px) */
@media (min-width: 1024px) {
    .ahz-nav-grid-container {
        grid-template-columns: var(--grid-template-columns-desktop, 1fr auto 1fr);
        padding-left: var(--container-padding-desktop, 2rem);
        padding-right: var(--container-padding-desktop, 2rem);
        gap: var(--grid-gap-desktop, 1rem);
    }
    
    /* Desktop logo alignment - respect BlockConfigHelper alignment classes */
    .ahz-logo {
        justify-self: var(--logo-justify-desktop, start);
    }
    
    /* Override mobile centering on desktop */
    .ahz-logo.min-\[1024px\]:justify-self-start {
        justify-self: start !important;
    }
    
    .ahz-logo.min-\[1024px\]:justify-self-center {
        justify-self: center !important;
    }
    
    .ahz-logo.min-\[1024px\]:justify-self-end {
        justify-self: end !important;
    }
}

/* Justify-self utilities for navigation grid items */
.justify-self-start,
.min-\[1024px\]:justify-self-start {
    justify-self: start;
}

.justify-self-center,
.min-\[1024px\]:justify-self-center {
    justify-self: center;
}

.justify-self-end,
.min-\[1024px\]:justify-self-end {
    justify-self: end;
}

.justify-self-stretch,
.min-\[1024px\]:justify-self-stretch {
    justify-self: stretch;
}

/* Responsive justify-self (desktop only ≥ 1024px) */
@media (min-width: 1024px) {
    .min-\[1024px\]:justify-self-start {
        justify-self: start;
    }
    
    .min-\[1024px\]:justify-self-center {
        justify-self: center;
    }
    
    .min-\[1024px\]:justify-self-end {
        justify-self: end;
    }
    
    .min-\[1024px\]:justify-self-stretch {
        justify-self: stretch;
    }
}

/* Mobile & Tablet: stack vertically, logo centered (< 1024px) */
@media (max-width: 1023px) {
    .ahz-nav-grid-container {
        /* Mobile/Tablet: single column layout, logo centered */
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    /* Center logo on mobile/tablet */
    .ahz-logo {
        justify-self: center !important;
    }
    
    /* Hide menu and social nav on mobile (only if configured to hide) */
    /* Visibility is now controlled by Tailwind classes from BlockConfigHelper */
    /* This rule only applies if blocks don't have visibility classes */
    .ahz-main-nav:not([class*="flex"]):not([class*="block"]),
    .ahz-social-nav:not([class*="flex"]):not([class*="block"]) {
        display: none !important;
    }
    
    /* Show mobile menu button on mobile/tablet */
    .ahz-mobile-menu-btn {
        display: flex !important;
    }
}

/* Desktop: hide mobile menu button (≥ 1024px) */
@media (min-width: 1024px) {
    .ahz-mobile-menu-btn {
        display: none !important;
    }
}

/* ============================================
   Logo Block
   ============================================ */
.ahz-logo {
    /* Height is controlled by inline styles from BlockConfigHelper */
    min-height: 30px;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
    will-change: transform;
    backface-visibility: hidden;
    pointer-events: auto; /* Enable clicks on logo */
    text-decoration: none;
    /* Display is controlled by Tailwind visibility classes from BlockConfigHelper */
}

.ahz-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px var(--primary-black));
}

.ahz-logo img {
    height: 100%;
    width: auto;
    filter: brightness(0) invert(1);
    display: block;
}

/* Responsive logo height - handled by CSS instead of inline styles */
.ahz-logo img {
    height: var(--logo-height-mobile, 40px);
}

/* Desktop: ≥ 1024px */
@media (min-width: 1024px) {
    .ahz-logo img {
        height: var(--logo-height-desktop, 40px);
    }
}

.ahz-logo:hover img {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px var(--light-silver));
}

/* ============================================
   Main Navigation Menu Block
   ============================================ */
.ahz-main-nav {
    /* Display is controlled by Tailwind visibility classes from BlockConfigHelper */
    gap: 0rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: larger;
    pointer-events: auto; /* Enable clicks on menu */
    flex-wrap: nowrap; /* Prevent wrapping */
    justify-content: center;
    white-space: nowrap; /* Keep items on one line */
}

.ahz-nav-item {
    text-decoration: none;
    white-space: nowrap; /* Prevent text wrapping */
}

.ahz-nav-item:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px var(--light-silver));
}

/* Responsive adjustments for main nav in tight space (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .ahz-main-nav {
        padding: 0.75rem 0.5rem !important; /* Reduce horizontal padding significantly */
        font-size: 0.875rem !important; /* Smaller font size */
        gap: 0.125rem; /* Minimal gap between items */
    }
    
    /* Override Tailwind padding classes px-3 py-2 */
    .ahz-nav-item {
        padding-left: 0.375rem !important; /* Reduce left padding */
        padding-right: 0.375rem !important; /* Reduce right padding */
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
        font-size: 0.875rem !important; /* Smaller font size */
        letter-spacing: 0.05em !important; /* Reduce letter spacing */
    }
    
    /* Adjust grid to give more space to social nav */
    .ahz-nav-grid-container {
        grid-template-columns: 1fr auto 1.25fr !important; /* Give more space to right column */
        gap: 0.5rem !important; /* Reduce grid gap */
    }
    
    /* Reduce social nav gap to prevent wrapping */
    .ahz-social-nav {
        gap: 0.75rem !important; /* Smaller gap between icons */
        flex-wrap: nowrap !important; /* Prevent wrapping */
    }
    
    /* Slightly smaller social icons in tight space */
    .ahz-social-icon {
        font-size: 1.375rem !important;
        min-width: 2rem !important;
        min-height: 2rem !important;
    }
}

/* ============================================
   Page Header Container - Unified Style
   Matches ahz-content-container > div padding
   ============================================ */
.page-header-container {
    margin-bottom: 1rem;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.page-header {
    text-align: left;
    margin: 0;
    padding: 0;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    width: 100%;
}

.page-header h2 {
    font-size: 1.75rem;
    line-height: 1.3;
    margin: 0;
    padding: 0;
    font-weight: bold;
    color: white;
    text-align: left;
    width: 100%;
    display: block;
}

/* Responsive sizing for page-header-container - compact and responsive */
/* Mobile */
@media (max-width: 479px) {
    .page-header-container {
        margin-bottom: 0.75rem;
        gap: 0.375rem;
    }
    
    .page-header {
        min-height: 2rem;
    }
}

/* Large mobile */
@media (min-width: 480px) and (max-width: 767px) {
    .page-header-container {
        margin-bottom: 1rem;
        gap: 0.5rem;
    }
    
    .page-header {
        min-height: 2.25rem;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .page-header-container {
        margin-bottom: 1.25rem;
        gap: 0.625rem;
    }
    
    .page-header {
        min-height: 2.5rem;
    }
}

/* Small laptop */
@media (min-width: 1024px) and (max-width: 1439px) {
    .page-header-container {
        margin-bottom: 1.5rem;
        gap: 0.75rem;
    }
    
    .page-header {
        min-height: 3rem;
    }
}

/* Desktop */
@media (min-width: 1440px) {
    .page-header-container {
        margin-bottom: 1.75rem;
        gap: 0.875rem;
    }
    
    .page-header {
        min-height: 3.25rem;
    }
}

/* ============================================
   Unified Content Area - Uses Maximum Space
   ============================================ */
#ahz-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* ============================================
   Page Tabs - Unified Style
   Compact and responsive
   ============================================ */
#pageTabs,
.tour-tabs,
.playlist-tabs {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    min-height: 2.5rem;
    align-items: center;
    width: 100%;
}

/* Unified tab button styles for all tab types */
#pageTabs .playlist-tab-btn,
.tour-tab-btn,
.playlist-tab-btn {
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: bold;
    font-size: 0.875rem;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    outline: none;
    font-family: var(--font-tour, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif);
    background: transparent;
    border: none;
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#pageTabs .playlist-tab-btn:hover,
.tour-tab-btn:hover,
.playlist-tab-btn:hover {
    color: white;
}

#pageTabs .playlist-tab-btn.active,
.tour-tab-btn.active,
.playlist-tab-btn.active {
    color: white;
}

/* Responsive sizing for page tabs - compact and responsive */
/* Mobile */
@media (max-width: 479px) {
    #pageTabs,
    .tour-tabs,
    .playlist-tabs {
        gap: 0.375rem;
        min-height: 2rem;
    }
    
    #pageTabs .playlist-tab-btn,
    .tour-tab-btn,
    .playlist-tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        min-height: 1.75rem;
    }
}

/* Large mobile */
@media (min-width: 480px) and (max-width: 767px) {
    #pageTabs,
    .tour-tabs,
    .playlist-tabs {
        gap: 0.5rem;
        min-height: 2.25rem;
    }
    
    #pageTabs .playlist-tab-btn,
    .tour-tab-btn,
    .playlist-tab-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
        min-height: 2rem;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    #pageTabs,
    .tour-tabs,
    .playlist-tabs {
        gap: 0.625rem;
        min-height: 2.5rem;
    }
    
    #pageTabs .playlist-tab-btn,
    .tour-tab-btn,
    .playlist-tab-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
        min-height: 2.25rem;
    }
}

/* Small laptop */
@media (min-width: 1024px) and (max-width: 1439px) {
    #pageTabs,
    .tour-tabs,
    .playlist-tabs {
        gap: 0.75rem;
        min-height: 3rem;
    }
    
    #pageTabs .playlist-tab-btn,
    .tour-tab-btn,
    .playlist-tab-btn {
        padding: 0.875rem 1.75rem;
        font-size: 0.9rem;
        min-height: 2.5rem;
    }
}

/* Desktop */
@media (min-width: 1440px) {
    #pageTabs,
    .tour-tabs,
    .playlist-tabs {
        gap: 0.875rem;
        min-height: 3.25rem;
    }
    
    #pageTabs .playlist-tab-btn,
    .tour-tab-btn,
    .playlist-tab-btn {
        padding: 1rem 2rem;
        font-size: 0.95rem;
        min-height: 2.75rem;
    }
}

/* ============================================
   Social Navigation Block
   ============================================ */
.ahz-social-nav {
    /* Display is controlled by Tailwind visibility classes from BlockConfigHelper */
    gap: var(--social-gap-mobile, 1rem); /* Default mobile gap */
    pointer-events: auto; /* Enable clicks on social icons */
    flex-wrap: nowrap; /* Prevent wrapping - keep icons on one line */
    justify-content: center;
    align-items: center;
}

.ahz-social-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--social-icon-size-mobile, 1.25rem); /* Default mobile icon size */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.15));
    min-width: var(--social-icon-size-mobile, 2rem); /* Ensure touch-friendly size on mobile */
    min-height: var(--social-icon-size-mobile, 2rem);
}

.ahz-social-icon:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px var(--light-silver));
}

/* Responsive adjustments for social navigation */
/* Mobile & Tablet view: < 1024px */
/* Small mobile (< 480px) */
@media (max-width: 479px) {
    .ahz-social-nav {
        gap: var(--social-gap-mobile-small, 0.5rem);
    }
    
    .ahz-social-icon {
        font-size: var(--social-icon-size-mobile-small, 1rem);
        min-width: var(--social-icon-size-mobile-small, 1.5rem);
        min-height: var(--social-icon-size-mobile-small, 1.5rem);
    }
}

/* Mobile (480px - 1079px) */
@media (min-width: 480px) and (max-width: 1023px) {
    .ahz-social-nav {
        gap: var(--social-gap-mobile, 0.75rem);
    }
    
    .ahz-social-icon {
        font-size: var(--social-icon-size-mobile, 1.125rem);
        min-width: var(--social-icon-size-mobile, 1.75rem);
        min-height: var(--social-icon-size-mobile, 1.75rem);
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .ahz-social-nav {
        gap: var(--social-gap-tablet, 1rem);
    }
    
    .ahz-social-icon {
        font-size: var(--social-icon-size-tablet, 1.25rem);
        min-width: var(--social-icon-size-tablet, 2rem);
        min-height: var(--social-icon-size-tablet, 2rem);
    }
}

/* Desktop view: ≥ 1024px */
@media (min-width: 1024px) {
    .ahz-social-nav {
        gap: var(--social-gap-desktop, 1.5rem);
        justify-content: flex-end;
        flex-wrap: nowrap; /* Prevent wrapping on desktop */
    }
    
    .ahz-social-icon {
        font-size: var(--social-icon-size-desktop, 1.5rem);
        min-width: var(--social-icon-size-desktop, 2.5rem);
        min-height: var(--social-icon-size-desktop, 2.5rem);
    }
}

/* Large screens (1440px and above) - restore full spacing */
@media (min-width: 1440px) {
    .ahz-main-nav {
        padding: 0.75rem 1rem !important; /* Slightly more padding */
        font-size: 1rem !important; /* Normal font size */
    }
    
    .ahz-nav-item {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        font-size: 1rem !important;
    }
    
    .ahz-nav-grid-container {
        grid-template-columns: var(--grid-template-columns-desktop, 1fr auto 1fr) !important; /* Reset to default */
        gap: var(--grid-gap-desktop, 1rem) !important;
    }
    
    .ahz-social-nav {
        gap: var(--social-gap-desktop, 1.5rem) !important;
    }
    
    .ahz-social-icon {
        font-size: var(--social-icon-size-desktop, 1.5rem) !important;
        min-width: var(--social-icon-size-desktop, 2.5rem) !important;
        min-height: var(--social-icon-size-desktop, 2.5rem) !important;
    }
}

/* ============================================
   Mobile Navigation
   ============================================ */
.ahz-mobile-nav {
    position: fixed;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, 0.7);
    z-index: var(--z-navigation);
    padding: 1.25rem;
    padding-top: calc(var(--sat) + 5rem);
    padding-bottom: calc(var(--sab) + 5rem);
    transform: translate3d(-100%, 0, 0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0s 0.4s;
    visibility: hidden;
    pointer-events: none;
    will-change: transform;
    backface-visibility: hidden;
}

.ahz-mobile-nav.open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0s 0s;
}

.ahz-mobile-nav-item {
    position: relative;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: white;
    width: 180px;
    text-align: center;
    border-radius: 0.5rem;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
    backface-visibility: hidden;
}

.ahz-mobile-nav-item:hover {
    transform: translate3d(0, -1px, 0);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.ahz-mobile-social-nav {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.ahz-mobile-social-icon {
    color: white;
    font-size: 1.2rem;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
    will-change: transform;
    backface-visibility: hidden;
}

.ahz-mobile-social-icon:hover {
    color: var(--primary-black);
    transform: translate3d(0, -0.5px, 0) scale(1.05);
    filter: drop-shadow(0 0 8px var(--light-silver)) drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
}

/* ============================================
   Mobile Menu Button
   ============================================ */
.ahz-mobile-menu-btn {
    position: fixed;
    top: calc(1rem + var(--sat));
    right: 0.75rem;
    z-index: 50;
    display: none; /* Hidden by default, shown on mobile via media query */
    background: var(--glass-bg);
    width: 44px;
    height: 44px;
    border-radius: 0.5rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    cursor: pointer;
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    transition: background 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: background, border-color;
    backface-visibility: hidden;
}

.ahz-mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.ahz-mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.ahz-mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.ahz-mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.ahz-mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   Copyright
   ============================================ */
.ahz-copyright {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-controls);
    text-align: center;
    padding: 0.5rem;
    padding-bottom: calc(0.5rem + var(--sab));
    pointer-events: none;
}

.ahz-copyright span {
    display: inline-block;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
    padding: 3px 10px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    pointer-events: auto;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), background 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    white-space: nowrap;
    will-change: transform;
    backface-visibility: hidden;
}

.ahz-copyright span:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    transform: translate3d(0, -1px, 0);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ============================================
   Animations
   ============================================ */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    }
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate3d(0, -10px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translate3d(0, 10px, 0); 
    }
    to { 
        opacity: 1; 
        transform: translate3d(0, 0, 0); 
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate3d(-50%, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes textPulse {
    0%, 100% {
        opacity: 0.1;
        transform: translate3d(-50%, -50%, 0) scale(1);
    }
    50% {
        opacity: 0.25;
        transform: translate3d(-50%, -50%, 0) scale(1.1);
    }
}

@keyframes particleFloatUp {
    0% {
        transform: translate3d(0, 0, 0) scale(0.5);
        opacity: 0.3;
    }
    50% {
        opacity: 1;
        transform: translate3d(0, -125px, 0) scale(1.2);
    }
    100% {
        transform: translate3d(15px, -250px, 0) scale(0.5);
        opacity: 0.3;
    }
}

@keyframes particleGlow {
    0%, 100% {
        box-shadow: 0 0 8px currentColor, 0 0 15px rgba(192, 192, 192, 0.6);
    }
    50% {
        box-shadow: 0 0 15px currentColor, 0 0 30px rgba(192, 192, 192, 0.9), 0 0 50px rgba(192, 192, 192, 0.7);
    }
}

@keyframes particle-glow {
    0% {
        opacity: 0.4;
        transform: translate3d(0, 0, 0) scale(0.9);
        box-shadow:
            0 0 8px currentColor,
            0 0 15px rgba(192, 192, 192, 0.6);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1.1);
        box-shadow:
            0 0 15px currentColor,
            0 0 30px rgba(192, 192, 192, 0.9),
            0 0 50px rgba(192, 192, 192, 0.7);
    }
}

@keyframes particle-pulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate3d(0, 0, 0) scale(0.95);
    }
    50% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1.15);
    }
}

.loading-shimmer {
    animation: shimmer 1.5s infinite linear;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.05) 8%, rgba(255, 255, 255, 0.1) 18%, rgba(255, 255, 255, 0.05) 33%);
    background-size: 800px 104px;
}

/* ============================================
   Utility Classes
   ============================================ */
/* Prevent text selection on interactive elements */
.ahz-nav-item,
.ahz-mobile-nav-item,
.ahz-social-icon,
.ahz-mobile-social-icon,
.card-action-btn,
.category-filter-btn,
.pagination-btn {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Allow text selection in content areas */
.ahz-content-container,
.enhanced-card-content {
    -webkit-user-select: text;
    user-select: text;
}

/* ============================================
   Browser Specific Fixes
   ============================================ */
/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .ahz-content-container {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-overflow-scrolling: touch;
    }
}

/* Android Chrome specific fixes */
@supports (background: paint(something)) {
    .ahz-content-container {
        contain: layout style paint;
    }
}

/* High DPI screen optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .enhanced-card-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .ahz-mobile-menu-btn,
    .ahz-controls-panel,
    .card-actions {
        display: none !important;
    }
    
    .ahz-content-container {
        position: static;
        overflow: visible;
    }
    
    .enhanced-card {
        break-inside: avoid;
    }
}

/* ============================================
   Reduced Motion Support
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    /* Disable particles for reduced motion */
    .particle {
        display: none !important;
    }
}

/* ============================================
   Particle Performance Optimizations
   ============================================ */
/* Use GPU acceleration for all particles */
.particle {
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Limit simultaneous animations for better performance */
.particle:nth-child(4n) {
    animation-delay: 0.5s;
}

.particle:nth-child(4n+1) {
    animation-delay: 1s;
}

.particle:nth-child(4n+2) {
    animation-delay: 1.5s;
}

.particle:nth-child(4n+3) {
    animation-delay: 2s;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Mobile */
@media (max-width: 479px) {
    body {
        background:
            radial-gradient(circle at 10% 20%, var(--primary-black) 0%, transparent 40%),
            radial-gradient(circle at 90% 80%, var(--near-black) 0%, transparent 40%),
            linear-gradient(135deg, #000000 0%, #00050a 50%, #000000 100%);
    }
   
    .animated-bg-text {
        font-size: 25vw;
        color: rgba(0, 13, 26, 0.2);
    }
   
    body::before {
        background:
            radial-gradient(ellipse at center, rgba(0, 2, 5, 0.5) 0%, rgba(0, 0, 0, 0.9) 80%);
    }
   
    /* Optimized particles on mobile - fewer and brighter */
    .particle {
        width: 3px;
        height: 3px;
        animation-duration: 5s;
    }
   
    .particle.type-2 {
        width: 2px;
        height: 2px;
    }
   
    .particle.type-3 {
        width: 4px;
        height: 4px;
    }
    
    /* Reduce particle count on mobile by hiding some */
    .particle.type-4 {
        display: none;
    }

    .card-action-btn,
    .category-filter-btn,
    .pagination-btn,
    .ahz-mobile-nav-item {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Large mobile */
@media (min-width: 480px) and (max-width: 767px) {
    .ahz-mobile-nav {
        padding: 1.25rem;
        padding-top: calc(var(--sat) + 5rem);
        padding-bottom: calc(var(--sab) + 5rem);
        gap: 2rem;
    }
    
    .ahz-mobile-nav-item {
        font-size: 1.2rem;
        width: 220px;
        min-height: 44px;
        padding: 0.75rem 2rem;
    }
    
    .ahz-mobile-social-nav {
        gap: 1.5rem;
        margin-top: 2.5rem;
    }
    
    .ahz-mobile-social-icon {
        font-size: 1.25rem;
    }
    
    .ahz-mobile-menu-btn {
        width: 48px;
        height: 48px;
        right: 1rem;
    }
    
    .ahz-mobile-menu-btn span {
        width: 24px;
    }
    
    .ahz-copyright span {
        font-size: 0.625rem;
        padding: 4px 12px;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .ahz-mobile-nav {
        padding: 1.25rem;
        padding-top: calc(var(--sat) + 5rem);
        padding-bottom: calc(var(--sab) + 5rem);
        gap: 2rem;
    }
    
    .ahz-mobile-nav-item {
        font-size: 1.4rem;
        width: 240px;
        min-height: 44px;
        padding: 0.75rem 2rem;
    }
    
    .ahz-mobile-social-nav {
        gap: 1.5rem;
        margin-top: 2.5rem;
    }
    
    .ahz-mobile-social-icon {
        font-size: 1.4rem;
    }
    
    .ahz-mobile-menu-btn {
        width: 48px;
        height: 48px;
        right: 1rem;
    }
    
    .ahz-mobile-menu-btn span {
        width: 24px;
    }
    
    .ahz-copyright span {
        font-size: 0.625rem;
        padding: 4px 12px;
    }
}

/* Small laptop */
@media (min-width: 1024px) and (max-width: 1439px) {
    .ahz-copyright span {
        font-size: 0.7rem;
        padding: 5px 14px;
    }
}

/* Desktop */
@media (min-width: 1440px) {
    .ahz-copyright span {
        font-size: 0.75rem;
        padding: 6px 16px;
    }
}

/* Landscape Orientation */
@media (max-width: 1023px) and (orientation: landscape) {
    .ahz-mobile-nav {
        padding-top: calc(var(--sat) + 4rem);
        padding-bottom: calc(var(--sab) + 4rem);
        gap: 1rem;
    }
    
    .ahz-mobile-nav-item {
        font-size: 1.1rem;
        padding: 0.5rem 1.5rem;
        min-height: 40px;
        width: 200px;
    }
    
    .ahz-mobile-social-nav {
        margin-top: 1.5rem;
        gap: 0.75rem;
    }
    
    .ahz-mobile-social-icon {
        font-size: 1.1rem;
    }
}
