/* Custom styles for Toy Tube website */

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

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

::-webkit-scrollbar-track {
    background: #0a0f0d;
}

::-webkit-scrollbar-thumb {
    background: #064e3b;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

/* Reveal animation for scroll sections */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.animated {
    opacity: 0;
    transform: translateY(30px);
}

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(10, 15, 13, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Hover effects for cards */
.group:hover .group-hover\:bg-emerald-700\/30 {
    background-color: rgba(5, 150, 105, 0.3);
}

/* Button focus states */
button:focus,
input:focus,
textarea:focus {
    outline: none;
}

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

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Prevent layout shift for images */
img {
    image-rendering: auto;
}

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

/* Ensure all text is readable */
.text-cream-100 {
    color: #fefdf8;
}

.text-cream-200 {
    color: #fdf9f0;
}

.text-cream-300 {
    color: #faf3e0;
}

.text-cream-400 {
    color: #f5e9cc;
}

/* Ensure contrast on dark backgrounds */
.bg-luxury-900 {
    background-color: #0a0f0d;
}

.bg-luxury-800 {
    background-color: #111a15;
}

/* Emerald accent colors */
.text-emerald-400 {
    color: #34d399;
}

.bg-emerald-700 {
    background-color: #047857;
}

.bg-emerald-800 {
    background-color: #065f46;
}
