/* ============================================================
   SOCIAL MEDIA MARKETING PAGE — SMM-specific parts. Builds on
   ai-agent-modern.css, qa-modern.css, digital-marketing-modern.css,
   seo-modern.css and ppc-modern.css (AI pipeline).
   ============================================================ */

.smm-hero h1 {
  max-width: 640px;
}

/* Section-matched social media imagery */
.smm-page .smm-post-media img,
.smm-page .dm-about-media img,
.smm-page .ppc-ai-media img,
.smm-page .qa-panel-img {
  display: block;
  width: 100%;
  aspect-ratio: 10 / 7;
  object-fit: cover;
  object-position: center;
}
.smm-page .dm-about-media,
.smm-page .ppc-ai-media {
  align-self: center;
}
@media (max-width: 900px) {
  .smm-page .dm-about-media,
  .smm-page .ppc-ai-media {
    width: min(100%, 680px);
    justify-self: center;
  }
}

/* ── Platform badges ─────────────────────────────────── */
.smm-badge {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #fff;
  font: 800 14px/1 var(--font-primary, sans-serif);
  letter-spacing: -0.02em;
  box-shadow: 0 10px 22px -10px rgba(15, 23, 42, 0.5);
}
.smm-badge--ig {
  background: linear-gradient(135deg, #f59e0b, #ec4899 50%, #8b5cf6);
}
.smm-badge--fb {
  background: #1877f2;
  font-size: 20px;
}
.smm-badge--in {
  background: #0a66c2;
}
.smm-badge--yt {
  background: #ef4444;
  font-size: 13px;
}
.smm-badge--other {
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  font-size: 20px;
}

/* ── Hero visual: sample post + orbiting platforms ──── */
.smm-visual {
  position: relative;
  width: min(100%, 460px);
  justify-self: center;
  padding: 28px 34px 70px;
}
.smm-post {
  position: relative;
  z-index: 1;
  padding: 14px;
  border: 1px solid var(--ag-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 40px 80px -30px rgba(79, 70, 229, 0.45);
}
.smm-post-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.smm-post-top strong {
  display: block;
  color: var(--ag-ink);
  font-size: 14px;
}
.smm-post-top small {
  color: var(--ag-muted);
  font-size: 11.5px;
}
.smm-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a78bfa);
  box-shadow: 0 0 0 2px #ec4899;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.smm-post-media {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}
.smm-post-media img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.smm-reel {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}
.smm-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  color: #fff;
  fill: #ec4899;
  filter: drop-shadow(0 8px 18px rgba(236, 72, 153, 0.55));
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
}
.ec-motion .smm-visual.is-in .smm-burst {
  animation: smmBurst 4.8s ease-in-out 1.2s infinite;
}
.smm-post-actions {
  display: flex;
  gap: 14px;
  padding: 12px 4px 6px;
  color: var(--ag-ink);
}
.smm-save {
  margin-left: auto;
}
.ec-motion .smm-visual.is-in .smm-like {
  animation: smmLike 4.8s ease-in-out 1.2s infinite;
}
.smm-caption {
  margin: 0 4px !important;
  color: var(--ag-muted);
  font-size: 13px;
  line-height: 1.5;
}
.smm-caption b {
  color: var(--ag-ink);
}

.smm-orbit {
  position: absolute;
  z-index: 2;
  animation: smmFloat 6s ease-in-out infinite;
}
.smm-orbit .smm-badge {
  width: 46px;
  height: 46px;
  border: 3px solid #fff;
  border-radius: 15px;
}
.smm-orbit--ig {
  top: 6px;
  left: 0;
}
.smm-orbit--fb {
  top: 34%;
  right: 0;
  animation-delay: -1.5s;
}
.smm-orbit--in {
  bottom: 120px;
  left: -4px;
  animation-delay: -3s;
}
.smm-orbit--yt {
  top: 0;
  right: 22%;
  animation-delay: -4.5s;
}
.smm-float--engage {
  right: 0;
  bottom: 6px;
  z-index: 3;
  align-items: center;
  animation-delay: -2s;
}
.smm-float--engage > svg {
  padding: 6px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #fce7f3;
  color: #db2777;
}
.smm-float--engage strong {
  display: block;
  font-size: 13.5px;
}
.smm-float--engage small {
  color: var(--ag-muted);
  font-size: 11.5px;
  font-weight: 500;
}

@keyframes smmFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes smmBurst {
  0%,
  8% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
  }
  14% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
  }
  22% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  32%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.3);
  }
}
@keyframes smmLike {
  0%,
  10% {
    color: var(--ag-ink);
    fill: none;
    transform: scale(1);
  }
  14% {
    color: #ec4899;
    fill: #ec4899;
    transform: scale(1.3);
  }
  20%,
  80% {
    color: #ec4899;
    fill: #ec4899;
    transform: scale(1);
  }
  90%,
  100% {
    color: var(--ag-ink);
    fill: none;
  }
}

/* ── Consultation platforms list ─────────────────────── */
.smm-consult-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px !important;
  padding: 0 !important;
  list-style: none;
}
.smm-consult-platforms li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 600;
}
.smm-consult-platforms .smm-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 12px;
}

/* ── Platform strategy cards ─────────────────────────── */
.smm-platforms {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.smm-platform {
  position: relative;
  overflow: hidden;
  padding: 24px 22px;
  border: 1px solid var(--ag-line);
  border-radius: 22px;
  background: #fff;
  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    transform 0.3s;
}
.smm-platform::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--smm-c, #6366f1);
}
.smm-platform:hover {
  border-color: #c7cdfb;
  box-shadow: var(--ag-shadow);
  transform: translateY(-6px);
}
.smm-platform h3 {
  margin-top: 16px !important;
  color: var(--ag-ink);
  font-size: 17.5px;
}
.smm-platform p {
  margin-top: 8px !important;
  color: var(--ag-muted);
  font-size: 14px;
  line-height: 1.6;
}
.smm-platform--ig {
  --smm-c: linear-gradient(90deg, #f59e0b, #ec4899, #8b5cf6);
}
.smm-platform--fb {
  --smm-c: #1877f2;
}
.smm-platform--in {
  --smm-c: #0a66c2;
}
.smm-platform--yt {
  --smm-c: #ef4444;
}
.smm-platform--other {
  --smm-c: linear-gradient(90deg, #6366f1, #22d3ee);
  border-style: dashed;
  background: linear-gradient(135deg, #f5f3ff, #eef2ff);
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1100px) {
  .smm-platforms {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .smm-platforms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .smm-visual {
    padding: 26px 16px 92px;
  }
  .smm-orbit .smm-badge {
    width: 38px;
    height: 38px;
  }
  .smm-orbit--in {
    bottom: 140px;
    left: 0;
  }
  .smm-float--engage {
    right: 8px;
    bottom: 10px;
  }
}
@media (max-width: 480px) {
  .smm-platforms {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .smm-orbit,
  .smm-burst,
  .smm-like {
    animation: none !important;
  }
}
