/* 🌸 Neora - Premium Custom Styling Rules */

/* Hide Alpine components during boot */
[x-cloak] {
    display: none !important;
}

/* Base Body Styles and Opacity Transitions */
body {
    overflow-x: hidden;
    transition: background-color 0.8s ease, color 0.5s ease;
    animation: pageFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Page load transition keyframes (Pure opacity to prevent fixed element displacement) */
@keyframes pageFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* ==================== DELICATE TEXT SHADOWS ==================== */

/* Extremely soft, subtle separation drop shadow */
.text-shadow-sm {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* Subtly stronger shadow for main headers only */
.text-shadow-lg {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

/* Glowing Neon Cyan separation text shadow */
.text-shadow-neon-cyan {
    text-shadow: 0 0 6px rgba(0, 240, 255, 0.25), 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Glowing Neon Pink separation text shadow */
.text-shadow-neon-pink {
    text-shadow: 0 0 6px rgba(255, 0, 127, 0.25), 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Light mode overrides to clear shadows almost completely */
.light .text-shadow-sm {
    text-shadow: none;
    color: #111827;
}

.light .text-shadow-lg {
    text-shadow: none;
    color: #030712;
}

/* ==================== LIQUID GLASS DESIGN SYSTEM ==================== */

/* Dark Mode Liquid Glass Card */
.glass-card {
    background: rgba(10, 10, 18, 0.55);
    backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Liquid Glass Card Override */
.light .glass-card {
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* Neon-Border Glass Cards */
.glass-panel-neon {
    border: 1px solid rgba(0, 240, 255, 0.15);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(0, 240, 255, 0.05);
}

/* Hover Micro-interactions (Classic Pink Highlight restored) */
.dark .glass-card:hover {
    border-color: rgba(255, 0, 127, 0.25);
    box-shadow: 0 12px 40px 0 rgba(255, 0, 127, 0.15);
}

.light .glass-card:hover {
    border-color: rgba(247, 37, 133, 0.2);
    box-shadow: 0 12px 40px 0 rgba(247, 37, 133, 0.1);
}

/* ==================== CUSTOM GLASS INPUTS ==================== */
.glass-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.light .glass-input {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1f2937;
}

.glass-input:focus {
    outline: none;
    border-color: #ff007f;
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.2);
}

.light .glass-input:focus {
    border-color: #f72585;
    box-shadow: 0 0 10px rgba(247, 37, 133, 0.2);
}

/* ==================== FUTURISTIC LIQUID VOLUME CAPSULE SLIDER ==================== */
.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 64px;
    height: 8px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    outline: none;
    transition: all 0.3s ease;
}

.light .volume-slider {
    background: rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Webkit slider thumb - Glowing liquid drop (Pink) */
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 99px;
    background: #ff85a1;
    box-shadow: 0 0 12px #f72585, inset 0 0 4px #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.light .volume-slider::-webkit-slider-thumb {
    background: #f72585;
    box-shadow: 0 0 8px rgba(247, 37, 133, 0.4);
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    background: #00f0ff;
    box-shadow: 0 0 15px #00f0ff, inset 0 0 4px #fff;
}

/* ==================== PRECISE PREMIUM SCROLLBARS ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 0, 127, 0.3);
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 0, 127, 0.6);
}

/* ==================== GLASS SHIMMER REFLECTION ==================== */
.glass-shimmer {
    position: relative;
    overflow: hidden;
}

.glass-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.13) 30%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.13) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    transition: all 0.75s ease;
    pointer-events: none;
}

.glass-shimmer:hover::after {
    left: 130%;
}

/* ==================== TYPOGRAPHY AND RTL UTILS ==================== */
[dir="rtl"] {
    font-family: 'Vazirmatn', sans-serif !important;
}

[dir="rtl"] .display-font {
    font-family: 'Vazirmatn', sans-serif !important;
    font-weight: 900;
}

[dir="ltr"] .display-font {
    font-family: 'Cinzel', serif !important;
}

/* ==================== ADVANCED KEYFRAME ANIMATIONS ==================== */
@keyframes floatUpDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.animate-float {
    animation: floatUpDown 4s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% {
        opacity: 0.9;
        text-shadow: 0 0 10px rgba(0, 240, 255, 0.7), 0 0 20px rgba(0, 240, 255, 0.5);
    }
    50% {
        opacity: 0.6;
        text-shadow: 0 0 5px rgba(0, 240, 255, 0.4), 0 0 10px rgba(0, 240, 255, 0.2);
    }
}

.animate-neon-cyan {
    animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulsePink {
    0%, 100% {
        opacity: 0.9;
        text-shadow: 0 0 10px rgba(255, 0, 127, 0.7), 0 0 20px rgba(255, 0, 127, 0.5);
    }
    50% {
        opacity: 0.6;
        text-shadow: 0 0 5px rgba(255, 0, 127, 0.4), 0 0 10px rgba(255, 0, 127, 0.2);
    }
}

.animate-neon-pink {
    animation: neonPulsePink 2.5s ease-in-out infinite;
}

/* ==================== PARALLAX BACKGROUND LAYERS ==================== */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -20;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.overlay-layer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -19;
    transition: background 1.5s ease;
    pointer-events: none;
}
