/* ═══════════════════════════════════════════════════════════════
   Theme Engine v3 — Premium Visual System
   DK Makes • CDN-free CSS foundation for themed slots.
   ═══════════════════════════════════════════════════════════════ */

/* ── Navbar Theme Slot ── */
.dk-header--themed .dk-header-inner {
  background: linear-gradient(
    135deg,
    rgba(var(--theme-rgb, 199,162,99), 0.06),
    rgba(var(--theme-rgb, 199,162,99), 0.02)
  );
  border-bottom-color: rgba(var(--theme-rgb, 199,162,99), 0.10);
}
.dk-header--themed.is-scrolled .dk-header-inner {
  background: rgba(255,255,255, 0.88);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom-color: rgba(var(--theme-rgb, 199,162,99), 0.12);
}
.dk-header--themed .dk-logo-mark {
  background: var(--theme-primary, #C7A263);
  color: var(--theme-badge-text, #fff);
}
.dk-header--themed .dk-logo-img {
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.15));
}

/* ── Hero Theme Slot ─────────────────────────────────────── */
.hero-theme-slot {
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  min-height: 480px;
  display: flex;
  align-items: center;
  padding: 56px;
  background: var(--theme-bg, linear-gradient(135deg, #F9F6F0 0%, #fff 100%));
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 24px 80px rgba(0,0,0,0.06);
}

/* Animated mesh gradient */
.hero-mesh-bg {
  position: absolute;
  inset: -60%;
  width: 220%;
  height: 220%;
  background:
    radial-gradient(ellipse at 20% 50%, var(--theme-mesh-1, rgba(199,162,99,0.12)) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, var(--theme-mesh-2, rgba(28,29,36,0.06)) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, var(--theme-mesh-3, rgba(199,162,99,0.08)) 0%, transparent 50%);
  animation: themeMeshDrift 20s ease-in-out infinite;
  pointer-events: none;
  will-change: transform;
}
@keyframes themeMeshDrift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33%      { transform: translate(3%, -2%) rotate(1deg); }
  66%      { transform: translate(-2%, 3%) rotate(-1deg); }
}

/* tsParticles overlay */
.hero-theme-slot #theme-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* Lottie hero decoration */
.hero-lottie-wrap {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  height: 340px;
  z-index: 3;
  pointer-events: none;
  opacity: 0.65;
}

/* Glass content card inside hero */
.hero-glass-card {
  position: relative;
  z-index: 10;
  max-width: 560px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-radius: 32px;
  padding: 44px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 40px rgba(0,0,0,0.04);
}
.hero-glass-card h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #1C1D24;
  margin: 0 0 16px;
}
.hero-glass-card p {
  font-size: 1.1rem;
  color: #747A8E;
  line-height: 1.6;
  margin: 0 0 28px;
  max-width: 420px;
}

/* Action buttons */
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-theme {
  background: var(--theme-primary, #C7A263);
  color: var(--theme-badge-text, #fff);
  padding: 14px 32px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn-theme:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(var(--theme-rgb, 199,162,99), 0.3);
}

.btn-theme-outline {
  background: transparent;
  color: var(--theme-primary, #1C1D24);
  padding: 14px 32px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s;
  border: 2px solid rgba(var(--theme-rgb, 28,29,36), 0.15);
  cursor: pointer;
}
.btn-theme-outline:hover {
  background: rgba(var(--theme-rgb, 28,29,36), 0.04);
  border-color: rgba(var(--theme-rgb, 28,29,36), 0.3);
}

/* ── Promo Category Slot ─────────────────────────────── */
.promo-category-slot { position: relative; }
.promo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.promo-title {
  font-size: 1.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
}
.promo-accent {
  display: inline-block;
  width: 6px;
  height: 32px;
  border-radius: 3px;
  background: var(--theme-primary, #C7A263);
}

/* Carousel mode for promo */
.promo-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.promo-carousel::-webkit-scrollbar { display: none; }
.promo-carousel > .promo-card {
  min-width: 260px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* Card shared */
.promo-card {
  background: #fff;
  border-radius: 28px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 12px 40px rgba(0,0,0,0.04);
  transition: all 0.3s;
}
.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}
.promo-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 20px;
  overflow: hidden;
  background: #f5f5f7;
  margin-bottom: 14px;
}
.promo-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.promo-card:hover .promo-card-img img {
  transform: scale(1.05);
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-lottie-wrap {
    width: 200px;
    height: 200px;
    right: 2%;
    opacity: 0.4;
  }
}
@media (max-width: 640px) {
  .hero-theme-slot { padding: 32px 24px; min-height: 360px; border-radius: 28px; }
  .hero-glass-card { padding: 28px; border-radius: 24px; }
  .hero-lottie-wrap { display: none; }
}

/* ── Performance: respect reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh-bg { animation: none; }
  .hero-lottie-wrap { display: none; }
}
