/* ===== Custom Styles for Tri Lake Trails Campground ===== */

/* CSS Custom Properties */
:root {
    --gold-500: #c9a84c;
    --gold-400: #d4b962;
    --navy-900: #0a0f1e;
    --navy-800: #0d1527;
    --navy-700: #111b33;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Gold Button */
.gold-button {
    background: linear-gradient(135deg, #c9a84c 0%, #d4b962 50%, #c9a84c 100%);
    background-size: 200% 200%;
    color: #0a0f1e;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.gold-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #d4b962 0%, #e0c978 50%, #d4b962 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gold-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(201, 168, 76, 0.3);
}

.gold-button:hover::before {
    opacity: 1;
}

.gold-button span {
    position: relative;
    z-index: 1;
}

/* Navigation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-400);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--gold-400) !important;
}

/* Navbar Scroll State */
.navbar-scrolled {
    background: rgba(10, 15, 30, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.navbar-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Mobile Menu */
.mobile-link {
    font-family: 'Playfair Display', serif;
}

.mobile-menu-open #mobile-menu {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
    width: 24px !important;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Hero Animations */
.hero-img {
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1.15); }
}

.hero-content {
    animation: heroFadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reveal Animations */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* Site Cards */
.site-card {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-card:hover {
    transform: translateY(-8px);
}

.site-card:hover img {
    transform: scale(1.05);
}

/* Amenity Cards */
.amenity-card {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.amenity-card:hover {
    transform: translateY(-4px);
}

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

::-webkit-scrollbar-track {
    background: var(--navy-900);
}

::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 168, 76, 0.5);
}

/* Selection */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #fff;
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid var(--gold-400);
    outline-offset: 2px;
}

/* Form Styles */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7) sepia(1) saturate(3) hue-rotate(10deg);
    cursor: pointer;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }
    
    .hero-content h1 {
        font-size: 2.75rem !important;
    }
    
    .site-card:hover {
        transform: none;
    }
}

@media (max-width: 640px) {
    .gold-button {
        width: 100%;
        text-align: center;
    }
}

/* 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;
    }
    
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
    
    .hero-img {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .gold-button {
        background: #c9a84c !important;
        color: #000 !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
