﻿/* =============================================================
   WINNER SHOWCASE GRID
   Covers: the CSS grid layout for ended-auction spotlights,
           bid info bubbles, floating bid animations.
   Used in: .auction-showcasewinner
   ============================================================= */

/* ─── CSS VARIABLES ─────────────────────── */
:root {
    --grid-height: 850px;
    --grid-gap: 1.5rem;
    --card-radius: 12px;
    --spotlight-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ─── GRID LAYOUT ─────────────────────── */
.showcase-gridwinner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: var(--grid-gap);
    height: var(--grid-height);
    max-width: 1750px;
    margin-bottom: 11rem;
    grid-template-areas:
        "hero trending"
        "hero grid";
}

.showcase-item--herowinner {
    grid-area: hero;
}

.showcase-item--trending {
    grid-area: trending;
}

.showcase-item--grid {
    grid-area: grid;
}

/* ─── SPOTLIGHT CARD ─────────────────── */
.winner-spotlight {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--spotlight-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .winner-spotlight:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    }

.winner-spotlight__visual {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 0;
}

    .winner-spotlight__visual img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* ─── SUB-GRID (2 small cards) ──────────── */
.winner-subgrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    height: 100%;
}

/* ─── BID PRICE BUBBLE ─────────────────── */
.bid-info-bubble {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 10;
    background-color: rgba(22, 160, 133, 0.9);
    color: #ffffff;
    border-radius: 8px;
    padding: 6px 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

    .bid-info-bubble .bid-price {
        font-size: 1.1rem;
        font-weight: 700;
    }

    .bid-info-bubble .bid-count {
        font-size: 0.8rem;
        font-weight: 400;
        opacity: 0.9;
    }

.bid-price .currency-symbol {
    font-size: 0.8em;
    font-weight: normal;
    margin-left: 4px;
    opacity: 0.9;
}

/* ─── FLOATING BUBBLES ANIMATION ───────── */
.floating-bubbles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 5;
}

.bubble-float {
    position: absolute;
    bottom: -50px;
    background-color: rgba(22, 160, 133, 0.9);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 50px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    animation-name: float-up;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

    .bubble-float:nth-child(1) {
        left: 15%;
        animation-duration: 8s;
        animation-delay: 0s;
    }

    .bubble-float:nth-child(2) {
        left: 40%;
        animation-duration: 6s;
        animation-delay: 2s;
    }

    .bubble-float:nth-child(3) {
        left: 70%;
        animation-duration: 10s;
        animation-delay: 1s;
    }

    .bubble-float:nth-child(4) {
        left: 85%;
        animation-duration: 7s;
        animation-delay: 5s;
    }

    .bubble-float:nth-child(5) {
        left: 50%;
        animation-duration: 5s;
        animation-delay: 3s;
    }

@keyframes float-up {
    0% {
        bottom: -50px;
        opacity: 0;
    }

    20% {
        opacity: 0.9;
    }

    90% {
        opacity: 0.9;
    }

    100% {
        bottom: 100%;
        opacity: 0;
    }
}

/* ─── SECTION HEADER (showcase-specific) ── */
.auction-showcasewinner .section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.auction-showcasewinner .section-header__left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auction-showcasewinner .section-header__icon {
    width: 42px;
    height: 42px;
    background: rgba(201, 168, 76, 0.15);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.auction-showcasewinner .section-header__eyebrow {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #3C3D37;
    margin-bottom: 2px;
}

.auction-showcasewinner .section-header__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #181C14;
    line-height: 1;
}

/* ─── RESPONSIVE ─────────────────────────── */
@media (min-width: 1401px) {
    .showcase-gridwinner {
        height: 900px;
        --grid-gap: 2rem;
    }
}

@media (max-width: 1400px) {
    .showcase-gridwinner {
        height: 750px;
    }
}

@media (max-width: 1199px) {
    .showcase-gridwinner {
        height: 650px;
        grid-template-columns: 1.1fr 1fr;
    }
}

@media (max-width: 991px) {
    .showcase-gridwinner {
        height: auto;
        grid-template-columns: 1fr;
        grid-template-areas: "hero" "trending" "grid";
    }

    .showcase-item--herowinner .winner-spotlight__visual {
        height: 350px;
    }

    .showcase-item--trending .winner-spotlight__visual {
        height: 250px;
    }

    .winner-subgrid {
        grid-template-columns: 1fr;
        height: auto;
        gap: var(--grid-gap);
    }

    .winner-subgrid__cell .winner-spotlight__visual {
        height: 220px;
    }
}

@media (max-width: 576px) {
    .showcase-item--herowinner .winner-spotlight__visual {
        height: 250px;
    }
}

/* Container and Typography */
.p-4 h2 {
    letter-spacing: -0.5px;
    margin-bottom: 0.25rem;
}

.price-display {
    font-size: 1.5rem;
    font-weight: 800;
    color: #c79a46; /* Bootstrap Primary Color */
    display: flex;
    align-items: baseline;
    gap: 4px;
}

    .price-display .currency {
        font-size: 0.9rem;
        font-weight: 600;
        color: #c79a46;
    }

/* Social Media Wrapper Icons */
.wrapper {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: "Poppins", sans-serif;
}

    .wrapper .icon {
        position: relative;
        background: #ffffff;
        border-radius: 50%;
        margin: 0 5px;
        width: 35px;
        height: 35px;
        font-size: 14px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
        cursor: pointer;
        transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .wrapper .tooltip {
        position: absolute;
        top: 0;
        font-size: 12px;
        background: #ffffff;
        color: #ffffff;
        padding: 5px 8px;
        border-radius: 5px;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

        .wrapper .tooltip::before {
            position: absolute;
            content: "";
            height: 8px;
            width: 8px;
            background: #ffffff;
            bottom: -3px;
            left: 50%;
            transform: translate(-50%) rotate(45deg);
            transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

    .wrapper .icon:hover .tooltip {
        top: -45px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Social Media Colors */
    .wrapper .icon:hover span,
    .wrapper .icon:hover .tooltip {
        text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.1);
    }

    .wrapper .facebook:hover,
    .wrapper .facebook:hover .tooltip,
    .wrapper .facebook:hover .tooltip::before {
        background: #1877F2;
        color: #ffffff;
    }

    .wrapper .twitter:hover,
    .wrapper .twitter:hover .tooltip,
    .wrapper .twitter:hover .tooltip::before {
        background: #1DA1F2;
        color: #ffffff;
    }

    .wrapper .instagram:hover,
    .wrapper .instagram:hover .tooltip,
    .wrapper .instagram:hover .tooltip::before {
        background: #E4405F;
        color: #ffffff;
    }

    .wrapper .whatsapp:hover,
    .wrapper .whatsapp:hover .tooltip,
    .wrapper .whatsapp:hover .tooltip::before {
        background: #25D366;
        color: #ffffff;
    }

    .wrapper .icon a {
        color: inherit;
        text-decoration: none;
        display: flex;
    }

/* Button Refinement */
.btn-primary {
    border-radius: 12px;
    padding: 12px;
    transition: transform 0.2s;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
    }
