/* ══════════════════════════════════════
   STORY SHARE — botón, modal y tarjetas v2
   Ubicación: blog/static/css/story-card.css
   (reemplaza el archivo completo)
   ══════════════════════════════════════ */

/* ── Botón disparador ── */
.story-share-wrap { display: flex; justify-content: center; margin: 32px 0; }

.story-share-trigger {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: #3A9940;
  border: 2px solid #5DBB63; padding: 13px 28px; border-radius: 9px;
  font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background 0.2s, color 0.2s;
}
.story-share-trigger:hover { background: #EBF7EC; }

/* ── Modal ── */
.story-share-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.story-share-modal[hidden] { display: none; }

.story-share-modal-inner {
  background: #F5F5F3; border-radius: 20px;
  padding: 28px 20px 24px; max-width: 480px; width: 100%;
  max-height: 90vh; overflow-y: auto; position: relative;
}

.story-share-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; font-size: 28px; line-height: 1;
  color: #555555; cursor: pointer; padding: 4px;
}

.story-share-modal-title {
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 16px;
  color: #1a1a1a; text-align: center; margin-bottom: 20px;
}

/* ── Carrusel ── */
.story-share-carousel {
  display: flex; gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 4px 4px 12px;
  -webkit-overflow-scrolling: touch;
}
.story-share-carousel::-webkit-scrollbar { height: 6px; }
.story-share-carousel::-webkit-scrollbar-thumb { background: #E2E2E2; border-radius: 3px; }

.story-share-item {
  flex: 0 0 auto; scroll-snap-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}

.story-share-preview {
  width: 180px; height: 320px; overflow: hidden;
  border-radius: 12px; border: 1px solid #E2E2E2;
  position: relative; background: #2E2E2E;
}
.story-share-preview-scaler { transform: scale(0.1667); transform-origin: top left; }

.story-share-download-btn {
  background: #5DBB63; color: #fff; border: none;
  padding: 8px 18px; border-radius: 8px;
  font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: background 0.2s; white-space: nowrap;
}
.story-share-download-btn:hover { background: #3A9940; }
.story-share-download-btn:disabled { opacity: 0.6; cursor: wait; }

.story-share-modal-footer { margin-top: 8px; display: flex; justify-content: center; }

.story-share-copy-btn {
  background: transparent; border: 1.5px solid #E2E2E2; color: #555555;
  padding: 10px 22px; border-radius: 8px;
  font-family: 'Poppins', sans-serif; font-size: 13.5px; font-weight: 600;
  cursor: pointer;
}
.story-share-copy-btn:hover { border-color: #5DBB63; color: #3A9940; }

/* ══════════════════════════════════════
   LA TARJETA (1080x1920) — fondo = foto
   del artículo, desenfocada + capa de color
   ══════════════════════════════════════ */

.story-card {
  width: 1080px;
  height: 1920px;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  position: relative;
  overflow: hidden;
}

/* Brillo decorativo sutil, sin depender de ninguna imagen externa */
.story-card-orb {
  position: absolute;
  top: -140px;
  right: -140px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  pointer-events: none;
}

.story-card-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  /* Zona segura de Instagram: nada arriba (avatar/nombre) ni abajo (comentarios) */
  padding: 220px 80px 260px;
}

.story-card-eyebrow { margin-bottom: 64px; }
.story-card-body { margin-bottom: 48px; }

/* ── Estilo 1: CREAM (como "myne") ── */
.story-card--cream { background: #F5F5F3; }
.story-card--cream .story-card-orb { background: radial-gradient(circle, rgba(93,187,99,0.16) 0%, transparent 70%); }
.story-card--cream .story-card-title,
.story-card--cream .story-card-quote-text,
.story-card--cream .story-card-footer .name { color: #1a1a1a; }
.story-card--cream .story-card-desc,
.story-card--cream .story-card-footer .url { color: #555555; }
.story-card--cream .story-card-quote-mark { color: #3A9940; }

/* ── Estilo 2: OSCURO ── */
.story-card--dark { background: #2E2E2E; }
.story-card--dark .story-card-orb { background: radial-gradient(circle, rgba(93,187,99,0.20) 0%, transparent 70%); }
.story-card--dark .story-card-title,
.story-card--dark .story-card-quote-text,
.story-card--dark .story-card-footer .name { color: #ffffff; }
.story-card--dark .story-card-desc,
.story-card--dark .story-card-footer .url { color: rgba(255,255,255,0.72); }
.story-card--dark .story-card-quote-mark { color: #5DBB63; }

/* ── Estilo 3: VERDE DE MARCA ── */
.story-card--green { background: linear-gradient(160deg, #3A9940, #1A2A1A); }
.story-card--green .story-card-orb { background: radial-gradient(circle, rgba(217,252,103,0.18) 0%, transparent 70%); }
.story-card--green .story-card-title,
.story-card--green .story-card-quote-text,
.story-card--green .story-card-footer .name { color: #ffffff; }
.story-card--green .story-card-desc,
.story-card--green .story-card-footer .url { color: rgba(255,255,255,0.78); }
.story-card--green .story-card-quote-mark { color: #d9fc67; }

/* ── Contenido compartido entre estilos ── */
.story-card-eyebrow {
  display: inline-flex;
  align-self: flex-start;
  padding: 11px 24px;
  border-radius: 999px;
  font-size: 29px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.story-card-emoji { font-size: 68px; }

.story-card-title {
  font-size: 62px;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.story-card-desc {
  font-size: 30px;
  font-weight: 400;
  line-height: 1.55;
  margin-top: 22px;
}

.story-card-quote-mark {
  font-family: 'JetBrains Mono', monospace;
  font-size: 130px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: -16px;
}

.story-card-quote-text {
  font-size: 54px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.story-card-footer {
  display: flex;
  align-items: center;
  gap: 24px;
}

.story-card-footer-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.story-card-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 3px solid #5DBB63;
  object-fit: cover;
  flex-shrink: 0;
}

.story-card-footer-text .name { font-size: 30px; font-weight: 700; line-height: 1.2; }
.story-card-footer-text .url { font-size: 22px; font-weight: 500; line-height: 1.2; margin-top: 0; }
