/* ============================================================
   DRIPPING SECRETS — ADLS (Adaptive Dynamic Logo System)
   Styling for context-aware brand image slots
   v16.3
   ============================================================ */

/* ── Core ADLS image ───────────────────────────────────────── */
.adls-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

[data-adls] {
  overflow: hidden;
}

[data-adls].adls-loaded {
  animation: adlsFadeIn 0.6s ease both;
}

@keyframes adlsFadeIn {
  from { opacity: 0; transform: scale(1.02); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Hero poster (index.html) ──────────────────────────────── */
.hp-hero-poster [data-adls],
.hp-hero-poster img[data-adls] {
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(124,58,237,0.45), 0 0 0 1px rgba(168,85,247,0.15);
  animation: posterFloat 6s ease-in-out infinite, adlsFadeIn 0.8s ease both;
}

/* ── ADLS Section Panel ────────────────────────────────────── */
.adls-panel {
  display: flex;
  align-items: center;
  gap: 28px;
  background: linear-gradient(135deg, rgba(75,31,95,0.07) 0%, rgba(183,110,121,0.05) 100%);
  border: 1px solid rgba(183,110,121,0.18);
  border-radius: 18px;
  padding: 24px;
  margin: 0 0 32px;
  overflow: hidden;
}

.adls-panel-img {
  flex: 0 0 160px;
  width: 160px;
  height: 160px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(75,31,95,0.25);
  flex-shrink: 0;
}

.adls-panel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.adls-panel-text {
  flex: 1;
  min-width: 0;
}

.adls-panel-label {
  display: inline-block;
  background: linear-gradient(90deg, #4B1F5F, #B76E79);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.adls-panel-title {
  font-size: 20px;
  font-weight: 700;
  color: #4B1F5F;
  margin: 0 0 6px;
  line-height: 1.25;
}

.adls-panel-sub {
  font-size: 14px;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

/* ── Full-width ADLS banner (hero replacement variant) ──────── */
.adls-hero-banner {
  position: relative;
  width: 100%;
  max-height: 460px;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 32px;
  box-shadow: 0 20px 60px rgba(75,31,95,0.2);
}

.adls-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.adls-hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(75,31,95,0.65) 0%, transparent 60%);
  display: flex;
  align-items: center;
  padding: 40px 48px;
}

.adls-hero-banner-text h2 {
  color: #fff;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800;
  margin: 0 0 8px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.adls-hero-banner-text p {
  color: rgba(255,255,255,0.88);
  font-size: 15px;
  margin: 0;
  max-width: 360px;
}

/* ── Sidebar / compact variant ──────────────────────────────── */
.adls-sidebar {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(75,31,95,0.18);
  margin-bottom: 24px;
}

.adls-sidebar [data-adls] {
  width: 100%;
  height: 220px;
}

.adls-sidebar .adls-img {
  object-position: center top;
}

/* ── Academy seal variant ───────────────────────────────────── */
.adls-seal {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}

.adls-seal [data-adls] {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  box-shadow: 0 4px 24px rgba(75,31,95,0.25), 0 0 0 3px rgba(183,110,121,0.3);
  overflow: hidden;
  flex-shrink: 0;
}

.adls-seal .adls-img {
  object-fit: contain;
  object-position: center;
  background: #fff;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .adls-panel {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
  }

  .adls-panel-img {
    width: 100%;
    height: 180px;
    flex: unset;
  }

  .adls-hero-banner {
    max-height: 280px;
    border-radius: 14px;
  }

  .adls-hero-banner-overlay {
    padding: 20px 20px;
    background: linear-gradient(to top, rgba(75,31,95,0.7) 0%, transparent 70%);
    align-items: flex-end;
  }
}
