/* ═══════════════════════════════════════════════════════════ */
/* YONO BAZAAR — COUNTDOWN STYLES (Premium v2)                */
/* Independent file. Loaded alongside style.css.              */
/* ═══════════════════════════════════════════════════════════ */

/* ── Container ──────────────────────────────────────────────── */
#countdownContainer {
    padding: 0 10px 12px;
    display: none;            /* shown by JS when active */
    contain: layout style;    /* layout isolation — no reflow bleed */
}

body.is-searching #countdownContainer { display: none !important; }

@keyframes cdBorderFlow {
    0%   { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}
@keyframes cdTitleShine {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}
@keyframes cdPulseDot {
    0%   { box-shadow: 0 0 0 0 rgba(255, 82, 82, .65); }
    70%  { box-shadow: 0 0 0 7px rgba(255, 82, 82, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 82, 82, 0); }
}
@keyframes cdSweep {
    0%   { transform: translateX(-130%) skewX(-18deg); }
    55%, 100% { transform: translateX(260%) skewX(-18deg); }
}
@keyframes cdSecTick {
    0%   { transform: scale(1);    }
    35%  { transform: scale(1.07); }
    100% { transform: scale(1);    }
}

/* ── Banner card: gradient-border shell + dark glass body ────── */
.countdown-banner {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 11px 8px;
    color: #fff;
    border-radius: 15px;
    border: 1.5px solid transparent;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(255, 193, 7, .16), transparent 55%),
        radial-gradient(110% 140% at 100% 100%, rgba(156, 39, 176, .28), transparent 55%),
        linear-gradient(#17142e, #17142e) padding-box,
        linear-gradient(120deg, #FFD700, #FF9500, #FF3CAC, #8e44ff, #FFD700) border-box;
    background-size: auto, auto, auto, 300% 100%;
    animation: cdBorderFlow 7s linear infinite;
    box-shadow:
        0 10px 28px rgba(23, 20, 46, .45),
        0 0 0 1px rgba(255, 255, 255, .04) inset,
        0 0 22px rgba(255, 193, 7, .18);
}
/* light sweep across the card */
.countdown-banner::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 38%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .10), transparent);
    animation: cdSweep 5.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
.countdown-banner > * { position: relative; z-index: 1; }

/* ── App poster with halo ───────────────────────────────────── */
.countdown-poster {
    width: 50px;
    height: 50px;
    border-radius: 13px;
    object-fit: cover;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    border: 2px solid #FFD700;
    background: #241f45;
    box-shadow:
        0 0 0 3px rgba(255, 215, 0, .18),
        0 6px 16px rgba(0, 0, 0, .5),
        0 0 20px rgba(255, 193, 7, .35);
}

/* ── Right column ───────────────────────────────────────────── */
.countdown-details {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
}

/* ── "Launching soon" pill ──────────────────────────────────── */
.countdown-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 1px 8px 1px 6px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #ffe9a8;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 215, 0, .35);
}
.countdown-badge::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #ff5252;
    animation: cdPulseDot 1.6s ease-out infinite;
}

/* ── App title ──────────────────────────────────────────────── */
.countdown-app-title {
    font-size: 15px;
    font-style: italic;
    font-weight: 900;
    margin: 2px 0 0;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    line-height: 1.2;
    background: linear-gradient(90deg, #FF5722 0%, #FFD700 25%, #fff 50%, #FFD700 75%, #FF5722 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: cdTitleShine 3s linear infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Divider ────────────────────────────────────────────────── */
.lightning-effect {
    height: 1px;
    margin: 3px auto 5px;
    width: 86%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, .85), transparent);
    opacity: .75;
}
.lightning-effect + .countdown-app-title { margin-top: 0; }

/* ── Timer ──────────────────────────────────────────────────── */
.countdown-timer-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
    margin-top: 0;
}

.countdown-block {
    text-align: center;
    min-width: 34px;
    position: relative;
}
/* colon separators between tiles */
.countdown-block + .countdown-block::before {
    content: ':';
    position: absolute;
    left: -4px;
    top: 3px;
    transform: translateX(-50%);
    font-size: 13px;
    font-weight: 800;
    color: rgba(255, 215, 0, .7);
    line-height: 1;
}

.countdown-number {
    position: relative;
    display: block;
    min-width: 34px;
    padding: 4px 3px 3px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .5px;
    font-variant-numeric: tabular-nums;
    color: #fff;
    border-radius: 7px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .16) 50%, rgba(255, 255, 255, .06) 50%, rgba(255, 255, 255, .06) 100%);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 3px 8px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .18);
    text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}
/* flip-clock centre line */
.countdown-number::after {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 50%;
    height: 1px;
    background: rgba(0, 0, 0, .35);
}
/* seconds tile highlighted in gold */
.countdown-block:last-child .countdown-number {
    color: #2b1d00;
    background: linear-gradient(180deg, #FFE27A 0%, #FFC107 52%, #FFB300 52%, #FFA000 100%);
    border-color: rgba(255, 244, 191, .8);
    text-shadow: none;
    box-shadow: 0 3px 10px rgba(255, 179, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .6);
    animation: cdSecTick 1s ease-in-out infinite;
}
.countdown-block:last-child .countdown-number::after { background: rgba(120, 70, 0, .35); }

.countdown-label {
    margin-top: 2px;
    font-size: 7.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, .62);
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .countdown-banner,
    .countdown-banner::after,
    .countdown-app-title,
    .countdown-badge::before,
    .countdown-block:last-child .countdown-number { animation: none !important; }
}

