/* Constantly Moving Marquee Search Examples */

.search-examples-container {
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

/* Prevent horizontal overflow only from marquee animations */
html {
    overflow-x: hidden;
}

/* Ensure marquee content doesn't cause overflow */
.marquee-row {
    will-change: transform;
}

/* Fix main content positioning for index page - center it properly */
body.index-page .main-content {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
}

/* Hide sidebar on index page initially, but allow mobile toggle */
@media (max-width: 991px) {
 body.index-page .sidebar { transform: translateX(-100%); }
}

body.index-page .sidebar.show {
    transform: translateX(0);
}

/* Ensure mobile sidebar toggle is visible on index page */
body.index-page .mobile-sidebar-toggle {
    display: block !important;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1040;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--streaml-primary);
    color: white;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* Prevent horizontal scrolling */
    max-width: 100%;
    contain: layout;
}

.marquee-track {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.marquee-row {
    display: flex;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
}

/* Row 1 - Left to right */
.marquee-row-1 {
    animation: marqueeLeft 30s linear infinite;
}

/* Row 2 - Right to left */
.marquee-row-2 {
    animation: marqueeRight 25s linear infinite;
}

/* Row 3 - Left to right (slower) */
.marquee-row-3 {
    animation: marqueeLeft 35s linear infinite;
}

.search-chip {
    background-color: #f3f4f6;
    color: #374151;
    padding: 12px 18px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.search-chip:hover {
    background-color: #6366f1;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.search-chip:active {
    transform: translateY(0px);
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.35);
}

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
    .search-chip {
        font-size: 13px;
        padding: 10px 14px;
    }
    
    .floating-search-container {
        gap: 8px;
        padding: 12px;
    }
}

/* Chip styling for marquee */
.marquee-row .search-chip {
    flex-shrink: 0;
    opacity: 1;
    animation: none;
}

/* Marquee animations */
@keyframes marqueeLeft {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes marqueeRight {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Pause animation on hover */
.marquee-row:hover {
    animation-play-state: paused;
}

/* Smooth fade at edges */
.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(248, 249, 250, 1), rgba(248, 249, 250, 0));
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(248, 249, 250, 1), rgba(248, 249, 250, 0));
}