/* ============================================================
   MintBuilder Ad System — mb-ads.css  v2.0
   Host at: https://mintbuilder.com/ads/mb-ads.css
   ============================================================ */

/* ── Reset & base ─────────────────────────────────────────── */
.mb-banner *,
.mb-banner *::before,
.mb-banner *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Banner containers ────────────────────────────────────── */
.mb-banner {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
  -webkit-font-smoothing: antialiased;
}
.mb-ad-728 { width: 728px; max-width: 100%; height: 90px;  border-radius: 8px; }
.mb-ad-300 { width: 300px;                  height: 250px; border-radius: 10px; }
.mb-ad-468 { width: 468px; max-width: 100%; height: 60px;  border-radius: 7px; }
.mb-ad-320 { width: 320px; max-width: 100%; height: 50px;  border-radius: 6px; }

/* ── Slides ───────────────────────────────────────────────── */
.mb-ad-slide {
  position: absolute;
  inset: 0;
  align-items: center;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.75s ease, transform 0.75s ease;
  will-change: opacity, transform;
  pointer-events: none;
  display: none;
  text-decoration: none!important;
}
.mb-ad-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  display: flex;
}

/* Shine sweep on every slide */
.mb-ad-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    transparent 30%,
    rgba(255,255,255,0.055) 50%,
    transparent 70%
  );
  animation: mb-shine 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 5;
}
@keyframes mb-shine {
  0%, 100% { transform: translateX(-130%); }
  55%       { transform: translateX(220%); }
}

/* ── Backgrounds ──────────────────────────────────────────── */
.mb-bg-gold {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,215,0,0.12) 0%, transparent 60%),
    linear-gradient(135deg, #0c0700 0%, #241600 35%, #160e00 70%, #0c0700 100%);
}
.mb-bg-silver {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(200,200,200,0.10) 0%, transparent 60%),
    linear-gradient(135deg, #050505 0%, #191919 35%, #0e0e0e 70%, #050505 100%);
}
.mb-bg-copper {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(210,120,50,0.12) 0%, transparent 60%),
    linear-gradient(135deg, #0c0400 0%, #2a0e00 35%, #180700 70%, #0c0400 100%);
}
.mb-bg-blue {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(33,150,243,0.12) 0%, transparent 60%),
    linear-gradient(135deg, #010710 0%, #021530 35%, #010b1e 70%, #010710 100%);
}

/* ── Coin image ───────────────────────────────────────────── */
.mb-coin-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.mb-coin-wrap img {
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.75));
  transition: filter 0.4s ease, transform 0.4s ease;
  display: block;
}

/* Float + glow when slide is active — per theme */
.mb-ad-slide.active.mb-bg-gold   .mb-coin-wrap img {
  filter: drop-shadow(0 0 14px rgba(255,210,0,0.65)) drop-shadow(0 5px 12px rgba(0,0,0,0.7));
  animation: mb-float 4s ease-in-out infinite;
}
.mb-ad-slide.active.mb-bg-silver .mb-coin-wrap img {
  filter: drop-shadow(0 0 14px rgba(190,190,190,0.55)) drop-shadow(0 5px 12px rgba(0,0,0,0.7));
  animation: mb-float 4s ease-in-out infinite;
}
.mb-ad-slide.active.mb-bg-copper .mb-coin-wrap img {
  filter: drop-shadow(0 0 14px rgba(200,110,40,0.65)) drop-shadow(0 5px 12px rgba(0,0,0,0.7));
  animation: mb-float 4s ease-in-out infinite;
}
.mb-ad-slide.active.mb-bg-blue   .mb-coin-wrap img {
  filter: drop-shadow(0 0 14px rgba(33,150,243,0.65)) drop-shadow(0 5px 12px rgba(0,0,0,0.7));
  animation: mb-float 4s ease-in-out infinite;
}

@keyframes mb-float {
  0%, 100% { transform: translateY(0)    scale(1);    }
  50%       { transform: translateY(-5px) scale(1.04); }
}

