/* Custom styles for Pine Creek Inn Hotel */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #022c22;
}

::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c5a028;
}

/* Gold gradient text */
.text-transparent.bg-clip-text.bg-gradient-to-r {
    background-image: linear-gradient(135deg, #d4af37 0%, #c5a028 50%, #b08d1f 100%);
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(2, 44, 34, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Card hover effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Button hover effects */
button:hover, a:hover {
    transition: all 0.3s ease;
}

/* Input focus effects */
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.5);
}

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

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

/* Gold shimmer effect */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.gold-shimmer {
    background: linear-gradient(90deg, #d4af37 0%, #f4e5a3 50%, #d4af37 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* Reduced motion preference */
@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;
    }
}

/* Mobile menu transitions */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
}

#mobile-menu:not(.hidden) {
    max-height: 400px;
    opacity: 1;
}

/* Form date input styling */
input[type="date"] {
    color-scheme: dark;
}

/* Image loading optimization */
img {
    loading: lazy;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav, button, form {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
