/* Gestão de conteúdo — hero: calendário editorial */

[data-leaf="soc"] .soc-stage {
  position: relative;
  width: min(100%, 580px);
  height: 540px;
  overflow: visible;
}

[data-leaf="soc"] .leaf-hero.ambient-ready .soc-desk {
  animation: none;
}

[data-leaf="soc"] .soc-chip {
  transition: border-color .35s var(--ds-ease), color .35s var(--ds-ease), box-shadow .35s var(--ds-ease);
}

.soc-desk {
  background:
    linear-gradient(180deg, #f4f8ff 0 38px, #f7faff 38px);
}

.soc-air {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: visible;
}

.soc-sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.soc-sky path {
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .7;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--trail, var(--ds-accent)) 45%, transparent));
}

.soc-sky path.is-ig { --trail: #e4405f; stroke: #e4405f; }
.soc-sky path.is-li { --trail: #0a66c2; stroke: #0a66c2; }
.soc-sky path.is-tk { --trail: #1a1a1a; stroke: #1a1a1a; }
.soc-sky path.is-fb { --trail: #1877f2; stroke: #1877f2; }

.soc-dock {
  position: absolute;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--ds-hairline);
  border-radius: 50%;
  background: #fffffff5;
  box-shadow: var(--ds-shadow-sm);
}

.soc-dock.is-ig { top: 26%; right: -10px; animation: soc-dock-bob 5.6s ease-in-out infinite; }
.soc-dock.is-li { top: 48%; right: -18px; animation: soc-dock-bob 6.4s ease-in-out infinite .4s; }
.soc-dock.is-tk { top: 70%; right: -8px; animation: soc-dock-bob 7.1s ease-in-out infinite .9s; }
.soc-dock.is-fb { top: 44%; left: -16px; animation: soc-dock-bob 6.8s ease-in-out infinite .2s; }

.soc-dock i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  line-height: 0;
}

.soc-dock iconify-icon,
.soc-dock iconify-icon svg {
  display: block;
  width: 14px;
  height: 14px;
  font-size: 14px;
}

.soc-dock .is-ig { background: #e4405f; }
.soc-dock .is-li { background: #0a66c2; }
.soc-dock .is-tk { background: #111111; }
.soc-dock .is-fb { background: #1877f2; }

.soc-dock.is-hot {
  border-color: color-mix(in srgb, var(--ds-accent) 55%, var(--ds-hairline));
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--ds-accent) 12%, transparent),
    var(--ds-shadow-sm);
}

.soc-dock.is-hot i {
  animation: soc-catch 0.55s cubic-bezier(.16,1,.3,1);
}

.soc-dock::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ds-accent) 35%, transparent);
  opacity: 0;
  transform: scale(.72);
}

.soc-dock.is-hot::after {
  animation: soc-ring 0.7s cubic-bezier(.16,1,.3,1);
}

.soc-dart {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 7;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin: 0;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  line-height: 0;
  filter: drop-shadow(0 10px 14px rgba(8, 22, 56, .28));
  will-change: transform;
}

.soc-dart.is-ig { background: #e4405f; }
.soc-dart.is-li { background: #0a66c2; }
.soc-dart.is-tk { background: #111111; }
.soc-dart.is-fb { background: #1877f2; }

.soc-dart iconify-icon,
.soc-dart iconify-icon svg {
  display: block;
  width: 10px;
  height: 10px;
  font-size: 10px;
}

.soc-nets i.is-gone {
  opacity: .22;
  transform: scale(.82);
}

.soc-cal-grid > span.is-on.is-ping::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--ds-accent) 55%, transparent);
  animation: soc-cell-ping 0.9s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
}

.soc-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ds-accent);
}

.soc-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ds-muted);
}

.soc-live.is-on i {
  background: var(--ds-accent);
  animation: live-pulse 1.4s ease-in-out infinite;
}

.soc-chip.is-c.is-flash {
  border-color: color-mix(in srgb, var(--ds-accent) 45%, var(--ds-hairline));
  color: var(--ds-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ds-accent) 12%, transparent);
}

