/* ==========================================================================
   AfterHer kampanyası — assets/css/afterher.css
   Marka: violet #8B5CF6 → pink #EC4899, koyu erik zemin #1A1517 / #150d1e.
   Sektör temasından BAĞIMSIZ (her sitede aynı, tanınabilir marka).
   ========================================================================== */
.ah-unit {
  --ah-violet: #8b5cf6;
  --ah-pink: #ec4899;
  --ah-rose: #ffd7ec;
  --ah-bg: #170e22;
  --ah-bg2: #2a1140;
  --ah-text: #fbf7fc;
  --ah-muted: rgba(251, 247, 252, .74);
  position: relative;
  color: var(--ah-text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  isolation: isolate;
}
.ah-unit *, .ah-unit *::before, .ah-unit *::after { box-sizing: border-box; }
.ah-unit a { color: inherit; text-decoration: none; }
.ah-unit a:hover { text-decoration: none; }
.ah-logo { flex: 0 0 auto; border-radius: 6px; }

/* parlak arka plan ışımaları */
.ah-glow {
  position: absolute; z-index: 0; pointer-events: none; border-radius: 50%;
  filter: blur(42px); opacity: .55;
}
.ah-glow-1 { width: 320px; height: 320px; left: -90px; top: -120px; background: var(--ah-violet); }
.ah-glow-2 { width: 300px; height: 300px; right: -80px; bottom: -140px; background: var(--ah-pink); opacity: .45; }

/* etiketler: Reklam · 18+ */
.ah-tags {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  display: flex; gap: 6px;
}
.ah-tag {
  font-size: .68rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .8);
  border: 1px solid rgba(255, 255, 255, .14);
}
.ah-tag-age { background: rgba(236, 72, 153, .22); border-color: rgba(236, 72, 153, .45); color: #ffd7ec; }

/* kicker: logo + AfterHer · AI companions */
.ah-kicker {
  display: flex; align-items: center; gap: 8px;
  font-size: .86rem; color: var(--ah-muted); margin-bottom: 10px;
}
.ah-kicker strong { color: #fff; font-weight: 700; letter-spacing: -.01em; }

/* avatar yığını */
.ah-avatars { position: relative; display: inline-flex; align-items: center; }
.ah-avatars img {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--ah-bg); box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  margin-left: -18px; background: #2a1140;
}
.ah-avatars img:first-child { margin-left: 0; }
.ah-avatars img:nth-child(2) { z-index: 1; }
.ah-avatars img:nth-child(3) { z-index: 2; }
.ah-online {
  position: absolute; right: -2px; bottom: 4px; z-index: 4;
  width: 14px; height: 14px; border-radius: 50%;
  background: #22c55e; border: 3px solid var(--ah-bg);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .6);
  animation: ah-pulse 2.2s ease-out infinite;
}
@keyframes ah-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* mesaj balonu */
.ah-bubble {
  position: relative; margin-top: 16px; max-width: 290px;
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-radius: 16px 16px 16px 4px; padding: 10px 14px;
  font-size: .86rem; line-height: 1.45; color: rgba(255, 255, 255, .9);
}
.ah-bubble-dots { display: inline-flex; gap: 3px; margin-right: 8px; vertical-align: middle; }
.ah-bubble-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--ah-rose); opacity: .5; animation: ah-dot 1.3s infinite; }
.ah-bubble-dots i:nth-child(2) { animation-delay: .2s; }
.ah-bubble-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes ah-dot { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }

