/* Variant A carousel styles for the homepage hero */
.hero-feedback-showcase {
  width: 100%;
  min-width: 0;
  color: #fff;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
}

.hero-feedback-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.hero-feedback-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.hero-feedback-link {
  display: none;
}

.hero-feedback-nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.hero-feedback-nav button {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.hero-feedback-nav button:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
}

.hero-feedback-nav button:active {
  transform: translateY(0) scale(0.96);
}

.hero-feedback-stage {
  flex: 1 1 auto;
  min-height: 420px;
  overflow: hidden;
  border-radius: 14px;
}

.hero-feedback-viewport {
  width: 100%;
  min-height: 420px;
  overflow: hidden;
  border-radius: 14px;
}

.hero-feedback-track {
  display: flex;
  align-items: stretch;
  min-height: 420px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hero-feedback-slide {
  flex: 0 0 auto;
  min-width: 0;
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.hero-feedback-card {
  position: relative;
  inset: auto;
  opacity: 1;
  transform: none;
  width: 100%;
  flex: 1 1 auto;
  min-height: 420px;
  padding: 18px;
  border-radius: 14px;
  background: #1a2029;
  border: 1px solid #2a313d;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-feedback-card::before,
.hero-feedback-card::after {
  display: none;
  content: none;
}

.hero-feedback-card[data-tone="purple"] {
  background: linear-gradient(160deg, rgba(167, 139, 250, 0.14) 0%, transparent 60%), #1a2029;
  border-color: rgba(167, 139, 250, 0.35);
}

.hero-feedback-card[data-tone="amber"] {
  background: linear-gradient(160deg, rgba(244, 192, 106, 0.12) 0%, transparent 60%), #1a2029;
  border-color: rgba(244, 192, 106, 0.35);
}

.hero-feedback-card[data-tone="teal"] {
  background: linear-gradient(160deg, rgba(39, 181, 168, 0.14) 0%, transparent 60%), #1a2029;
  border-color: rgba(39, 181, 168, 0.4);
}

.hero-feedback-card[data-tone="slate"] {
  background: linear-gradient(160deg, rgba(148, 163, 184, 0.1) 0%, transparent 60%), #1a2029;
  border-color: rgba(148, 163, 184, 0.24);
}

.hero-feedback-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.hero-feedback-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #9cf4d4;
  background: rgba(39, 181, 168, 0.14);
}

.hero-feedback-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  flex: 0 0 auto;
}

.hero-feedback-card[data-tone="purple"] .hero-feedback-badge {
  color: #c4b5fd;
  background: rgba(167, 139, 250, 0.14);
  border-color: rgba(167, 139, 250, 0.35);
}

.hero-feedback-card[data-tone="amber"] .hero-feedback-badge {
  color: #f4c06a;
  background: rgba(244, 192, 106, 0.12);
  border-color: rgba(244, 192, 106, 0.35);
}

.hero-feedback-card[data-tone="teal"] .hero-feedback-badge {
  color: #27b5a8;
  background: rgba(39, 181, 168, 0.14);
  border-color: rgba(39, 181, 168, 0.4);
}

.hero-feedback-card[data-tone="slate"] .hero-feedback-badge {
  color: #d8e0ed;
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(148, 163, 184, 0.24);
}

.hero-feedback-card h2 {
  margin: 2px 0 8px;
  color: #fff;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-feedback-body {
  margin: 0;
  color: #cbd5e1;
  font-size: 13.5px;
  line-height: 1.55;
  flex: 1 1 auto;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

.hero-feedback-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #2a313d;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-feedback-accent {
  display: block;
  width: 18px;
  height: 1px;
  flex: 0 0 auto;
  background: #27b5a8;
  opacity: 0.7;
}

.hero-feedback-card[data-tone="purple"] .hero-feedback-accent {
  background: #c4b5fd;
}

.hero-feedback-card[data-tone="amber"] .hero-feedback-accent {
  background: #f4c06a;
}

.hero-feedback-card[data-tone="teal"] .hero-feedback-accent {
  background: #27b5a8;
}

.hero-feedback-card[data-tone="slate"] .hero-feedback-accent {
  background: #d8e0ed;
}

.hero-feedback-author {
  font-family: "Pacifico", "Brush Script MT", cursive;
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0.01em;
  color: #27b5a8;
}

.hero-feedback-card[data-tone="purple"] .hero-feedback-author {
  color: #c4b5fd;
}

.hero-feedback-card[data-tone="amber"] .hero-feedback-author {
  color: #f4c06a;
}

.hero-feedback-card[data-tone="teal"] .hero-feedback-author {
  color: #27b5a8;
}

.hero-feedback-card[data-tone="slate"] .hero-feedback-author {
  color: #d8e0ed;
}

.hero-feedback-meta {
  margin-left: auto;
  color: var(--muted-2, rgba(216, 224, 237, 0.56));
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  text-align: right;
}

.hero-feedback-avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #0e131b;
  background: linear-gradient(135deg, #27b5a8, rgba(39, 181, 168, 0.67));
}

.hero-feedback-card[data-tone="purple"] .hero-feedback-avatar {
  background: linear-gradient(135deg, #c4b5fd, rgba(196, 181, 253, 0.67));
}

.hero-feedback-card[data-tone="amber"] .hero-feedback-avatar {
  background: linear-gradient(135deg, #f4c06a, rgba(244, 192, 106, 0.67));
}

.hero-feedback-card[data-tone="teal"] .hero-feedback-avatar {
  background: linear-gradient(135deg, #27b5a8, rgba(39, 181, 168, 0.67));
}

.hero-feedback-card[data-tone="slate"] .hero-feedback-avatar {
  background: linear-gradient(135deg, #d8e0ed, rgba(216, 224, 237, 0.67));
}

.hero-feedback-dots {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-feedback-dots .dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-feedback-dot {
  flex: 0 0 5px;
  width: 5px;
  height: 4px;
  padding: 0;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
  transition: flex 0.3s ease, background 0.3s ease, width 0.3s ease;
}

.hero-feedback-dot.is-active {
  flex: 0 0 64px;
  width: 64px;
  background: rgba(255, 255, 255, 0.25);
}

.hero-feedback-progress {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hero-feedback-progress-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: #fff;
  transform-origin: left center;
  transform: scaleX(0);
  border-radius: inherit;
}

.hero-feedback-dot.is-active .hero-feedback-progress-fill {
  opacity: 1;
}

.hero-feedback-pager {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 980px) {
  .hero-feedback-card {
    min-height: 230px;
  }
}

@media (max-width: 700px) {
  .hero-feedback-head {
    margin-bottom: 10px;
  }

  .hero-feedback-stage {
    min-height: 250px;
  }

  .hero-feedback-viewport {
    min-height: 250px;
  }

  .hero-feedback-track,
  .hero-feedback-slide,
  .hero-feedback-card {
    min-height: 250px;
  }

  .hero-feedback-card {
    padding: 16px;
  }

  .hero-feedback-card h2 {
    font-size: 16px;
  }

  .hero-feedback-meta {
    width: 100%;
    margin-left: 0;
    text-align: left;
  }
}

/* ============================================================ */
/* Story modal — fereastra de detaliu "poveste #NNN"            */
/* ============================================================ */
.story-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: rgba(8, 11, 16, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.story-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  animation: storyBackdropIn 200ms ease;
}
@keyframes storyBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.story-modal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 820px;
  max-height: 100%;
  background-color: rgb(26, 32, 41);
  color: rgb(227, 232, 239);
  border-radius: 2px;
  box-shadow:
    0 30px 80px 0 rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transform: translateY(6px) scale(0.99);
  opacity: 0.6;
  transition: transform 200ms ease, opacity 200ms ease;
}
.story-modal.is-open .story-modal-card {
  animation: storyWindowIn 220ms ease forwards;
}
@keyframes storyWindowIn {
  from { opacity: 0.6; transform: translateY(6px) scale(0.99); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Top accent strip */
.story-modal-strip {
  height: 3px;
  flex: 0 0 auto;
  background-image: linear-gradient(
    90deg,
    rgb(196, 181, 253),
    rgba(196, 181, 253, 0.533),
    rgba(0, 0, 0, 0)
  );
}

/* Header (3 dots + poveste #NNN + close) */
.story-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 0;
  flex: 0 0 auto;
}
.story-modal-htitle {
  display: flex;
  align-items: center;
  gap: 12px;
}
.story-modal-dots {
  display: flex;
  gap: 4px;
}
.story-modal-dots span {
  display: block;
  width: 8px;
  height: 8px;
  background-color: rgb(58, 66, 80);
  border-radius: 0;
}
.story-modal-num {
  color: rgb(107, 115, 132);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.26px;
  text-transform: uppercase;
}
.story-modal-num em {
  font-style: normal;
  color: rgb(107, 115, 132);
}
.story-modal-close {
  appearance: none;
  background: none;
  border: 0;
  padding: 1px 6px;
  color: rgb(164, 173, 187);
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 14px;
  cursor: pointer;
  text-align: center;
  transition: color 120ms ease, transform 120ms ease;
}
.story-modal-close:hover { color: rgb(227, 232, 239); transform: scale(1.05); }

/* Body */
.story-modal-body {
  padding: 16px 28px 22px;
  flex: 1 1 auto;
  overflow-y: auto;
}
.story-modal-topline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.story-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(167, 139, 250, 0.14);
  color: rgb(196, 181, 253);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 10px;
}
.story-modal-badge::before {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  background-color: rgb(196, 181, 253);
}
.story-modal-date {
  color: rgb(107, 115, 132);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11px;
  letter-spacing: 0.44px;
}
.story-modal-title {
  margin: 0 0 18px 0;
  color: rgb(227, 232, 239);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 28.8px;
  letter-spacing: -0.36px;
}
.story-modal-quote {
  display: block;
  color: rgb(196, 181, 253);
  font-family: Georgia, serif;
  font-size: 54px;
  line-height: 37.8px;
  opacity: 0.65;
  margin-bottom: 4px;
  user-select: none;
}
.story-modal-message {
  margin: 0;
  color: rgb(227, 232, 239);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 26.25px;
  white-space: pre-wrap;
}
.story-modal-sign {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 26px;
}
.story-modal-sign-line {
  display: block;
  width: 64px;
  height: 1px;
  background-color: rgb(196, 181, 253);
  opacity: 0.6;
  margin-bottom: 4px;
}
.story-modal-sign-name {
  color: rgb(196, 181, 253);
  font-family: Pacifico, "Brush Script MT", cursive;
  font-size: 28px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: 0.28px;
}
.story-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding-top: 18px;
}
.story-modal-tag {
  background-color: rgb(35, 44, 57);
  color: rgb(164, 173, 187);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11px;
  letter-spacing: 0.22px;
  padding: 4px 10px;
}
.story-modal-stars {
  display: inline-block;
  margin-top: 14px;
  color: rgb(196, 181, 253);
  letter-spacing: 2px;
  font-size: 14px;
}
.story-modal-stars .off { color: rgb(58, 66, 80); }

/* Footer */
.story-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgb(22, 28, 37);
  padding: 12px 16px;
  flex: 0 0 auto;
  gap: 12px;
}
.story-modal-nav, .story-modal-meta {
  display: flex;
  gap: 4px;
}
.story-modal-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 6px 11px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: rgb(164, 173, 187);
  cursor: pointer;
  text-align: center;
  transition: color 120ms ease, background-color 120ms ease;
  border-radius: 2px;
}
.story-modal-btn:hover:not(:disabled) {
  color: rgb(227, 232, 239);
  background-color: rgba(255, 255, 255, 0.04);
}
.story-modal-btn:disabled {
  color: rgb(107, 115, 132);
  opacity: 0.4;
  cursor: not-allowed;
}
.story-modal-meta .story-modal-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 400;
}
.story-modal-meta .story-modal-btn b {
  font-weight: 700;
}
.story-modal-meta .story-modal-btn.is-on {
  color: rgb(196, 181, 253);
}

@media (max-width: 600px) {
  .story-modal { padding: 12px; }
  .story-modal-body { padding: 14px 18px 18px; }
  .story-modal-title { font-size: 20px; line-height: 24px; }
  .story-modal-message { font-size: 14px; line-height: 22px; }
}

/* Make feedback cards/stories visually clickable */
.hero-feedback-card,
.fb2-stories .story { cursor: pointer; pointer-events: auto !important; }
.hero-feedback-card:hover,
.fb2-stories .story:hover { filter: brightness(1.05); }

/* Push foot + reactions to the bottom of the card so all cards align uniformly */
.hero-feedback-card .hero-feedback-foot { margin-top: auto; }

/* Reactions row (♥ / ↑) shown on slider cards and feed stories */
.story-reactions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.story-reaction {
  appearance: none;
  background: none;
  border: 0;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  color: rgb(164, 173, 187);
  cursor: pointer;
  border-radius: 6px;
  transition: color 120ms ease, background-color 120ms ease;
}
.story-reaction b { font-weight: 700; }
.story-reaction:hover {
  color: rgb(227, 232, 239);
  background-color: rgba(255, 255, 255, 0.05);
}
.story-reaction.is-on { color: rgb(196, 181, 253); }
.fb2-stories .story .story-reactions { margin-top: 14px; padding-top: 12px; }
