/* ========================================================
   Story Page — Premium Photography Editorial
   ======================================================== */

/* ---------- Hero ---------- */
.story-hero {
  background: #080f1e;
  background-image:
    radial-gradient(ellipse at 50% 20%, rgba(37,99,235,0.12) 0%, transparent 65%),
    linear-gradient(180deg, #060c18 0%, #0e1729 100%);
  padding: 2.5rem 1rem 0;
  display: flex;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.story-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to top, #fff 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.story-hero-inner {
  max-width: 960px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.story-hero-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px 14px 0 0;
  cursor: zoom-in;
  transition: filter 0.4s ease;
}
.story-hero-img:hover {
  filter: brightness(1.04);
}

/* Enlarge hint — glassmorphism icon */
.story-enlarge-hint {
  position: absolute;
  bottom: 1.2rem;
  right: 1.2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s ease;
  cursor: zoom-in;
  z-index: 3;
  pointer-events: auto;
}
.story-enlarge-hint svg {
  width: 20px;
  height: 20px;
  color: #fff;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.story-hero-inner:hover .story-enlarge-hint {
  opacity: 1;
  transform: scale(1);
}
.story-enlarge-hint:hover {
  background: rgba(255,255,255,0.22);
}

/* ---------- Content Surface ---------- */
.story-surface {
  max-width: 780px;
  margin: -3rem auto 0;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 2.8rem 3rem 4rem;
  position: relative;
  z-index: 3;
  min-height: 40vh;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.04);
}

/* ---------- Breadcrumb ---------- */
.story-breadcrumb {
  font-size: 0.76rem;
  color: var(--c-text-muted);
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  opacity: 0.55;
  transition: opacity 0.2s;
}
.story-breadcrumb:hover {
  opacity: 0.85;
}
.story-breadcrumb a {
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.story-breadcrumb a:hover {
  color: var(--c-primary);
}
.bc-sep {
  font-size: 0.7rem;
  color: var(--c-border);
  margin: 0 0.1rem;
}
.bc-current {
  color: var(--c-text);
  font-weight: 500;
}

/* ---------- Article ---------- */
.story-article {
  margin-bottom: 2rem;
}

/* ---------- Header — title first, then meta ---------- */
.story-header {
  margin-bottom: 2.2rem;
}

/* Title */
.story-title {
  margin: 0 0 0.9rem;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--c-text);
}

/* Meta — plain text, no pills */
.story-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: #94a3b8;
  margin-bottom: 0.7rem;
  flex-wrap: wrap;
  font-family: inherit; /* Heebo, not monospace */
}
.story-meta-dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #cbd5e1;
}
.story-reading-time {
  font-weight: 500;
}
.story-draft-badge {
  background: #fee2e2;
  color: #991b1b;
  padding: 0.12rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Header tags — refined #tag links */
.story-tags-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.2rem;
}
a.story-tag-link {
  color: var(--c-primary);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.65;
  transition: opacity 0.2s;
}
a.story-tag-link::before {
  content: '#';
}
a.story-tag-link:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Separator line */
.story-sep {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--c-border);
  border: none;
  margin: 1.6rem 0 2rem;
  border-radius: 1px;
}

/* ---------- Story Content — Editorial Typography ---------- */
.story-content {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #1a1a2e;
}

/* Drop cap */
.story-content > p:first-of-type::first-letter {
  float: right;
  font-size: 3.5em;
  font-weight: 800;
  line-height: 0.8;
  margin: 0.05em 0 0 0.12em;
  color: var(--c-primary);
}
html[dir="rtl"] .story-content > p:first-of-type::first-letter {
  float: right;
  margin: 0.05em 0 0 0.12em;
}
html:not([dir="rtl"]) .story-content > p:first-of-type::first-letter {
  float: left;
  margin: 0.05em 0.12em 0 0;
}

