/* Custom Styles for The Historic Fossil Motel and RV Park */

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

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

::-webkit-scrollbar-track {
    background: #0A0A0A;
}

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

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

/* Selection Color */
::selection {
    background: #722F37;
    color: #E8C4C4;
}

/* Animation Classes (Progressive Enhancement) */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 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;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* Navigation States */
.nav-scrolled {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(201, 169, 98, 0.1);
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image Loading States */
img {
    background: linear-gradient(135deg, #141414 0%, #1a1a1a 100%);
}

/* Gold Gradient Text */
.text-gold-gradient {
    background: linear-gradient(135deg, #C9A962 0%, #D4AF7A 50%, #C9A962 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Burgundy Gradient Button */
.btn-burgundy {
    background: linear-gradient(135deg, #722F37 0%, #8B3A42 100%);
    transition: all 0.3s ease;
}

.btn-burgundy:hover {
    background: linear-gradient(135deg, #8B3A42 0%, #722F37 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(114, 47, 55, 0.3);
}

/* Gold Accent Line Animation */
.gold-line {
    position: relative;
    overflow: hidden;
}

.gold-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #C9A962, transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.gold-line:hover::after {
    transform: translateX(0);
}

/* Card Hover Effects */
.room-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(201, 169, 98, 0.15);
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #141414 25%, #1a1a1a 50%, #141414 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

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

/* Pulse Animation for CTA */
@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(201, 169, 98, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(201, 169, 98, 0);
    }
}

.pulse-gold {
    animation: pulse-gold 2s infinite;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .font-display {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}

@media (min-width: 769px) {
    .font-display {
        font-size: clamp(2.5rem, 4vw, 3.5rem);
    }
}

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

/* Image Aspect Ratios */
.aspect-room {
    aspect-ratio: 4/5;
}

/* Border Gradient Effect */
.border-gradient {
    position: relative;
    background: #141414;
}

.border-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.3), transparent, rgba(201, 169, 98, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
