/**
 * EMERE Builder - Featured Auctions Carousel Section Stylesheet
 * Incorporates flexible layout card sliders, absolute clock badges, and horizontal trust footer grids.
 */

.emere-featured-auctions-section-wrapper {
    width: 100%;
    margin-bottom: var(--emere-builder-section-spacing);
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    color: #1e293b;
    overflow: hidden;
}

.emere-auctions-container {
    max-width: var(--emere-builder-container-width);
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* 1. HEADER ELEMENT STYLING */
.emere-auctions-header-block {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 35px;
    box-sizing: border-box;
}

.header-left-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.emere-auctions-live-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #ffedd5; /* Light warm orange-yellow */
    border: 1px solid #fed7aa;
    border-radius: 30px;
    padding: 5px 12px;
    font-size: 10px;
    font-weight: 800;
    color: #ea580c;
    letter-spacing: 0.05em;
}

/* Pulsing live dot */
.emere-auctions-live-badge .pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #ef4444;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: emereLiveBadgePulse 1.6s infinite;
}

@keyframes emereLiveBadgePulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.auctions-heading-main {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
}

.auctions-subheading-main {
    font-size: 1.05rem;
    color: #64748b;
    margin: 0;
}

.header-right-col {
    display: flex;
    align-items: center;
    gap: 20px;
}

.emere-auctions-all-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.emere-auctions-all-cta:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.emere-auctions-all-cta .cta-arrow {
    transition: transform 0.2s ease;
}

.emere-auctions-all-cta:hover .cta-arrow {
    transform: translateX(3px);
}

.carousel-nav-arrows-wrapper {
    display: flex;
    gap: 8px;
}

.carousel-nav-btn {
    background-color: #ffffff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.2s ease;
    outline: none !important;
}

.carousel-nav-btn:hover {
    background-color: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

/* 2. CAROUSEL VIEWPOT TRACK */
.emere-auctions-carousel-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.emere-auctions-carousel-track {
    display: flex;
    transition: transform 0.9s cubic-bezier(0.25, 1, 0.5, 1); /* Slower, smoother glide */
    width: 100%;
    box-sizing: border-box;
}

.emere-auction-card-wrapper {
    flex: 0 0 25%; /* 4 Cards visible per viewport default */
    padding: 10px;
    box-sizing: border-box;
}

/* Highly rounded SaaS clean card structures */
.emere-auction-card-inner {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.02);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    height: 100%;
    animation: emereCardFloat 6s ease-in-out infinite;
    position: relative;
}

/* Stretched link to make the entire card clickable */
.emere-card-stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

/* Ensure interactive elements stay above the stretched link */
.heart-watchlist-icon,
.btn-place-bid,
.btn-quick-view,
.carousel-nav-btn {
    position: relative;
    z-index: 2;
}

/* Staggered float delays so card movement is offset and natural */
.emere-auction-card-wrapper:nth-child(2n) .emere-auction-card-inner {
    animation-delay: 1.5s;
}
.emere-auction-card-wrapper:nth-child(3n) .emere-auction-card-inner {
    animation-delay: 3s;
}
.emere-auction-card-wrapper:nth-child(4n) .emere-auction-card-inner {
    animation-delay: 4.5s;
}

