/* Marathon Campground - Premium Dark Luxury Theme */

/* Custom properties for consistent theming */
:root {
    --color-midnight-950: #020617;
    --color-midnight-900: #0a1628;
    --color-midnight-800: #0f1f3d;
    --color-midnight-700: #162a4a;
    --color-gold-400: #d4a853;
    --color-gold-500: #c9a227;
    --color-mint-500: #2dd4a0;
    --color-text-primary: #f9fafb;
    --color-text-secondary: #9ca3af;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--color-midnight-950);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
}

/* Selection color */
::selection {
    background-color: rgba(212, 168, 83, 0.3);
    color: var(--color-text-primary);
}

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

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image responsiveness */
img {
    max-width: 100%;
    height: auto;
}

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

::-webkit-scrollbar-track {
    background: var(--color-midnight-950);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-gold-400), var(--color-gold-500));
    border-radius: 6px;
    border: 3px solid var(--color-midnight-950);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--color-gold-500), var(--color-gold-400));
}

/* Mobile menu transitions */
@media (max-width: 767px) {
    .mobile-menu {
        transition: transform 0.3s ease-in-out;
    }
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Utility animations */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .glass-card,
    .stat-card {
        background: white;
        border: 1px solid #ccc;
    }
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    .glass-card,
    .stat-card {
        border-width: 2px;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .floating-card,
    .floating-card-delayed {
        animation: none;
    }
}