/* ── Hover: banner brightens, coin scales up ──────────────── */
.mb-banner:hover .mb-ad-slide.active {
  filter: brightness(1.06);
}
.mb-banner:hover .mb-ad-slide.active .mb-coin-wrap img {
  transform: scale(1.08);
}

/* Paused state: dim progress bar */
.mb-banner.mb-paused .mb-progress-bar {
  opacity: 0.45;
}

/* ── Text layers ──────────────────────────────────────────── */
.mb-text {
  flex: 1;
  min-width: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  position: relative;
  z-index: 2;
}
.mb-title {
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.mb-sub {
  color: rgba(255,255,255,0.62);
  margin-top: 2px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mb-price-wrap { margin-top: 3px; }

/* Price colors */
.mb-price        { font-weight: 700; }
.mb-price-gold   { color: #FFD700; }
.mb-price-silver { color: #D0D0D0; }
.mb-price-copper { color: #e09050; }
.mb-price-blue   { color: #64b5f6; }

/* Right column (468 banner) */
.mb-banner .mb-right {
  text-align: right;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

/* mintbuilder.com watermark */
.mb-banner .mb-logo {
  position: absolute;
  bottom: 5px;
  right: 7px;
  font-size: 0.5rem;
  color: rgba(255,255,255,0.28);
  font-family: sans-serif;
  letter-spacing: 0.3px;
  pointer-events: none;
  z-index: 3;
}

/* ── CTA button ───────────────────────────────────────────── */
.mb-banner .mb-cta {
  border: none;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.3px;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: 'Segoe UI', system-ui, sans-serif;
  position: relative;
  z-index: 3;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  outline: none;
}
.mb-banner .mb-cta:hover {
  transform: scale(1.06) translateY(-1px);
  filter: brightness(1.12);
}
.mb-banner .mb-cta:active {
  transform: scale(0.97);
}
.mb-cta-gold {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #000;
  box-shadow: 0 3px 12px rgba(255,165,0,0.40);
}
.mb-cta-gold:hover {
  box-shadow: 0 5px 20px rgba(255,165,0,0.60);
}
.mb-cta-silver {
  background: linear-gradient(135deg, #D8D8D8 0%, #909090 100%);
  color: #111;
  box-shadow: 0 3px 12px rgba(150,150,150,0.35);
}
.mb-cta-silver:hover {
  box-shadow: 0 5px 20px rgba(150,150,150,0.55);
}
.mb-cta-copper {
  background: linear-gradient(135deg, #d4874a 0%, #9a4520 100%);
  color: #fff;
  box-shadow: 0 3px 12px rgba(180,80,20,0.40);
}
.mb-cta-copper:hover {
  box-shadow: 0 5px 20px rgba(180,80,20,0.60);
}
.mb-cta-blue {
  background: linear-gradient(135deg, #42a5f5 0%, #0055cc 100%);
  color: #fff;
  box-shadow: 0 3px 12px rgba(30,130,255,0.40);
}
.mb-cta-blue:hover {
  box-shadow: 0 5px 20px rgba(30,130,255,0.60);
}

/* ── Priority ribbon ──────────────────────────────────────── */
.mb-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  font-size: 0.50rem;
  font-weight: 900;
  padding: 3px 10px 3px 6px;
  border-bottom-right-radius: 7px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  z-index: 10;
  font-family: 'Segoe UI', sans-serif;
  animation: mb-ribbon-pulse 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes mb-ribbon-pulse {
  0%, 100% { box-shadow: 0 2px 8px  rgba(255,165,0,0.30); }
  50%       { box-shadow: 0 4px 16px rgba(255,165,0,0.65); }
}

/* ── Progress bar ─────────────────────────────────────────── */
.mb-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  border-radius: 0 2px 0 0;
  z-index: 20;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* ── Navigation dots ──────────────────────────────────────── */
.mb-ad-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 8px;
  padding: 2px 0;
}
.mb-ad-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2a2a2a;
  border: 1px solid #444;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.2s, border-color 0.3s;
  outline: none;
}
.mb-ad-dot:hover {
  background: #666;
  border-color: #888;
  transform: scale(1.2);
}
.mb-ad-dot.on {
  background: #FFD700;
  border-color: #FFD700;
  transform: scale(1.35);
  box-shadow: 0 0 6px rgba(255,215,0,0.5);
}

/* ── Ad label ─────────────────────────────────────────────── */
.mb-ad-label {
  font-size: 0.52rem;
  color: #555;
  text-align: right;
  margin-top: 3px;
  letter-spacing: 0.4px;
  font-family: sans-serif;
  user-select: none;
}

/* ══════════════════════════════════════════
   SIZE-SPECIFIC LAYOUTS
   ══════════════════════════════════════════ */

/* ── 728 × 90 ── */
.mb-ad-728 .mb-ad-slide  { padding: 0 14px; gap: 13px; justify-content: space-between; }
.mb-ad-728 .mb-coin-wrap img { width: 72px; height: 72px; }
.mb-ad-728 .mb-title     { font-size: 1.00rem; }
.mb-ad-728 .mb-sub       { font-size: 0.68rem; }
.mb-ad-728 .mb-price     { font-size: 0.86rem; }
.mb-ad-728 .mb-cta       { padding: 9px 20px; border-radius: 22px; font-size: 0.78rem; }

/* ── 300 × 250 ── */
.mb-ad-300 .mb-ad-slide  {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  text-align: center;
  gap: 2px;
}
.mb-ad-300 .mb-coin-wrap img { width: 110px; height: 110px; }
.mb-ad-300 .mb-title     { font-size: 1.00rem; font-family: 'Segoe UI', system-ui, sans-serif; }
.mb-ad-300 .mb-sub       { font-size: 0.70rem; color: rgba(255,255,255,0.60); font-family: 'Segoe UI', system-ui, sans-serif; }
.mb-ad-300 .mb-price     { font-size: 0.92rem; display: block; }
.mb-ad-300 .mb-price-wrap { margin-top: 2px; }
.mb-ad-300 .mb-cta       { padding: 10px 28px; border-radius: 25px; font-size: 0.84rem; }

/* ── 468 × 60 ── */
.mb-ad-468 .mb-ad-slide  { padding: 0 12px; gap: 10px; justify-content: space-between; }
.mb-ad-468 .mb-coin-wrap img { width: 48px; height: 48px; }
.mb-ad-468 .mb-title     { font-size: 0.86rem; }
.mb-ad-468 .mb-sub       { font-size: 0.63rem; }
.mb-ad-468 .mb-price     { font-size: 0.74rem; display: block; }
.mb-ad-468 .mb-price-wrap { margin-bottom: 3px; }
.mb-ad-468 .mb-cta       { padding: 6px 13px; border-radius: 15px; font-size: 0.70rem; }

/* ── 320 × 50 ── */
.mb-ad-320 .mb-ad-slide  { padding: 0 10px; gap: 8px; justify-content: space-between; }
.mb-ad-320 .mb-coin-wrap img { width: 38px; height: 38px; }
.mb-ad-320 .mb-title     { font-size: 0.72rem; }
.mb-ad-320 .mb-sub       { font-size: 0.57rem; }
.mb-ad-320 .mb-price     { font-size: 0.57rem; }
.mb-ad-320 .mb-cta       { padding: 5px 10px; border-radius: 12px; font-size: 0.62rem; }

/* ══════════════════════════════════════════
   RESPONSIVE OVERRIDES  (mobile ≤ 480px)
   ══════════════════════════════════════════ */
@media (max-width: 480px) {
  .mb-ad-728,
  .mb-ad-468 {
    width: 100%;
    height: auto;
    min-height: 60px;
  }
  .mb-ad-728 .mb-ad-slide,
  .mb-ad-468 .mb-ad-slide {
    padding: 8px 10px;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .mb-ad-728 .mb-coin-wrap img { width: 50px; height: 50px; }
  .mb-ad-728 .mb-title  { font-size: 0.82rem; }
  .mb-ad-728 .mb-sub    { display: none; }
  .mb-ad-728 .mb-cta    { padding: 7px 12px; font-size: 0.70rem; }
}