/*
 * premium-ads.css
 * ════════════════════════════════════════════════════════════════════
 * Stratégie "Premium Subtle" — refonte visuelle des 3 tiers ads
 * (Gold / Silver / Copper) :
 *   - Bordure 1px subtile + halo coloré tier (alpha 8-12%)
 *   - Ruban triangulaire plié en coin haut-droit (CSS only, pas d'image)
 *   - Hover lift (translateY -3px) + intensification du halo
 *   - Image dominante avec dégradé latéral pour transition fluide
 *   - Mobile-only inline copper card (le sticky lateral est invisible <1280px)
 * Aucune touche au code marketplace : ce fichier est uniquement consommé
 * par les classes appliquées dans GoldAdSlot, SilverAdSlot, StickyAds,
 * AdTemplatePreview.
 * ════════════════════════════════════════════════════════════════════ */

/* ─── Wrapper commun — tous les tiers ─── */
.sf-ad-premium {
  position: relative;
  border-radius: 16px;
  overflow: visible !important;
  isolation: isolate;
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
  background-clip: padding-box;
}

.sf-ad-premium:hover {
  transform: translateY(-3px);
}

.sf-ad-premium > * {
  border-radius: 16px;
}

/* Ruban triangulaire en coin haut-droit (CSS pur — pas d'image) */
.sf-ad-ribbon {
  position: absolute;
  top: 14px;
  right: -6px;
  z-index: 5;
  padding: 4px 14px 4px 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 3px 0 0 3px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  /* Triangle de "pliure" en bas-droit du ruban */
  pointer-events: none;
}
.sf-ad-ribbon::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -6px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 6px 0 0;
  border-color: rgba(0, 0, 0, 0.35) transparent transparent transparent;
}

/* ─── GOLD ─── */
.sf-ad-premium-gold {
  border: 1.5px solid transparent !important;
  background-image:
    linear-gradient(#ffffff, #ffffff),
    linear-gradient(135deg, #fbbf24 0%, #d4a017 50%, #f59e0b 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow:
    0 1px 2px rgba(212, 160, 23, 0.06),
    0 8px 24px rgba(212, 160, 23, 0.10),
    0 0 0 1px rgba(212, 160, 23, 0.05);
}
.sf-ad-premium-gold:hover {
  box-shadow:
    0 1px 2px rgba(212, 160, 23, 0.12),
    0 16px 40px rgba(212, 160, 23, 0.20),
    0 0 0 1px rgba(212, 160, 23, 0.10);
}
.sf-ad-ribbon-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
}
.sf-ad-cta-gold {
  background: linear-gradient(135deg, #d97706, #b45309) !important;
  background-color: #d97706 !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.30) !important;
  transition: transform 200ms, box-shadow 200ms !important;
}
.sf-ad-cta-gold:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.45) !important;
}

/* ─── SILVER ─── */
.sf-ad-premium-silver {
  border: 1.5px solid transparent !important;
  background-image:
    linear-gradient(#ffffff, #ffffff),
    linear-gradient(135deg, #cbd5e1 0%, #94a3b8 50%, #64748b 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow:
    0 1px 2px rgba(100, 116, 139, 0.05),
    0 6px 18px rgba(100, 116, 139, 0.10);
}
.sf-ad-premium-silver:hover {
  box-shadow:
    0 1px 2px rgba(100, 116, 139, 0.10),
    0 12px 32px rgba(100, 116, 139, 0.18);
}
.sf-ad-ribbon-silver {
  background: linear-gradient(135deg, #94a3b8 0%, #475569 100%);
}
.sf-ad-cta-silver {
  background: linear-gradient(135deg, #475569, #334155) !important;
  background-color: #475569 !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(71, 85, 105, 0.30) !important;
}
.sf-ad-cta-silver:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(71, 85, 105, 0.45) !important;
}

/* ─── COPPER ─── */
.sf-ad-premium-copper {
  border: 1.5px solid transparent !important;
  background-image:
    linear-gradient(#ffffff, #ffffff),
    linear-gradient(135deg, #fb923c 0%, #ea580c 50%, #b45309 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow:
    0 1px 2px rgba(180, 83, 9, 0.05),
    0 4px 14px rgba(180, 83, 9, 0.10);
}
.sf-ad-premium-copper:hover {
  box-shadow:
    0 1px 2px rgba(180, 83, 9, 0.10),
    0 10px 28px rgba(180, 83, 9, 0.20);
}
.sf-ad-ribbon-copper {
  background: linear-gradient(135deg, #fb923c 0%, #c2410c 100%);
}
.sf-ad-cta-copper {
  background: linear-gradient(135deg, #ea580c, #b45309) !important;
  background-color: #ea580c !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.30) !important;
}
.sf-ad-cta-copper:hover {
  transform: scale(1.03);
}

/* ─── COPPER mobile inline (visible quand sticky latéral est masqué) ─── */
.sf-ad-mobile-copper-wrapper {
  display: none; /* default desktop */
}
@media (max-width: 1279px) {
  .sf-ad-mobile-copper-wrapper {
    display: block;
    margin: 16px auto;
    max-width: 480px;
    padding: 0 12px;
  }
}

/* Sur mobile, le ruban doit rester visible mais un peu plus petit */
@media (max-width: 640px) {
  .sf-ad-ribbon {
    font-size: 9px;
    padding: 3px 10px 3px 8px;
    top: 12px;
  }
}

/* Pulse très douce sur Gold uniquement (premium feel) */
@keyframes sf-gold-pulse {
  0%, 100% {
    box-shadow:
      0 1px 2px rgba(212, 160, 23, 0.06),
      0 8px 24px rgba(212, 160, 23, 0.10);
  }
  50% {
    box-shadow:
      0 1px 2px rgba(212, 160, 23, 0.10),
      0 12px 32px rgba(212, 160, 23, 0.18);
  }
}
.sf-ad-premium-gold:not(:hover) {
  animation: sf-gold-pulse 4.5s ease-in-out infinite;
}

/* Respecte les préférences réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
  .sf-ad-premium-gold:not(:hover),
  .sf-ad-premium { animation: none !important; transition: none !important; }
}
