/* Custom Styles for Hashtag Mood */

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

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #102a43;
}
::-webkit-scrollbar-thumb {
    background: #d4a800;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b88f00;
}

/* Scroll indicator animation */
@keyframes scrollIndicator {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(400%); }
}
.animate-scroll-indicator {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.scroll-reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.scroll-reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }
.scroll-reveal[data-reveal-delay="4"] { transition-delay: 0.4s; }
.scroll-reveal[data-reveal-delay="5"] { transition-delay: 0.5s; }
.scroll-reveal[data-reveal-delay="6"] { transition-delay: 0.6s; }

/* Scroll reveal hidden state (progressive enhancement - JS adds class) */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.reveal-hidden {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Navigation transitions */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #d4a800;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu transitions */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

/* Button hover effects */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Image loading */
img {
    image-rendering: -webkit-optimize-contrast;
}

/* Selection color */
::selection {
    background: #d4a800;
    color: #102a43;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .animate-scroll-indicator {
        animation: none;
    }
    .scroll-reveal.reveal-hidden {
        opacity: 1;
        transform: none;
    }
    .scroll-reveal {
        transition: none;
    }
    img {
        transition: none;
    }
}

/* Focus styles */
:focus-visible {
    outline: 2px solid #d4a800;
    outline-offset: 2px;
}

/* Custom select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23627d98' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Subtle hover lift on cards */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}