.story-content p {
  margin: 0 0 1.5rem;
}
.story-content img {
  max-width: 100%;
  border-radius: 10px;
  margin: 1.5rem 0;
}
.story-content a {
  color: var(--c-primary);
  text-decoration: underline;
  text-decoration-color: rgba(37,99,235,0.25);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.story-content a:hover {
  text-decoration-color: var(--c-primary);
}
.story-content h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 2.2rem 0 0.8rem;
  letter-spacing: -0.01em;
}
.story-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.8rem 0 0.6rem;
}
.story-content blockquote {
  border-inline-start: 3px solid var(--c-primary);
  margin: 1.8rem 0;
  padding: 0.6rem 1.2rem;
  font-style: italic;
  color: var(--c-text-muted);
  background: transparent;
}
.story-content ul,
.story-content ol {
  margin: 0 0 1.4rem;
  padding-inline-start: 1.5rem;
}
.story-content li {
  margin-bottom: 0.35rem;
}

/* ---------- Empty Story ---------- */
.story-empty {
  color: var(--c-text-muted);
  padding: 2rem;
  border: 1px dashed var(--c-border);
  border-radius: 12px;
  text-align: center;
  font-size: 0.95rem;
}

/* ---------- Article Footer Tags ---------- */
.story-article-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-border);
}
.story-footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.story-footer-tags .story-ftag {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  background: #f8fafc;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--c-text-muted);
  text-decoration: none;
  transition: all 0.2s;
}
.story-footer-tags .story-ftag:hover {
  background: rgba(37,99,235,0.06);
  border-color: rgba(37,99,235,0.25);
  color: var(--c-primary);
}

/* ---------- Bottom Navigation — Minimal ---------- */
.story-end-nav {
  text-align: center;
  padding-top: 2rem;
}
.story-end-nav a {
  color: var(--c-text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.story-end-nav a:hover {
  color: var(--c-primary);
}
.story-end-nav .nav-arrow {
  font-size: 1.1em;
  transition: transform 0.2s;
}
html[dir="rtl"] .story-end-nav a:hover .nav-arrow {
  transform: translateX(3px);
}
html:not([dir="rtl"]) .story-end-nav a:hover .nav-arrow {
  transform: translateX(-3px);
}

/* ========== Lightbox ========== */
.story-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.story-lightbox[aria-hidden="false"] {
  display: flex;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  cursor: pointer;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  font-size: 2rem;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
}
.lightbox-img {
  position: relative;
  z-index: 5;
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 6px;
}

/* ========== RTL ========== */
html[dir="rtl"] .story-title { letter-spacing: -0.01em; }
html[dir="rtl"] .story-breadcrumb { direction: rtl; }
html[dir="rtl"] .lightbox-close { right: auto; left: 1rem; }
html[dir="rtl"] .story-enlarge-hint { right: auto; left: 1.2rem; }
html[dir="rtl"] .story-content blockquote {
  border-inline-start: 3px solid var(--c-primary);
}

/* ========== Responsive ========== */
@media (max-width: 840px) {
  .story-surface {
    padding: 2.2rem 2rem 3.5rem;
    margin-top: -2rem;
    border-radius: 20px 20px 0 0;
  }
}

@media (max-width: 600px) {
  .story-hero {
    padding: 1.5rem 0 0;
  }
  .story-hero::after {
    height: 80px;
  }
  .story-hero-img {
    border-radius: 0;
  }
  .story-surface {
    padding: 1.8rem 1.2rem 3rem;
    margin-top: -1.5rem;
    border-radius: 16px 16px 0 0;
  }
  .story-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    line-height: 1.15;
  }
  .story-content {
    font-size: 1rem;
    line-height: 1.8;
  }
  .story-content p {
    margin-bottom: 1.2rem;
  }
  .story-content > p:first-of-type::first-letter {
    font-size: 2.8em;
  }
  .story-meta {
    font-size: 0.8rem;
  }
  .story-breadcrumb {
    font-size: 0.72rem;
    margin-bottom: 1.2rem;
  }
  .story-enlarge-hint {
    opacity: 0.7;
    transform: scale(1);
    width: 38px;
    height: 38px;
    bottom: 0.8rem;
    right: 0.8rem;
  }
  html[dir="rtl"] .story-enlarge-hint {
    right: auto;
    left: 0.8rem;
  }
  .story-sep {
    margin: 1.2rem 0 1.5rem;
  }
}

@media (max-width: 380px) {
  .story-surface {
    padding: 1.4rem 1rem 2.5rem;
  }
  .story-title {
    font-size: 1.5rem;
  }
}
