/**
 * Haven Cafe - Custom Styles
 * Version: 1.0.0
 * Author: Nokensoft
 */

/* ==========================================================================
   Base Styles & CSS Custom Properties
   ========================================================================== */
:root {
    --color-primary: #1a4d2e;
    --color-primary-light: #318a55;
    --color-dark: #111827;
    --color-dark-lighter: #1f2937;
    --transition-default: 300ms ease;
    --transition-slow: 500ms ease;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
[x-cloak] {
    display: none !important;
}

/* ==========================================================================
   Gradient Effects
   ========================================================================== */
.blur-gradient {
    background: radial-gradient(circle at 50% 50%, rgba(26, 77, 46, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
}

.dark .blur-gradient {
    background: radial-gradient(circle at 50% 50%, rgba(26, 77, 46, 0.15) 0%, rgba(17, 24, 39, 0) 100%);
}

/* ==========================================================================
   Navigation Styles
   ========================================================================== */
.nav-active {
    color: var(--color-primary-light) !important;
    border-bottom: 2px solid var(--color-primary-light);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Animation Classes */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 8s ease-in-out infinite;
    animation-delay: 2s;
}

.animate-marquee {
    animation: marquee 40s linear infinite;
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Pause marquee on hover */
.group:hover .animate-marquee {
    animation-play-state: paused;
}

/* ==========================================================================
   Custom Scrollbar
   ========================================================================== */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 2px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-light);
}

/* ==========================================================================
   Focus States (Accessibility)
   ========================================================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ==========================================================================
   Skip Link (Accessibility)
   ========================================================================== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px 16px;
    z-index: 100;
    transition: top var(--transition-default);
}

.skip-link:focus {
    top: 0;
}

/* ==========================================================================
   Loading States
   ========================================================================== */
.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Image Loading
   ========================================================================== */
img[loading="lazy"] {
    background-color: #f3f4f6;
}

.dark img[loading="lazy"] {
    background-color: #374151;
}

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

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