/* Custom styles for Meigs County Camping website */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d0a0a;
}
::-webkit-scrollbar-thumb {
    background: #5e1414;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a83232;
}

/* Selection */
::selection {
    background: #a83232;
    color: #fdf8f6;
}

/* Gold shimmer text effect */
.gold-shimmer {
    background: linear-gradient(135deg, #d4a862 0%, #e8c9a0 25%, #c49a3c 50%, #e8c9a0 75%, #d4a862 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gold gradient line */
.gold-line {
    background: linear-gradient(90deg, transparent, #d4a862, #e8c9a0, #d4a862, transparent);
}

/* Hero background pattern */
.hero-pattern {
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(168, 50, 50, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(212, 168, 98, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(168, 50, 50, 0.1) 0%, transparent 50%);
}

/* Card hover effect */
.card-hover {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease;
}
.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(168, 50, 50, 0.2);
}

/* Primary button */
.btn-primary {
    background: linear-gradient(135deg, #a83232 0%, #8f2222 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}
.btn-primary:hover::before {
    left: 100%;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(168, 50, 50, 0.4);
}

/* Gold button */
.btn-gold {
    background: linear-gradient(135deg, #c49a3c 0%, #d4a862 50%, #c49a3c 100%);
    color: #0d0a0a;
    transition: all 0.3s ease;
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(196, 154, 60, 0.4);
}

/* Navigation links */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #d4a862;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Image reveal animation */
.img-reveal {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.img-reveal.revealed {
    clip-path: inset(0 0 0 0);
}

/* Scroll reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s ease,
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .reveal-up.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
        transition: opacity 0.8s ease,
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .reveal-left.revealed {
        opacity: 1;
        transform: translateX(0);
    }

    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
        transition: opacity 0.8s ease,
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .reveal-right.revealed {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mobile-menu.open {
    transform: translateX(0);
}

/* Form inputs */
.form-input {
    background: rgba(253, 248, 246, 0.05);
    border: 1px solid rgba(212, 168, 98, 0.3);
    transition: border-color 0.3s ease,
                background 0.3s ease;
}
.form-input:focus {
    border-color: #d4a862;
    background: rgba(253, 248, 246, 0.08);
}

/* Success message */
.success-message {
    display: none;
}
.success-message.show {
    display: block;
}

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

/* 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 {
    body {
        background: white;
        color: black;
    }
    .btn-primary,
    .btn-gold {
        background: #333 !important;
        color: white !important;
    }
}