@keyframes soc-dock-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes soc-catch {
  0% { transform: scale(1); }
  38% { transform: scale(1.22); }
  100% { transform: scale(1); }
}

@keyframes soc-ring {
  0% { opacity: .7; transform: scale(.72); }
  100% { opacity: 0; transform: scale(1.35); }
}

@keyframes soc-cell-ping {
  0% { opacity: .8; transform: scale(.96); }
  100% { opacity: 0; transform: scale(1.08); }
}

.soc-body-ui {
  padding: 14px 14px 0;
}

.soc-head-ui { margin: 0 0 10px; }
.soc-head-ui strong { font-size: 18px; }

.soc-work {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.soc-cal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 12px 12px 14px;
  border: 1px solid var(--ds-hairline);
  border-radius: 14px;
  background: #fff;
}

.soc-cal-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 2px 6px;
}

.soc-cal-bar b {
  font-family: var(--ds-font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--ds-ink-soft);
}

.soc-cal-bar em {
  font-family: var(--ds-font-mono);
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ds-accent);
}

.soc-cal-dow,
.soc-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.soc-cal-dow {
  margin: 0;
  padding: 0;
  list-style: none;
}

.soc-cal-dow li {
  font-family: var(--ds-font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ds-muted);
  text-align: center;
}

.soc-cal-grid {
  grid-template-rows: repeat(4, minmax(56px, 1fr));
  flex: 1;
  min-height: 0;
}

