/* static/content/css/results.css */

.results-page-container {
    padding-top: 40px;
    padding-bottom: 60px;
}

.results-header {
    text-align: center;
    margin-bottom: 50px;
}

.results-header h1 {
    font-size: 3em; /* Normalize to global h1 size (48px on 16px base) */
    margin-bottom: 15px;
    color: #2c3e50;
}

.results-header p {
    font-size: 1.2em;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Swiper Styles for Results Carousel */
.results-swiper {
    width: 100%;
    /* height: 400px; /* Adjust height as needed or make it auto based on content */
    padding-bottom: 50px; /* Space for pagination */
}

.result-slide {
    position: relative; /* For absolute positioning of description */
    overflow: hidden;
    border-radius: 8px; /* Rounded corners for the slide itself */
    background-color: #f0f0f0; /* Fallback bg if image is slow to load */
    height: 350px; /* Fixed height for uniform slides, adjust as needed */
    /* Alternatively, for dynamic height based on image aspect ratio, remove fixed height 
       and ensure images dictate the slide height correctly. 
       This might require adjusting image styling or Swiper options like autoHeight. */
}

.result-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the slide area, might crop */
    transition: transform 0.4s ease;
}

.result-slide:hover img {
    transform: scale(1.08); /* Zoom image on slide hover */
}

.result-slide-description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.75); /* Semi-transparent overlay */
    color: #fff;
    padding: 15px;
    text-align: center;
    opacity: 0;
    transform: translateY(100%); /* Start off-screen */
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none; /* Allow hover on image behind it initially */
}

.result-slide:hover .result-slide-description {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto; /* Enable interaction when visible */
}

.result-slide-description p {
    font-size: 0.95em;
    line-height: 1.5;
    margin: 0;
}

.slide-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%; /* Make sure it fills the slide if image is missing */
    color: #888;
    font-size: 1.1em;
}

/* Swiper Navigation and Pagination custom styling (optional) */
.results-swiper .swiper-button-next, 
.results-swiper .swiper-button-prev {
    color: #1DB954; /* Your theme green */
    transition: opacity 0.2s ease;
}
.results-swiper .swiper-button-next:hover, 
.results-swiper .swiper-button-prev:hover {
    opacity: 0.7;
}

.results-swiper .swiper-pagination-bullet {
    background-color: #ccc;
    opacity: 1;
}

.results-swiper .swiper-pagination-bullet-active {
    background-color: #1DB954; /* Your theme green */
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 30px;
}

.result-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    overflow: hidden; /* To contain image border-radius */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.result-image-wrapper {
    width: 100%;
    padding-top: 75%; /* Aspect ratio 4:3. Adjust as needed (e.g., 100% for 1:1, 56.25% for 16:9) */
    position: relative;
    overflow: hidden;
}

.result-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, might crop */
    transition: transform 0.3s ease;
}

.result-card:hover .result-image-wrapper img {
    transform: scale(1.05); /* Slight zoom on hover */
}

.result-description {
    padding: 20px;
    text-align: center; /* Center the short description */
}

.result-description p {
    font-size: 1em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 0;
} 