/* Schorlepark Custom Styles */

/* ===== Animations ===== */

/* Fade In Animation */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Fade Up Animation */
.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide Left Animation */
.animate-slide-left {
    animation: slideLeft 0.8s ease-out forwards;
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide Right Animation */
.animate-slide-right {
    animation: slideRight 0.8s ease-out forwards;
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== Wave Animation ===== */
.wave-animation {
    overflow: hidden;
}

.wave-path-1 {
    animation: waveMove1 8s ease-in-out infinite;
}

.wave-path-2 {
    animation: waveMove2 6s ease-in-out infinite;
}

@keyframes waveMove1 {
    0%, 100% {
        d: path("M0,60 C150,120 350,0 500,60 C650,120 850,0 1000,60 C1150,120 1350,0 1440,60 L1440,120 L0,120 Z");
    }
    50% {
        d: path("M0,80 C150,20 350,100 500,40 C650,0 850,100 1000,60 C1150,20 1350,100 1440,40 L1440,120 L0,120 Z");
    }
}

@keyframes waveMove2 {
    0%, 100% {
        d: path("M0,80 C200,40 400,100 600,60 C800,20 1000,100 1200,60 C1350,30 1400,80 1440,70 L1440,120 L0,120 Z");
    }
    50% {
        d: path("M0,60 C200,100 400,40 600,80 C800,100 1000,40 1200,80 C1350,100 1400,50 1440,60 L1440,120 L0,120 Z");
    }
}

/* ===== Pulse Animation for CTA Button ===== */
.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 87, 34, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(255, 87, 34, 0);
    }
}

/* ===== Live Banner Glow Effect ===== */
.live-banner {
    animation: borderGlow 2s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 87, 34, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 87, 34, 0.6);
    }
}

/* ===== Smooth Scroll Behavior ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Prevent Horizontal Overflow from Animations ===== */
html, body {
    overflow-x: hidden;
}

/* ===== Selection Color ===== */
::selection {
    background-color: #1B4D2E;
    color: #F7F0C6;
}

/* ===== Focus States for Accessibility ===== */
a:focus,
button:focus {
    outline: 2px solid #FF5722;
    outline-offset: 2px;
}

/* ===== Image Hover Effects ===== */
.group:hover img {
    transform: scale(1.05);
}

/* ===== Custom Scrollbar (Webkit) ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #F7F0C6;
}

::-webkit-scrollbar-thumb {
    background: #1B4D2E;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2D6B42;
}

/* ===== Mobile Menu Transitions ===== */
@media (max-width: 768px) {
    .animate-slide-left,
    .animate-slide-right {
        animation: fadeUp 0.8s ease-out forwards;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ===== Print Styles ===== */
@media print {
    nav,
    .wave-animation,
    .pulse-animation {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
