﻿/* =============================================================
   HERO WINNER SECTION
   Covers: winner carousel, price display, winner image blob,
           carousel controls, and responsive adjustments.
   Used in: winner-hero-section / #heroWinnersCarousel
   ============================================================= */

.winner-hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow-x: hidden;
}

#heroWinnersCarousel {
    min-height: 500px;
}

.carousel-item {
    padding: 0.2rem 0;
    transition: transform 0.6s ease-in-out, opacity 0.8s ease;
}

    /* Initially invisible — animated in on .active */
    .carousel-item .content-column,
    .carousel-item .image-column {
        opacity: 0;
    }

.content-column {
    position: relative;
    z-index: 5;
}

/* ─── WINNER TEXT ─────────────────────── */
.winner-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: rgba(0, 123, 255, 0.1);
    color: var(--bs-primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

.winner-heading {
    letter-spacing: -1px;
}

.winner-name {
    text-transform: uppercase;
    font-weight: bold;
    background-color: #f39c12;
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 2.7rem;
}

/* ─── PRICE CARD ─────────────────────── */
.winner-hero-section .price-card {
    border: 1px solid #dee2e6;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.Winning-price-display {
    color: #f59e0b;
    font-weight: 700;
    font-size: 1.5rem;
}

.Opening-price-display {
    color: #dc2626;
    font-weight: 700;
    font-size: 1.5rem;
}

/* ─── WINNER IMAGE ─────────────────────── */
.winner-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 450px;
}

.image-bg-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    padding-bottom: 90%;
    transform: translate(-50%, -50%) rotate(45deg);
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.1), rgba(0, 123, 255, 0.3));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blob-morph 10s infinite alternate;
}

@keyframes blob-morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 60% 40% 30% 70% / 70% 50% 50% 30%;
    }

    100% {
        border-radius: 45% 55% 65% 35% / 55% 45% 55% 45%;
    }
}

.winner-image {
    position: relative;
    z-index: 2;
    max-width: 90%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 1.5rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.15);
    border: 4px solid white;
}

/* ─── ENTRY ANIMATIONS ─────────────────── */
.carousel-item.active .content-column {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.carousel-item.active .image-column {
    animation: fadeInRight 0.8s ease-out 0.4s forwards;
}

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ─── CAROUSEL CONTROLS ─────────────────── */
.carousel-control-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background-color: rgba(255, 255, 255, 0.7);
    color: #333;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    color: #34495e;
}

    .carousel-control-prev:hover .carousel-control-icon,
    .carousel-control-next:hover .carousel-control-icon {
        background-color: var(--bs-primary);
        color: white;
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    }

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 991.98px) {
    .carousel-item {
        padding: 2rem 0;
    }

    .winner-image-container {
        min-height: 350px;
    }

    .winner-image {
        max-height: 300px;
    }
}

@media (min-width: 992px) {
    /* Reset auto-centering for the price card on desktop */
    .price-card {
        margin-left: 0;
        margin-right: 0;
    }
}
