/* -------------------------------------------------------
   Wild Moments Frontend, premium layout
   Tudo escopado em .wm-scope para evitar conflitos
-------------------------------------------------------- */

:root {
  --wm-bg: #0b0b0d;
  --wm-card: rgba(255, 255, 255, 0.06);
  --wm-card-2: rgba(255, 255, 255, 0.04);
  --wm-border: rgba(255, 255, 255, 0.10);
  --wm-text: rgba(255, 255, 255, 0.92);
  --wm-muted: rgba(255, 255, 255, 0.68);
  --wm-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);

  --wm-radius: 22px;
  --wm-radius-sm: 14px;

  --wm-btn-radius: 10%;
  --wm-btn-radius-safe: clamp(12px, 2.4vw, 18px);

  --wm-pad: 16px;
  --wm-pad-lg: 22px;

  --wm-accent: #005cff;
  --wm-accent-2: #0b0b0d;
  --wm-on-accent: #ffffff;

  --wm-sticky-h: 96px;
}

/* -------------------------------------------------------
   Wrapper
-------------------------------------------------------- */

.wm-scope {
  color: inherit;
}

/* Containers */
.wm-scope .wm-moment,
.wm-scope .wm-ctas,
.wm-scope .wm-share {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

/* -------------------------------------------------------
   Imagem
-------------------------------------------------------- */

.wm-scope .wm-moment {
  padding: 14px 14px 0 14px;
}

.wm-scope .wm-moment img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--wm-radius) !important;
  box-shadow: var(--wm-shadow);
  border: 1px solid var(--wm-border);
  background: var(--wm-card);
}

/* -------------------------------------------------------
   Cards
-------------------------------------------------------- */

.wm-scope .wm-ctas,
.wm-scope .wm-share {
  padding: var(--wm-pad-lg);
  margin-top: 14px;
  border-radius: var(--wm-radius) !important;
  background: linear-gradient(180deg, var(--wm-card), var(--wm-card-2));
  border: 1px solid var(--wm-border);
  box-shadow: 0 14px 48px rgba(0,0,0,0.35);
}

/* -------------------------------------------------------
   Brand
-------------------------------------------------------- */

.wm-scope .wm-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  grid-column: 1 / -1;
  width: 100%;
}

.wm-scope .wm-brand a {
  text-decoration: none;
}

.wm-scope .wm-brand img {
  height: 38px;
  max-width: 140px;
  padding: 6px;
  border-radius: 12px !important;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  display: block;
}

/* -------------------------------------------------------
   Layout CTAs e Share
-------------------------------------------------------- */

.wm-scope .wm-ctas,
.wm-scope .wm-share {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.wm-scope .wm-ctas > a.wm-btn,
.wm-scope .wm-ctas > button.wm-btn,
.wm-scope .wm-share > a.wm-btn,
.wm-scope .wm-share > button.wm-btn {
  width: 100% !important;
}

/* -------------------------------------------------------
   BOTÕES, fix definitivo de cores em todos os estados
   Aqui é onde os temas tentam mandar, nós não deixamos.
-------------------------------------------------------- */

/* Normalização total, com estados */
.wm-scope a.wm-btn,
.wm-scope a.wm-btn:link,
.wm-scope a.wm-btn:visited,
.wm-scope a.wm-btn:hover,
.wm-scope a.wm-btn:active,
.wm-scope a.wm-btn:focus,
.wm-scope a.wm-btn:focus-visible,
.wm-scope button.wm-btn,
.wm-scope button.wm-btn:hover,
.wm-scope button.wm-btn:active,
.wm-scope button.wm-btn:focus,
.wm-scope button.wm-btn:focus-visible {
  appearance: none !important;
  -webkit-appearance: none !important;

  border-radius: var(--wm-btn-radius-safe) !important;

  text-decoration: none !important;
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;

  padding: 14px 16px !important;
  min-height: 46px;

  font-family: inherit !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px;

  cursor: pointer;

  transition: transform 120ms ease, filter 120ms ease, background-color 120ms ease, border-color 120ms ease, color 120ms ease;
  -webkit-tap-highlight-color: transparent;
}

/* Focus premium, sem outline herdado */
.wm-scope a.wm-btn:focus,
.wm-scope button.wm-btn:focus {
  outline: none !important;
}

.wm-scope a.wm-btn:focus-visible,
.wm-scope button.wm-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(255,255,255,0.18) !important;
}

