/* ============================================================
   story-detail-hero.css  —  story detail page specific styles
   Depends on general-tablet.css for shared section patterns
   ============================================================ */

/* ── Story hero ───────────────────────────────────────────── */
.story-page .site-nav {
  background-color: #000;
  position: relative;
}

.story-hero-wrapper {
  position: relative;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

@media (min-width: 800px) {
  .story-hero-wrapper { min-height: 560px; }
}

@media (min-width: 1200px) {
  .story-hero-wrapper { min-height: 640px; }
  .page-hero-section { margin: 0 0 120px; }
}

.story-hero-wrapper .page-hero-image {
  overflow: hidden;
}

.story-hero-wrapper .page-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 1200px) {
  .story-hero-wrapper .page-hero-image img { border-radius: 10px; }
  .story-hero-wrapper .page-hero-image {
    position: relative;
    z-index: 2;
    margin-bottom: -120px;
  }
}

.story-hero-wrapper .page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.0) 40%, rgba(0,0,0,0.85) 100%);
}

.story-breadcrumbs,
.story-intro {
  position: relative;
  z-index: 2;
}

/* ── Breadcrumbs ──────────────────────────────────────────── */
.story-breadcrumbs {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  background-color: #ce4257;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 800px) {
  .story-breadcrumbs { padding: 12px 40px; }
}

@media (min-width: 1200px) {
  .story-breadcrumbs { padding: 10px 8%; }
}

.breadcrumb-link {
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.breadcrumb-link:hover { text-decoration: underline; }

.breadcrumb-sep {
  font-family: "Font Awesome 6 Sharp-Regular", Helvetica;
  color: #ff9b54;
  font-size: 10px;
}

.breadcrumb-current {
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  color: #fff;
}

/* ── Story intro (title + meta inside hero) ───────────────── */
.story-intro {
  position: relative;
  z-index: 2;
  padding: 32px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 800px) {
  .story-intro { padding: 40px 40px 56px; }
}

@media (min-width: 1200px) {
  .story-intro { padding: 80px 0px; max-width: 900px; margin-left: auto; margin-right: auto; }
}

.story-detail-title {
  font-family: "Gotham-Black", Helvetica;
  font-size: 33px;
  letter-spacing: -0.50px;
  color: #ffffff;
  line-height: 1.1;
  margin: 0;
}

@media (min-width: 800px) {
  .story-detail-title { font-size: 64px; }
}

@media (min-width: 1200px) {
  .story-detail-title { font-size: 100px; }
}

.story-summary {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(14px, 1.8vw, 18px);
  color: rgba(255,255,255,0.8);
  line-height: 1.65;
  margin: 0;
  max-width: 1200px;
}

/* Meta rows */
.story-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.story-meta-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

@media (min-width: 1200px) {
  .story-meta-actions { margin-left: auto; }
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  background: none;
  border: none;
  cursor: default;
  padding: 0;
}

button.meta-item {
  cursor: pointer;
}

.meta-icon {
  font-family: "Font Awesome 6 Sharp-Regular", Helvetica;
  font-size: 14px;
  color: #CE4257;
}

.meta-label {
  font-size: 13px;
  color: rgba(255,255,255,0.9);
}

/* Action buttons (like, dislike, favorite) */
.story-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.story-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 20px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.story-action-btn:hover {
  background: #8B1A2E;
}

.story-action-btn:hover .meta-icon,
.story-action-btn:hover .meta-label,
.story-action-btn:hover .count-like,
.story-action-btn:hover .count-dislike,
.story-action-btn:hover .text-favorite {
  color: #ffffff;
}

.btn-favorite:hover .meta-icon,
.btn-favorite:hover .text-favorite {
  color: #FF7F51;
  transition: color 0.2s ease;
}

.btn-favorite.is-favorited .meta-icon,
.btn-favorite.is-favorited .text-favorite {
  color: #ffffff;
}

/* ── Featured image ───────────────────────────────────────── */
.story-featured-image-wrapper {
  padding-top: 40px;
  padding-bottom: 0;
}

@media (min-width: 800px) {
  .story-featured-image-wrapper { padding-top: 56px; }
}

.story-featured-image {
  width: 100%;
  display: block;
  border-radius: 12px;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* ── WYSIWYG extras (story-specific) ─────────────────────── */
.wysiwyg-numbered-list,
.wysiwyg-bullet-list {
  padding-left: 0;
  margin: 0 0 16px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wysiwyg-numbered-list li {
  counter-increment: wysiwyg-counter;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(14px, 1.8vw, 17px);
  color: #333;
  line-height: 1.7;
}

.wysiwyg-numbered-list {
  counter-reset: wysiwyg-counter;
}

.wysiwyg-numbered-list li::before {
  content: counter(wysiwyg-counter) ".";
  flex-shrink: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  font-weight: 700;
  color: #7c3aed;
  min-width: 24px;
}

.wysiwyg-bullet-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(14px, 1.8vw, 17px);
  color: #333;
  line-height: 1.7;
}

.wysiwyg-bullet-list li::before {
  content: "•";
  flex-shrink: 0;
  color: #7c3aed;
  font-size: 18px;
  line-height: 1.5;
}

.wysiwyg-divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 24px 0;
}

.wysiwyg-image-block {
  margin: 24px 0;
}

.wysiwyg-caption {
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  color: #888;
  margin: 8px 0 0;
  font-style: italic;
}


.wysiwyg-cta-btn {
  margin: 8px 0 24px;
  display: inline-flex;
}

.wysiwyg-heading-upper {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: clamp(14px, 2vw, 18px);
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
}

/* ── Checker links row ────────────────────────────────────── */
.checker-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

/* ── Story components container ──────────────────────────── */
.story-components {
  padding-top: 0;
  padding-bottom: 40px;
}

@media (min-width: 800px) {
  .story-components { padding-bottom: 56px; }
}

@media (min-width: 1200px) {
  .story-page .wysiwyg-inner {
    padding: 0;
  }
}

/* Ensure story page wysiwyg sections sit within max-width container */
.story-page .wysiwyg-section {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
  padding-left: 0;
  padding-right: 0;
}

.story-page .media-slider-container {
  padding: 0 30px;
}

@media (min-width: 800px) {
  .story-page .media-slider-container {
    padding: 0 50px;
  }
}

@media (min-width: 1200px) {
  .story-page .media-slider-container {
    padding: 0 8%;
  }

  .story-page .wysiwyg-section:has(+ .wysiwyg-section),
  .story-page .wysiwyg-section:has(+ .checkerboard-section) {
    padding-bottom: 0;
  }

  .story-page .wysiwyg-section + .wysiwyg-section,
  .story-page .checkerboard-section + .wysiwyg-section {
    padding-top: 0;
  }
}

.story-page .footer-cta-section {
  background: linear-gradient(135deg, #CE4257 0%, #FF7F51 100%);
}