.emere-auction-card-inner:hover {
    animation-play-state: paused;
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

@keyframes emereCardFloat {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Card media frame overlays */
.card-media-panel {
    position: relative;
    width: 100%;
    aspect-ratio: 1.35;
    background-color: #f8fafc;
    overflow: hidden;
    flex-shrink: 0;
}

.card-media-panel .card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.emere-auction-card-inner:hover .card-thumb {
    transform: scale(1.03);
}

.heart-watchlist-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ffffff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #64748b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    z-index: 5;
    transition: all 0.2s ease;
}

.heart-watchlist-icon:hover,
.heart-watchlist-icon.is-watched {
    color: #ef4444;
    transform: scale(1.08);
}

/* Absolute countdown timer overlay */
.card-countdown-ticker {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: rgba(239, 68, 68, 0.9); /* Red timer overlay matching mockup */
    color: #ffffff;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 5;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.card-countdown-ticker .clock-icon {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

/* Card details panel */
.card-details-panel {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
    box-sizing: border-box;
}

.card-cat-name {
    font-size: 10.5px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.card-title-heading {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
    margin: 0 0 12px 0;
    height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-title-heading a {
    color: inherit;
    text-decoration: none !important;
}

.card-title-heading a:hover {
    color: var(--emere-builder-accent);
}

/* Bids settlement row */
.card-settlement-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 14px;
}

.bid-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bid-lbl {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.bid-val {
    font-size: 14.5px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.bids-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
}

.bids-count-badge .bids-icon {
    font-size: 13px;
    width: 13px;
    height: 13px;
}

/* Action CTAs buttons row */
.card-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.emere-btn.btn-place-bid {
    flex-grow: 1;
    background-color: var(--emere-builder-accent);
    color: #ffffff;
    border: 1px solid var(--emere-builder-accent);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.emere-btn.btn-place-bid:hover {
    background-color: #ea580c;
    border-color: #ea580c;
    transform: translateY(-1px);
}

.emere-btn.btn-place-bid .hammer-icon {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.emere-btn.btn-place-bid .btn-arrow {
    transition: transform 0.2s ease;
}

.emere-btn.btn-place-bid:hover .btn-arrow {
    transform: translateX(2px);
}

.emere-btn.btn-quick-view {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    text-decoration: none !important;
}

.emere-btn.btn-quick-view:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.emere-btn.btn-quick-view .eye-icon {
    font-size: 15px;
    width: 15px;
    height: 15px;
}

/* Carousel tracks empty message */
.no-auctions-msg {
    width: 100%;
    text-align: center;
    padding: 40px 20px;
    font-style: italic;
    color: #64748b;
}

/* 3. HORIZONTAL TRUST SEALS STRIP FOOTER */
.emere-auctions-trust-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background-color: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    padding: 24px;
    margin-top: 40px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.02);
    gap: 15px;
}

.trust-strip-item {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
}

.trust-strip-item:not(:last-child) {
    border-right: 1px solid #f1f5f9;
    padding-right: 15px;
}

.trust-strip-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #ffedd5; /* Warm light orange circle */
    color: #ea580c;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-strip-icon-circle .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.trust-strip-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.strip-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.strip-desc {
    font-size: 10.5px;
    color: #64748b;
    margin: 0;
}

/* RESPONSIVE DESIGN polish */
@media (max-width: 1200px) {
    .emere-auction-card-wrapper {
        flex: 0 0 33.333%; /* 3 Cards visible on small desktops */
    }
}

@media (max-width: 991.98px) {
    .emere-auction-card-wrapper {
        flex: 0 0 50%; /* 2 Cards visible on tablets */
    }
    
    .emere-auctions-trust-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 15px;
    }
    
    .trust-strip-item:nth-child(2n) {
        border-right: none;
        padding-right: 0;
    }
}

@media (max-width: 767.98px) {
    .emere-auctions-header-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .header-right-col {
        width: 100%;
        justify-content: space-between;
    }
    
    .auctions-heading-main {
        font-size: 1.8rem;
    }
    
    /* Touch friendly swipe scrolling carousel support for mobile devices */
    .emere-auctions-carousel-viewport {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .emere-auctions-carousel-viewport::-webkit-scrollbar {
        display: none;
    }
    
    .emere-auctions-carousel-track {
        transform: none !important; /* Strips JS translation so touch swiping takes over */
    }
    
    .emere-auction-card-wrapper {
        flex: 0 0 280px; /* Locked responsive width card for gorgeous mobile horizontal swipe */
    }
    
    .carousel-nav-arrows-wrapper {
        display: none; /* Hide arrows on mobile because touch swiping takes over */
    }
    
    .emere-auctions-trust-strip {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .trust-strip-item {
        border-right: none !important;
        padding-right: 0 !important;
        border-bottom: 1px solid #f1f5f9;
        padding-bottom: 12px;
    }
    
    .trust-strip-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* 4. CAROUSEL PAGINATION DOTS (MOBILE & DESKTOP INDICATORS) */
.emere-auctions-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    width: 100%;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-dot:hover {
    background-color: #94a3b8;
}

.carousel-dot.is-active {
    width: 24px;
    border-radius: 4px;
    background-color: var(--emere-builder-accent, #ea580c);
}