/* Variantes, com states completos, para não haver “fugas” */

/* PRIMÁRIO */
.wm-scope a.wm-btn.wm-btn-primary,
.wm-scope a.wm-btn.wm-btn-primary:link,
.wm-scope a.wm-btn.wm-btn-primary:visited,
.wm-scope button.wm-btn.wm-btn-primary {
  background-color: var(--wm-accent) !important;
  border: 1px solid var(--wm-accent) !important;
  color: var(--wm-on-accent) !important;
}

.wm-scope a.wm-btn.wm-btn-primary:hover,
.wm-scope button.wm-btn.wm-btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

/* SECUNDÁRIO */
.wm-scope a.wm-btn.wm-btn-secondary,
.wm-scope a.wm-btn.wm-btn-secondary:link,
.wm-scope a.wm-btn.wm-btn-secondary:visited,
.wm-scope button.wm-btn.wm-btn-secondary {
  background-color: color-mix(in srgb, var(--wm-accent) 82%, #000 18%) !important;
  border: 1px solid color-mix(in srgb, var(--wm-accent) 82%, #000 18%) !important;
  color: var(--wm-on-accent) !important;
}

.wm-scope a.wm-btn.wm-btn-secondary:hover,
.wm-scope button.wm-btn.wm-btn-secondary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

/* GHOST */
.wm-scope a.wm-btn.wm-btn-ghost,
.wm-scope a.wm-btn.wm-btn-ghost:link,
.wm-scope a.wm-btn.wm-btn-ghost:visited,
.wm-scope button.wm-btn.wm-btn-ghost {
  background-color: transparent !important;
  border: 1px solid var(--wm-accent) !important;
  color: var(--wm-accent) !important;
}

.wm-scope a.wm-btn.wm-btn-ghost:hover,
.wm-scope button.wm-btn.wm-btn-ghost:hover {
  background-color: color-mix(in srgb, var(--wm-accent) 14%, transparent) !important;
  transform: translateY(-1px);
}

.wm-scope a.wm-btn:active,
.wm-scope button.wm-btn:active {
  transform: translateY(0);
}

/* -------------------------------------------------------
   Desktop
-------------------------------------------------------- */

@media (min-width: 768px) {
  .wm-scope .wm-ctas {
    grid-template-columns: 1fr 1fr;
  }

  .wm-scope .wm-share {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .wm-scope .wm-brand img {
    height: 40px;
    max-width: 160px;
  }
}

/* -------------------------------------------------------
   Sticky Share, apenas em MOMENTOS
-------------------------------------------------------- */

@media (max-width: 1023px) {

  body.wm-has-moment {
    padding-bottom: calc(var(--wm-sticky-h) + env(safe-area-inset-bottom));
  }

  body.wm-has-moment .wm-scope .wm-share {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;

    max-width: none;
    margin: 0;

    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;

    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    background: rgba(10,10,12,0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border-top: 1px solid rgba(255,255,255,0.10);
    border-radius: 0 !important;
    box-shadow: 0 -18px 60px rgba(0,0,0,0.55);
  }

  body.wm-has-moment .wm-scope .wm-share .wm-btn {
    flex: 1;
    max-width: 220px;
    border-radius: var(--wm-btn-radius-safe) !important;
  }

  body.wm-has-moment .gtranslate_wrapper,
  body.wm-has-moment .gt_float_switcher,
  body.wm-has-moment .weglot-container,
  body.wm-has-moment .weglot_switcher,
  body.wm-has-moment .trp-language-switcher-container,
  body.wm-has-moment .translatepress-language-switcher,
  body.wm-has-moment .wpml-ls-statics-footer {
    bottom: calc(var(--wm-sticky-h) + env(safe-area-inset-bottom) + 10px) !important;
    z-index: 9999 !important;
  }

  body.wm-has-moment [style*="position: fixed"][style*="bottom: 0"],
  body.wm-has-moment [style*="position:fixed"][style*="bottom:0"] {
    bottom: calc(var(--wm-sticky-h) + env(safe-area-inset-bottom) + 10px) !important;
  }
}

@media (min-width: 1024px) {
  body.wm-has-moment {
    padding-bottom: 0;
  }
}

/* -------------------------------------------------------
   Toast
-------------------------------------------------------- */

.wm-toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 99999;

  background: rgba(10, 10, 12, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);

  padding: 10px 14px;
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);

  max-width: calc(100% - 24px);
  font-size: 14px;
}
