/* ============================================================
   FloofenKompfen — shared social button + full-screen popup
   (self-contained; reads host page theme tokens with fallbacks)
   ============================================================ */

/* ---------- Floating social button ---------- */
.social-fab {
  position: fixed;
  right: 1.5rem; bottom: 1.5rem;
  z-index: 130;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: none;
  background: var(--accent, #f5b80e);
  color: var(--accent-contrast, #1a1206);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.social-fab:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); }
.social-fab:active { transform: translateY(-1px) scale(1.02); }
.social-fab svg { width: 24px; height: 24px; }
.social-fab::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  animation: fab-pulse 2.8s ease-out infinite;
  pointer-events: none;
}
@keyframes fab-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35); }
  70%  { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* ---------- Full-screen popup ---------- */
.social-modal {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  padding: 1.2rem;
  background: rgba(6, 6, 10, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s;
}
.social-modal.open { opacity: 1; visibility: visible; pointer-events: auto; }

.social-card {
  position: relative;
  width: min(92vw, 30rem);
  padding: 2.6rem 2rem 2.2rem;
  border-radius: 28px;
  text-align: center;
  color: var(--text, #f4f2ee);
  background: var(--bg-elev, #16151e);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.12));
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transform: scale(0.85) translateY(24px) rotate(-1.5deg);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.25, 1.35), opacity 0.35s ease;
}
.social-modal.open .social-card { transform: scale(1) translateY(0) rotate(0); opacity: 1; }
/* ambient glow inside the card */
.social-card::before {
  content: ""; position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 120%; height: 70%;
  background: radial-gradient(ellipse, var(--glow, rgba(245,184,14,0.18)), transparent 70%);
  pointer-events: none;
}

.social-close {
  position: absolute; top: 0.9rem; right: 0.9rem;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line, rgba(255,255,255,0.14));
  background: none; color: var(--text, #f4f2ee);
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  z-index: 2;
}
.social-close svg { width: 18px; height: 18px; }
.social-close:hover { transform: rotate(90deg); border-color: var(--accent, #f5b80e); color: var(--accent, #f5b80e); }

.social-eyebrow {
  position: relative;
  font-family: "Space Mono", monospace;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent, #f5b80e);
  margin: 0 0 0.7rem;
}
.social-title {
  position: relative;
  font-family: "Unbounded", sans-serif; font-weight: 800;
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  line-height: 1.1; margin: 0 0 0.6rem;
}
.social-sub {
  position: relative;
  color: var(--text-muted, #9a97a6);
  font-size: 0.9rem; margin: 0 auto 1.6rem; max-width: 24rem;
}

/* Instagram button — brand gradient + camera */
.ig-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.85rem;
  padding: 0.85rem 1.3rem;
  border-radius: 18px;
  text-decoration: none; color: #fff;
  background: linear-gradient(45deg, #feda75 0%, #fa7e1e 25%, #d62976 55%, #962fbf 80%, #4f5bd5 100%);
  background-size: 200% 200%;
  box-shadow: 0 12px 34px rgba(214, 41, 118, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-position 0.6s ease;
}
.ig-btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 44px rgba(214, 41, 118, 0.6); background-position: 100% 100%; }
.ig-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,0.18); }
.ig-ico svg { width: 22px; height: 22px; }
.ig-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.ig-text b { font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 0.92rem; }
.ig-text small { font-family: "Space Mono", monospace; font-size: 0.72rem; opacity: 0.9; }
.ig-arrow { margin-left: 0.4rem; font-size: 1rem; opacity: 0.9; transition: transform 0.2s ease; }
.ig-btn:hover .ig-arrow { transform: translate(2px, -2px); }

.social-note {
  position: relative;
  margin: 1.6rem 0 0;
  font-family: "Space Mono", monospace; font-size: 0.68rem;
  color: var(--text-muted, #9a97a6);
}

/* staggered entrance of card contents */
.social-eyebrow, .social-title, .social-sub, .ig-btn, .social-note {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.2, 0.9, 0.25, 1.25);
}
.social-modal.open .social-eyebrow { opacity: 1; transform: none; transition-delay: 0.12s; }
.social-modal.open .social-title   { opacity: 1; transform: none; transition-delay: 0.18s; }
.social-modal.open .social-sub     { opacity: 1; transform: none; transition-delay: 0.24s; }
.social-modal.open .ig-btn         { opacity: 1; transform: none; transition-delay: 0.30s; }
.social-modal.open .social-note    { opacity: 1; transform: none; transition-delay: 0.38s; }
/* keep the hover-lift working after entrance */
.social-modal.open .ig-btn:hover { transform: translateY(-3px) scale(1.02); }

@media (prefers-reduced-motion: reduce) {
  .social-fab::after { animation: none; }
  .social-card, .social-eyebrow, .social-title, .social-sub, .ig-btn, .social-note { transition: opacity 0.2s ease; transform: none !important; }
}