.soc-cal-grid > span {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
  min-height: 56px;
  padding: 6px 6px 7px;
  border: 1px solid var(--ds-hairline);
  border-radius: 10px;
  background: #fbfcfe;
  font-family: var(--ds-font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  color: var(--ds-muted);
}

.soc-cal-grid > span.is-post {
  background: #fff;
  color: var(--ds-ink-soft);
  font-weight: 700;
}

.soc-cal-grid > span.is-on {
  border-color: var(--ds-accent);
  background: color-mix(in srgb, var(--ds-accent) 8%, #fff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ds-accent) 14%, transparent);
  color: var(--ds-accent-deep);
}

.soc-nets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  width: 100%;
}

.soc-nets i {
  display: grid;
  place-items: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  line-height: 0;
  transition: opacity .35s var(--ds-ease), transform .35s var(--ds-ease);
}

.soc-nets iconify-icon {
  display: block;
  width: 10px;
  height: 10px;
  font-size: 10px;
  line-height: 0;
  overflow: visible;
}

.soc-nets iconify-icon svg {
  display: block;
  width: 10px;
  height: 10px;
}

.soc-nets .is-ig { background: #e4405f; }
.soc-nets .is-li { background: #0a66c2; }
.soc-nets .is-tk { background: #111111; }
.soc-nets .is-fb { background: #1877f2; }

@media (max-width: 1080px) {
  [data-leaf="soc"] .soc-stage {
    height: 520px;
    width: min(100%, 540px);
  }
  .soc-dock {
    width: 40px;
    height: 40px;
  }
  .soc-dock i { width: 24px; height: 24px; }
  .soc-dock.is-ig { top: 24%; right: 4px; }
  .soc-dock.is-li { top: 46%; right: 2px; }
  .soc-dock.is-tk { top: 68%; right: 6px; }
  .soc-dock.is-fb { top: 42%; left: 4px; }
}

@media (max-width: 720px) {
  [data-leaf="soc"] .soc-stage {
    height: 500px;
    width: min(100%, 100%);
  }

  .soc-cal-grid { grid-template-rows: repeat(4, minmax(48px, 1fr)); }
  .soc-cal-grid > span { min-height: 48px; padding: 5px; }
  .soc-nets i { flex-basis: 16px; width: 16px; height: 16px; }
  .soc-nets iconify-icon,
  .soc-nets iconify-icon svg { width: 9px; height: 9px; font-size: 9px; }

  .soc-dock {
    width: 34px;
    height: 34px;
  }
  .soc-dock i { width: 20px; height: 20px; }
  .soc-dock iconify-icon,
  .soc-dock iconify-icon svg { width: 11px; height: 11px; font-size: 11px; }
  .soc-dock.is-ig { top: 22%; right: 6px; left: auto; }
  .soc-dock.is-li { top: 44%; right: 4px; left: auto; }
  .soc-dock.is-tk { top: 66%; right: 6px; left: auto; }
  .soc-dock.is-fb { top: 42%; left: 4px; right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  [data-leaf="soc"] .soc-desk { animation: none !important; }
  [data-leaf="soc"] .soc-chip { animation: none !important; }
  [data-leaf="soc"] .soc-dock { animation: none !important; }
  [data-leaf="soc"] .soc-dock.is-hot i,
  [data-leaf="soc"] .soc-dock.is-hot::after,
  [data-leaf="soc"] .soc-cal-grid > span.is-on.is-ping::after {
    animation: none !important;
  }
}

[data-leaf="soc"] .soc-channels {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

[data-leaf="soc"] .soc-proto {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1080px) {
  [data-leaf="soc"] .soc-channels {
    grid-template-columns: 1fr;
  }
  [data-leaf="soc"] .soc-proto {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  [data-leaf="soc"] .soc-proto li:nth-child(2)::after,
  [data-leaf="soc"] .soc-proto li:nth-child(4)::after {
    display: none;
  }
  [data-leaf="soc"] .soc-proto li:nth-child(3)::after {
    display: unset;
  }
}

@media (max-width: 720px) {
  [data-leaf="soc"] .soc-channels,
  [data-leaf="soc"] .soc-proto {
    grid-template-columns: 1fr;
  }
}

/* Por Dentro — carrosséis feed / story */
[data-leaf="soc"] .soc-rails {
  display: grid;
  gap: 22px;
  margin: 36px 0 0;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

[data-leaf="soc"] .soc-rail {
  position: relative;
  min-width: 0;
  max-width: 100%;
}

[data-leaf="soc"] .soc-rail-label {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border: 1px solid var(--ds-hairline);
  border-radius: 99px;
  background: #fffffff2;
  box-shadow: var(--ds-shadow-sm);
  font-family: var(--ds-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ds-ink-soft);
  pointer-events: none;
}

[data-leaf="soc"] .soc-rail-viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

[data-leaf="soc"] .soc-rail-track {
  display: flex;
  width: max-content;
  gap: 14px;
  will-change: transform;
}

[data-leaf="soc"] .soc-rail.is-feed .soc-rail-track {
  animation: soc-rail-ltr 55s linear infinite;
}

[data-leaf="soc"] .soc-rail.is-story .soc-rail-track {
  animation: soc-rail-rtl 48s linear infinite;
}

[data-leaf="soc"] .soc-rail:hover .soc-rail-track {
  animation-play-state: paused;
}

[data-leaf="soc"] .soc-rail-track figure {
  margin: 0;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--ds-hairline);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--ds-shadow-sm);
}

[data-leaf="soc"] .soc-rail.is-feed figure {
  width: 220px;
  aspect-ratio: 1;
}

[data-leaf="soc"] .soc-rail.is-story figure {
  width: 148px;
  aspect-ratio: 9 / 16;
}

[data-leaf="soc"] .soc-rail-track img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@keyframes soc-rail-ltr {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

@keyframes soc-rail-rtl {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 720px) {
  [data-leaf="soc"] .soc-rails { gap: 16px; margin-bottom: 28px; }
  [data-leaf="soc"] .soc-rail-track { gap: 10px; }
  [data-leaf="soc"] .soc-rail.is-feed figure { width: 168px; border-radius: 14px; }
  [data-leaf="soc"] .soc-rail.is-story figure { width: 112px; border-radius: 14px; }
  [data-leaf="soc"] .soc-rail-label { left: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  [data-leaf="soc"] .soc-rail-track {
    animation: none !important;
    transform: none !important;
  }
  [data-leaf="soc"] .soc-rail-viewport {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
}