/* ── Small phones ───────────────────────────────────────────── */
@media (max-width: 380px) {
    .countdown-banner  { gap: 9px; padding: 8px 9px 7px; }
    .countdown-poster  { width: 44px; height: 44px; border-radius: 11px; }
    .countdown-app-title { font-size: 13.5px; letter-spacing: .8px; }
    .countdown-block, .countdown-number { min-width: 30px; }
    .countdown-number  { font-size: 14.5px; padding: 3px 2px 2px; }
    .countdown-timer-wrapper { gap: 3px; }
    .countdown-block + .countdown-block::before { left: -3px; font-size: 12px; }
    .countdown-badge { font-size: 7.5px; letter-spacing: .9px; }
}

/* ═══════════════════════════════════════════════════════════════ */
/* YONO BAZAAR — BANNER CAROUSEL STYLES                           */
/* Image ratio: 2172×724 = 3:1                                    */
/* ═══════════════════════════════════════════════════════════════ */

/* ── Animated border keyframes ────────────────────────────────── */
@keyframes borderGlow {
    0%   { border-color: #FFD700; box-shadow: 0 0 8px 2px rgba(255,215,0,0.55), 0 6px 24px rgba(0,0,0,0.35); }
    25%  { border-color: #FF9500; box-shadow: 0 0 12px 3px rgba(255,149,0,0.5),  0 6px 24px rgba(0,0,0,0.35); }
    50%  { border-color: #FF3CAC; box-shadow: 0 0 14px 4px rgba(255,60,172,0.5), 0 6px 24px rgba(0,0,0,0.35); }
    75%  { border-color: #784BA0; box-shadow: 0 0 12px 3px rgba(120,75,160,0.5), 0 6px 24px rgba(0,0,0,0.35); }
    100% { border-color: #FFD700; box-shadow: 0 0 8px 2px rgba(255,215,0,0.55),  0 6px 24px rgba(0,0,0,0.35); }
}

@keyframes bannerFadeIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

@keyframes imgReveal {
    from { opacity: 0; transform: scale(1.04); }
    to   { opacity: 1; transform: scale(1);    }
}

/* ── Outer wrapper — holds the glowing border ─────────────────── */
.yb-banner-outer {
    padding: 3px;                          /* border thickness */
    border-radius: 18px;
    background: linear-gradient(135deg, #FFD700, #FF9500, #FF3CAC, #784BA0, #FFD700);
    background-size: 300% 300%;
    animation:
        bannerFadeIn 0.45s ease both,
        borderShift 4s linear infinite;
    box-shadow:
        0 0 10px 2px rgba(255, 215, 0, 0.4),
        0 8px 28px rgba(0, 0, 0, 0.4);
}

@keyframes borderShift {
    0%   { background-position: 0%   50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0%   50%; }
}

/* ── Carousel wrapper (inside the glowing border) ─────────────── */
.yb-banner-carousel {
    position: relative;
    width: 100%;
    border-radius: 15px;                   /* slightly less than outer */
    overflow: hidden;
    background: #0a0a14;
}

/* ── Track ────────────────────────────────────────────────────── */
.yb-banner-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    backface-visibility: hidden;
}

/* ── Individual slide ─────────────────────────────────────────── */
.yb-banner-slide {
    flex: 0 0 100%;
    min-width: 100%;
    display: block;
    position: relative;
    background: #0a0a14;
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
    /* ~3.8:1 aspect ratio — wider, shorter banner */
    aspect-ratio: 3.8 / 1;
}

/* Subtle light sweep on hover (desktop) */
.yb-banner-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        transparent 35%,
        rgba(255,255,255,0.07) 50%,
        transparent 65%
    );
    opacity: 0;
    transition: opacity 0.35s;
    pointer-events: none;
}
.yb-banner-slide:hover::after { opacity: 1; }

/* Tap press feedback */
.yb-banner-slide:active {
    transform: scale(0.988);
    transition: transform 0.1s;
}

/* ── Banner image — fills the 3:1 card perfectly ─────────────── */
.yb-banner-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: imgReveal 0.4s ease both;
}

/* ── Dot indicators ───────────────────────────────────────────── */
.yb-banner-dots {
    position: absolute;
    bottom: 9px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.yb-banner-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.3s, width 0.35s, border-radius 0.35s;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.yb-banner-dot.active {
    background: #FFD700;
    width: 20px;
    border-radius: 4px;
    box-shadow: 0 0 7px rgba(255, 215, 0, 0.7);
}

/* ── Reduced motion ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .yb-banner-outer    { animation: bannerFadeIn 0.3s ease both; }
    .yb-banner-track    { transition: none; }
    .yb-banner-slide    { animation: none; }
    .yb-banner-img      { animation: none; }
    .yb-banner-dot      { transition: none; }
}