/* başlık / metin */
.ah-title {
  margin: 0 0 8px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  background: linear-gradient(90deg, #fff 0%, #ffd7ec 60%, #e9d5ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ah-text { margin: 0 0 16px; font-size: .97rem; line-height: 1.55; color: var(--ah-muted); max-width: 52ch; }

/* CTA */
.ah-cta {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .98rem; line-height: 1;
  padding: 14px 22px; border-radius: 12px; color: #fff !important;
  background: linear-gradient(135deg, var(--ah-violet), var(--ah-pink));
  box-shadow: 0 8px 24px rgba(236, 72, 153, .35), inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  white-space: nowrap;
}
.ah-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(236, 72, 153, .45), inset 0 1px 0 rgba(255, 255, 255, .22); filter: brightness(1.06); }
.ah-cta:active { transform: translateY(0); }
.ah-cta svg { transition: transform .15s ease; }
.ah-cta:hover svg { transform: translateX(3px); }
.ah-cta-sm { padding: 10px 16px; font-size: .88rem; border-radius: 10px; }
/* kartın tamamı tıklanabilir (afterher.js aktif CTA'yı tetikler) */
.ah-banner, .ah-side { cursor: pointer; }

/* bullets */
.ah-bullets {
  list-style: none; margin: 16px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .84rem; color: rgba(255, 255, 255, .82);
}
.ah-bullets li { display: inline-flex; align-items: center; gap: 6px; }
.ah-bullets svg { color: #4ade80; flex: 0 0 auto; }
.ah-note { margin: 10px 0 0; font-size: .72rem; color: rgba(255, 255, 255, .5); }

/* varyantlar: JS biri dışındakileri gizler; JS yoksa yalnızca A görünür */
.ah-variant[data-ah-variant="B"] { display: none; }
.ah-unit[data-ah-ready] .ah-variant { display: none; }
.ah-unit[data-ah-ready] .ah-variant.is-on { display: block; }
.ah-bar[data-ah-ready] .ah-variant.is-on { display: inline-flex; }

/* ======================================================= INLINE BANNER */
.ah-banner {
  display: block; overflow: hidden;
  margin: 8px 0 0; padding: 28px 28px 24px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .07) 1px, transparent 1.6px) 0 0 / 22px 22px,
    linear-gradient(135deg, #1a1026 0%, #2a1140 55%, #3b0f3a 100%);
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 18px 50px rgba(26, 16, 38, .35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ah-banner:hover { transform: translateY(-2px); box-shadow: 0 24px 60px rgba(26, 16, 38, .45); }
.ah-banner-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 28px 36px; align-items: center;
}
.ah-visual { display: flex; flex-direction: column; align-items: flex-start; }
.ah-copy { min-width: 0; padding-right: 60px; }
.section .ah-banner { margin: 0; }
.ah-slot { padding: 0 0 32px; }
.ah-slot-inline { padding: 8px 0 36px; }

/* ======================================================= SIDEBAR CARD */
.ah-side {
  overflow: hidden; padding: 20px 20px 18px !important;
  background: linear-gradient(160deg, #1a1026 0%, #2a1140 60%, #3b0f3a 100%) !important;
  border: 1px solid rgba(255, 255, 255, .09) !important;
  color: var(--ah-text) !important;
}
.ah-side .ah-kicker { margin-bottom: 14px; }
.ah-side .ah-avatars img { width: 48px; height: 48px; margin-left: -14px; }
.ah-side .ah-avatars img:first-child { margin-left: 0; }
.ah-side .ah-online { width: 12px; height: 12px; }
.ah-side .ah-title { font-size: 1.2rem; margin-top: 14px; }
.ah-side .ah-text { font-size: .9rem; margin-bottom: 14px; }
.ah-side .ah-cta { width: 100%; justify-content: center; }
.ah-side .ah-tags { top: 14px; right: 14px; }
.ah-side .ah-glow-1 { width: 220px; height: 220px; left: auto; right: -80px; top: -90px; }

/* ======================================================= STICKY BAR */
.ah-bar {
  position: fixed; z-index: 900; left: 50%; bottom: 14px;
  width: min(760px, calc(100% - 24px)); transform: translate(-50%, 130%);
  opacity: 0; transition: transform .45s cubic-bezier(.16, 1, .3, 1), opacity .3s ease;
  border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, rgba(26, 16, 38, .96), rgba(42, 17, 64, .96));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .45);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.ah-bar[hidden] { display: none; }
.ah-bar.is-visible { transform: translate(-50%, 0); opacity: 1; }
.ah-bar.is-hiding { transform: translate(-50%, 130%); opacity: 0; }
.ah-bar-inner { display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 14px; }
.ah-bar .ah-avatars img { width: 40px; height: 40px; margin-left: -12px; border-width: 2px; }
.ah-bar .ah-avatars img:first-child { margin-left: 0; }
.ah-bar .ah-online { width: 11px; height: 11px; border-width: 2px; bottom: 1px; }
.ah-bar-copy { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ah-bar-brand { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; color: rgba(255, 255, 255, .85); white-space: nowrap; }
.ah-bar-brand em { font-style: normal; font-weight: 500; color: rgba(255, 255, 255, .5); }
.ah-bar-brand .ah-logo { border-radius: 4px; }
.ah-bar-text { font-size: .92rem; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ah-close {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .75);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease;
}
.ah-close:hover { background: rgba(255, 255, 255, .16); color: #fff; }

/* ======================================================= RESPONSIVE */
@media (max-width: 900px) {
  .ah-banner { padding: 24px 20px 20px; }
  .ah-banner-inner { grid-template-columns: 1fr; gap: 18px; }
  .ah-copy { padding-right: 0; }
  .ah-tags { top: 10px; right: 10px; }
  .ah-bubble { max-width: 100%; }
}
@media (max-width: 640px) {
  .ah-banner { border-radius: 16px; }
  .ah-cta { width: 100%; justify-content: center; }
  .ah-bar { bottom: 8px; width: calc(100% - 16px); border-radius: 14px; }
  .ah-bar-inner { gap: 10px; padding: 9px 8px 9px 12px; }
  .ah-bar .ah-avatars img:nth-child(2) { display: none; }
  .ah-bar-text { font-size: .84rem; white-space: normal; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ah-bar .ah-cta-sm { padding: 10px 12px; font-size: .82rem; flex: 0 0 auto; width: auto; }
  .ah-bar .ah-close { width: 30px; height: 30px; }
}
/* Firma sayfası: yan panel ana içeriğin altına düştüğünde (≤980px) yan kart
   gizlenir — aksi halde inline kartla art arda iki reklam görünür. */
@media (max-width: 980px) {
  .ah-side { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .ah-online, .ah-bubble-dots i { animation: none; }
  .ah-bar, .ah-banner, .ah-cta { transition: none; }
}
