/* 
    Rust+ Landing Page - UI Restoration Fixes
    This file contains CSS to correct regressions in the landing page and sub-pages.
*/

/* Animated Search Loader */
.search-loader {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    border-radius: 2px;
    margin: 1.5rem 0;
    width: 100%;
}

.search-loader.active {
    opacity: 1;
    visibility: visible;
}

.search-loader-bar {
    position: absolute;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, transparent, #cd412b, transparent);
    border-radius: 2px;
    animation: searchSlide 1.2s infinite linear;
}

@keyframes searchSlide {
    0% { left: -40%; }
    100% { left: 100%; }
}

/* Banner & Section Resizing Fixes */
.featured-dlc.is-large {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
    min-height: auto !important;
}

.image-section.small {
    height: 350px !important;
    min-height: 350px !important;
}

.image-section.small .image,
.image-section.small .image img {
    height: 100% !important;
    object-fit: cover !important;
}

/* Server List - Blur Removal & Visibility Fixes */
/* The classes lfldoz and ytbihv were found to have blur/backdrop-filter in index.html */
.lfldoz.is-blurred {
    filter: none !important;
    opacity: 1 !important;
    pointer-events: all !important;
}

.ytbihv {
    backdrop-filter: none !important;
    background: rgba(0, 0, 0, 0.85) !important; /* Dark solid background for readability */
}

/* Ensure server results are clickable and visible */
#serverResults {
    transition: all 0.3s ease;
}

#serverResults:not(:empty) {
    margin-top: 1rem;
}

/* Responsive adjustments for the new styles */
@media screen and (max-width: 849px) {
    .image-section.small {
        height: 250px !important;
        min-height: 250px !important;
    }
}
