/* TeddySell - Campaigns & Flash Sales CSS (Light Theme) */

:root {
    --flash-bg: linear-gradient(90deg, #ff4d4d 0%, #ff8c40 100%);
    --campaign-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    /* Flash Sales Section */
    --flash-section-bg: #ffffff;
    --flash-section-border: #bfdbfe;
    --flash-section-accent: #1d4ed8; /* Darkened from #2563eb for better contrast */
    --flash-section-text: #1e293b;
    --flash-section-muted: #475569; /* Darkened from #64748b to meet 4.5:1 ratio */

    /* Marquee Strip */
    --marquee-bg: #f8fafc;
    --marquee-border: #e2e8f0;
    --marquee-text: #1d4ed8; /* Darkened from #3b82f6 to meet 4.5:1 ratio */
}

/* ========== FLASH SALES SECTION (Light Frame) ========== */
.flash-sales-dark {
    background: var(--flash-section-bg);
    border-radius: 24px;
    padding: 2rem 2rem 2.5rem;
    margin-bottom: 2.5rem;
    border: 1.5px solid var(--flash-section-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.flash-sales-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--flash-section-accent), #60a5fa, var(--flash-section-accent));
    border-radius: 24px 24px 0 0;
}

.flash-sales-dark .products-grid {
    gap: 1.25rem;
}

.flash-sales-dark .product-card {
    background: #ffffff;
    border: 1px solid var(--flash-section-border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.flash-sales-dark .product-card:hover {
    border-color: var(--flash-section-accent);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.12);
    transform: translateY(-4px);
}

.flash-sales-dark .product-card .product-title,
.flash-sales-dark .product-card .product-title a {
    color: var(--flash-section-text) !important;
}

.flash-sales-dark .product-card .product-price {
    color: var(--flash-section-accent) !important;
}

.flash-sales-dark .product-card .product-meta,
.flash-sales-dark .product-card .product-location,
.flash-sales-dark .product-card .product-time {
    color: var(--flash-section-muted) !important;
}

/* Light Frame Header */
.flash-dark-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
}

.flash-dark-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--flash-section-text);
    letter-spacing: -0.5px;
}

.flash-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #f97316, #ef4444);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

/* Timer */
.flash-dark-timer {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}

.flash-dark-timer-unit {
    background: #f1f5f9;
    color: var(--flash-section-text);
    padding: 6px 10px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.1rem;
    min-width: 42px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    border: 1px solid #e2e8f0;
}

.flash-dark-timer-sep {
    color: #94a3b8;
    font-weight: 800;
    font-size: 1.2rem;
}

.flash-dark-viewall {
    font-weight: 700;
    color: var(--flash-section-accent);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: color 0.2s;
}

.flash-dark-viewall:hover {
    color: #1e3a8a;
}

/* ========== MARQUEE STRIP ========== */
.marquee-strip {
    background: var(--marquee-bg);
    padding: 14px 0;
    margin-bottom: 2.5rem;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--marquee-border);
}

.marquee-track {
    overflow: hidden;
    width: 100%;
}

.marquee-content {
    display: flex;
    gap: 3rem;
    animation: marqueeScroll 25s linear infinite;
    width: max-content;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--marquee-text);
    font-weight: 700;
    font-size: 0.92rem;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.marquee-item i {
    font-size: 0.85rem;
    opacity: 0.85;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-strip:hover .marquee-content {
    animation-play-state: paused;
}

/* ========== EXISTING STYLES ========== */

/* Flash Sales Section (Legacy) */
.flash-sales-container {
    background: #fff;
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--campaign-shadow);
    border: 1px solid #fee2e2;
}

.flash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.flash-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    font-size: 1.5rem;
    color: #1e293b;
}

.flash-timer {
    display: flex;
    gap: 8px;
}

.timer-unit {
    background: #1e293b;
    color: white;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.1rem;
    min-width: 45px;
    text-align: center;
}

/* Tiered Discount Boxes */
.discount-boxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 1.5rem;
}

.discount-box {
    padding: 1rem 0.5rem;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.discount-box:hover {
    transform: translateY(-8px);
}

.discount-box h3 {
    font-size: 1.75rem;
    font-weight: 900;
    margin-bottom: 0.2rem;
}

.discount-box p {
    font-weight: 700;
    font-size: 0.85rem;
    margin: 0;
}

/* Dynamic Campaign Banners */
.campaign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 25px;
    margin-bottom: 3rem;
}

.campaign-banner-card {
    border-radius: 24px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 220px;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.campaign-banner-card:hover {
    box-shadow: var(--campaign-shadow);
}

.campaign-content {
    flex: 1;
    z-index: 2;
}

.campaign-title-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    opacity: 0.8;
}

.campaign-main-title {
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 5px;
}

/* Product Badges */
.badge-flash {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4d4d;
    background: var(--flash-bg);
    color: white;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 5px 12px;
    border-radius: 50px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(255, 77, 77, 0.3);
    display: flex;
    align-items: center;
    gap: 5px;
}

.badge-campaign {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #4f46e5;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 8px;
    z-index: 10;
}

.flash-price-strike {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 0.85rem;
    margin-right: 8px;
}

.flash-active-price {
    color: #ef4444;
    font-weight: 900;
}

/* Responsive */
@media (max-width: 768px) {
    .campaign-grid {
        grid-template-columns: 1fr;
    }
    .discount-boxes-grid {
        grid-template-columns: 1fr 1fr;
    }
    .flash-timer {
        transform: scale(0.85);
    }
    .flash-sales-dark {
        padding: 1.25rem 1rem 1.5rem;
        border-radius: 16px;
        margin-bottom: 1.5rem;
    }
    .flash-dark-title {
        font-size: 1.1rem;
        gap: 8px;
        flex-wrap: wrap;
    }
    .flash-icon {
        width: 34px;
        height: 34px;
        font-size: 1rem;
        border-radius: 10px;
    }
    .flash-dark-timer {
        margin-left: 0;
    }
    .flash-dark-timer-unit {
        padding: 4px 7px;
        font-size: 0.9rem;
        min-width: 34px;
        border-radius: 8px;
    }
    .flash-dark-viewall {
        font-size: 0.82rem;
    }
    .marquee-strip {
        border-radius: 10px;
        padding: 10px 0;
        margin-bottom: 1.5rem;
    }
    .marquee-item {
        font-size: 0.82rem;
        gap: 6px;
    }
    .marquee-content {
        gap: 2rem;
        animation-duration: 18s;
    }
}
