/**
 * Virtual Tour Guide - Custom Styles
 * 
 * Additional styles beyond Tailwind CSS for the website.
 */

/* Base Styles */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Material Icons */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Animations */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(19, 236, 91, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(19, 236, 91, 0);
    }
}

.animate-pulse-glow {
    animation: pulse-glow 2s infinite;
}

/* Card Hover Effects */
.sighting-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sighting-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Video Card Play Button */
.video-card .play-button {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.video-card:hover .play-button {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.3);
}

/* Species Card Border Animation */
.species-card {
    transition: border-color 0.3s ease;
}

.species-card:hover {
    border-color: rgba(19, 236, 91, 0.5);
}

/* Loading Spinner */
.loading-spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #13ec5b;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

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

/* Mobile Menu */
.mobile-menu {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu.hidden {
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
}

.mobile-menu.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Form Input Focus */
input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(19, 236, 91, 0.2);
}

/* Newsletter Form */
#newsletter-form input[type="email"] {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#newsletter-form input[type="email"]:focus {
    border-color: #13ec5b;
}

/* Dark Mode Toggle (if implemented) */
.dark-mode-toggle {
    transition: background-color 0.3s ease;
}

/* Hero Section Parallax */
.hero-parallax {
    transition: transform 0.1s ease-out;
}

/* Badge Pulse Animation */
.badge-pulse {
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-padding {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Print Styles */
@media print {
    header, footer, .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Accessibility - Focus Visible */
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid #13ec5b;
    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;
    }
}
