/* Header Styles */
.header-scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Search bar transition */
.search-transition {
    transition: all 0.3s ease-in-out;
}

/* Custom scrollbar for WebKit browsers */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

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

/* Hide scrollbar but keep functionality */
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.no-scrollbar::-webkit-scrollbar {
    display: none;  /* Chrome, Safari and Opera */
}

/* Mobile menu transitions */
.mobile-menu-enter {
    transform: translateX(-100%);
}

.mobile-menu-enter-active {
    transform: translateX(0);
    transition: transform 300ms ease-in-out;
}

.mobile-menu-exit {
    transform: translateX(0);
}

.mobile-menu-exit-active {
    transform: translateX(-100%);
    transition: transform 200ms ease-in-out;
}

/* Search overlay transitions */
.search-overlay-enter {
    opacity: 0;
}

.search-overlay-enter-active {
    opacity: 1;
    transition: opacity 300ms ease-out;
}

.search-overlay-exit {
    opacity: 1;
}

.search-overlay-exit-active {
    opacity: 0;
    transition: opacity 200ms ease-in;
}

/* Breaking News Ticker Animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation-play-state: running;
}

.animate-marquee.paused {
    animation-play-state: paused;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-bar {
        width: 100%;
        margin: 0 1rem;
    }
}
