/* Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Philosopher:ital,wght@0,400;0,700;1,400;1,700&family=Mulish:wght@300;400;600;700&display=swap');

body {
    font-family: 'Mulish', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Philosopher', sans-serif;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #0e7490; /* Secondary color */
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0891b2; /* Primary color */
}

/* Hide Scrollbar Utility */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1s ease-in-out, transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1.1);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.card-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

/* Admin Panel Sidebar */
.sidebar-active {
    transform: translateX(0);
}

/* Loading Spinner */
.loader {
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top: 3px solid #3498db;
    width: 20px;
    height: 20px;
    -webkit-animation: spin 2s linear infinite; /* Safari */
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Swipe Hint Animation */
.swipe-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 40;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: none; /* Hidden by default */
}

.swipe-hint.active {
    opacity: 1;
    display: block;
}

.swipe-hand {
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    animation: swipe-animation 2s infinite;
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

@keyframes swipe-animation {
    0% { transform: translateX(30px) rotate(15deg); opacity: 0.8; }
    50% { transform: translateX(-30px) rotate(-15deg); opacity: 1; }
    100% { transform: translateX(30px) rotate(15deg); opacity: 0.8; }
}

/* Snowfall Animation */
.snowflake {
    position: fixed;
    top: -20px;
    z-index: 9999;
    user-select: none;
    pointer-events: none;
    color: #38bdf8; /* Light Blue (Tailwind sky-400) */
    text-shadow: 0 0 5px rgba(56, 189, 248, 0.5);
    animation-name: snowfall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes snowfall {
    0% {
        transform: translateY(0) rotate(0deg) translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg) translateX(20px);
        opacity: 0;
    }
}

/* Cards Container Layout */
#routes-container,
#cars-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    overflow-x: visible;
    overflow-y: visible;
}

#routes-container > *,
#cars-container > * {
    width: 100%;
    min-width: auto;
    max-width: none;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    #routes-container,
    #cars-container {
        grid-template-columns: 1fr;
    }
}
