/* ============================================
   NORDØYANE'S PEAKS — Editorial Article
   Your Hiking Checklist · Nordøyane
   Overrides on top of article-shared.css (art-*)
   Unique components use peaks- prefix
   ============================================ */

/* ============================================
   HERO WRAPPER — Unified dark zone
   Contains hero + author bar + overview
   ============================================ */
.peaks-hero-wrapper {
  position: relative;
  background: var(--color-midnight, #0a1628);
}

/* ── Hero overrides ── */
.art-hero {
  background: none;
}

.art-hero__media img {
  object-position: center 35%;
  animation: peaksHeroKB 30s ease-out forwards;
}

@keyframes peaksHeroKB {
  0%   { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.art-hero__content {
  z-index: 4;
}

/* Overlay gradient — differs from shared (no top darkening,
   transparent through 50%, then heavier at bottom) */
.art-hero__overlay {
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(10, 22, 40, 0) 0%,
      rgba(10, 22, 40, 0) 50%,
      rgba(10, 22, 40, 0.15) 65%,
      rgba(10, 22, 40, 0.45) 78%,
      rgba(10, 22, 40, 0.85) 92%,
      rgba(10, 22, 40, 1) 100%
    );
}

/* Vignette — subtler than shared default */
.art-hero__overlay::before {
  background: radial-gradient(ellipse at center, transparent 55%, rgba(10, 22, 40, 0.15) 100%);
}

/* Topographic contour decoration — unique to this article */
.art-hero__overlay::after {
  content: '';
  position: absolute;
  bottom: 15%;
  right: -5%;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(212, 165, 116, 0.06);
  border-radius: 50%;
  box-shadow:
    0 0 0 40px rgba(212, 165, 116, 0.04),
    0 0 0 80px rgba(212, 165, 116, 0.02),
    0 0 0 120px rgba(212, 165, 116, 0.01);
}

/* Category badge — green gradient (shared uses gold) */
.art-hero__category {
  background: linear-gradient(135deg, var(--color-moss, #5c7c5c), var(--color-pine, #3d5a47));
  color: var(--color-warm-white, #FBF9F6);
  box-shadow: 0 4px 20px rgba(61, 90, 71, 0.4);
}

/* Author bar — no background (inherits from hero-wrapper),
   lower z-index than shared default */
.art-author-bar {
  background: none;
  z-index: 4;
}

/* ============================================
   LEAD — Inside overview (dark background)
   Completely different from shared art-lead
   (shared is light bg with dropcap)
   ============================================ */
.art-lead {
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(1.3rem, 2.3vw, 1.6rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.72;
  color: rgba(251, 249, 246, 0.82);
  text-align: center;
  padding: 0 0 var(--space-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
}

.art-lead::first-letter {
  initial-letter: normal;
  -webkit-initial-letter: normal;
  font-family: inherit;
  font-weight: inherit;
  color: inherit;
  margin-right: 0;
}

.art-lead a {
  color: var(--color-aurora, #7dd3c0);
  text-decoration: underline;
  text-decoration-color: rgba(125, 211, 192, 0.4);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.3s, text-decoration-color 0.3s;
}

.art-lead a:hover {
  color: #a3e4d4;
  text-decoration-color: var(--color-aurora, #7dd3c0);
}

/* ============================================
   PEAKS OVERVIEW — Summit card grid
   ============================================ */
.peaks-overview {
  position: relative;
  z-index: 4;
  padding: var(--space-3xl) var(--space-xl) var(--space-4xl);
}

.peaks-overview__inner {
  max-width: 1060px;
  margin: 0 auto;
}

.peaks-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  max-width: 1060px;
  margin: 0 auto;
}

.peaks-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: var(--space-lg);
  align-items: center;
  padding: var(--space-lg) var(--space-xl);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--color-gold, #d4a574);
  border-radius: var(--radius-xl, 12px);
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)), box-shadow 0.4s, border-color 0.3s;
}

.peaks-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
  border-left-color: var(--color-aurora, #7dd3c0);
}

.peaks-card__number {
  grid-row: 1 / -1;
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1;
  color: var(--color-gold, #d4a574);
  opacity: 0.5;
}

.peaks-card__name {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: var(--text-xl, 1.25rem);
  font-weight: 500;
  color: var(--color-warm-white, #FBF9F6);
  margin: 0;
  align-self: end;
}

.peaks-card__detail {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  align-self: start;
}

.peaks-card__island {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.45);
}

.peaks-card__sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.95rem;
}

.peaks-card__stats {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ============================================
   SECTION BADGES — Numbered peak markers
   ============================================ */
.peaks-section__badge {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.peaks-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: var(--text-xl, 1.25rem);
  font-weight: 500;
  color: var(--color-gold, #d4a574);
  border: 2px solid var(--color-gold, #d4a574);
  border-radius: 50%;
  opacity: 0.7;
}

.peaks-badge--light {
  color: var(--color-gold, #d4a574);
  border-color: var(--color-gold, #d4a574);
}

/* ============================================
   HEADING — Island name sub-element
   ============================================ */
.peaks-heading__island {
  font-size: 0.65em;
  font-weight: 300;
  color: var(--color-text-muted, #888);
  font-style: italic;
}

.art-heading--light .peaks-heading__island {
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   FIGURES — Cinematic variant (not in shared)
   ============================================ */
.art-figure--cinematic {
  max-width: none;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: 0;
}

.art-figure--cinematic .art-figure__img-wrap {
  border-radius: 0;
  aspect-ratio: 21 / 9;
}

.art-figure--cinematic .art-figure__img-wrap img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.art-figure--cinematic figcaption {
  max-width: 800px;
  margin: var(--space-lg) auto 0;
  padding: 0 var(--space-xl);
}

/* ============================================
   TRAIL INFO — Hiking stats card
   ============================================ */
.peaks-trail-info {
  max-width: 800px;
  margin: var(--space-2xl) auto 0;
  padding: 0;
  border-radius: var(--radius-xl, 12px);
  overflow: hidden;
  border: 1px solid rgba(61, 90, 71, 0.1);
  background: rgba(61, 90, 71, 0.04);
}

.peaks-trail-info__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: var(--color-pine, #3d5a47);
  color: var(--color-warm-white, #FBF9F6);
  font-size: var(--text-sm, 0.875rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.peaks-trail-info__header svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.peaks-trail-info__list {
  margin: 0;
  padding: 0;
}

.peaks-trail-info__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-md) var(--space-xl);
  border-bottom: 1px solid rgba(61, 90, 71, 0.08);
}

.peaks-trail-info__item:last-child {
  border-bottom: none;
}

.peaks-trail-info__item dt {
  font-size: var(--text-sm, 0.875rem);
  color: var(--color-text-muted, #666);
}

.peaks-trail-info__item dd {
  margin: 0;
  font-weight: 600;
  font-size: var(--text-sm, 0.875rem);
  color: var(--color-text-primary, #1a1a1a);
  text-align: right;
}

/* Light variant (dark sections) */
.peaks-trail-info--light {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.peaks-trail-info--light .peaks-trail-info__header {
  background: rgba(212, 165, 116, 0.15);
  color: var(--color-gold, #d4a574);
}

.peaks-trail-info--light .peaks-trail-info__item {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.peaks-trail-info--light .peaks-trail-info__item dt {
  color: rgba(255, 255, 255, 0.5);
}

.peaks-trail-info--light .peaks-trail-info__item dd {
  color: var(--color-warm-white, #FBF9F6);
}

/* ============================================
   CALLOUT — Overrides on shared art-callout
   ============================================ */
.art-callout {
  margin: var(--space-xl) auto 0;
  padding: var(--space-lg) var(--space-xl);
}

/* Dark variant (unique to this article) */
.peaks-callout--dark {
  background: linear-gradient(135deg, rgba(125, 211, 192, 0.06), rgba(212, 165, 116, 0.08));
}

.peaks-callout--dark p {
  color: rgba(251, 249, 246, 0.75);
}

.peaks-callout--dark a {
  color: var(--color-aurora, #7dd3c0);
  text-decoration-color: rgba(125, 211, 192, 0.4);
}

.peaks-callout--dark a:hover {
  color: #a3e4d4;
}

/* ============================================
   CLOSING CTA — Overrides on shared art-closing
   ============================================ */
.art-closing__text {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: var(--text-2xl, 1.5rem);
  color: var(--color-text-primary, #1a1a1a);
  line-height: 1.5;
  font-weight: 400;
  font-style: normal;
}

/* ============================================
   RESPONSIVE — Tablet (768px)
   ============================================ */
@media (max-width: 768px) {
  .art-hero__overlay::after {
    display: none;
  }

  .peaks-overview {
    padding: var(--space-2xl) var(--space-lg);
  }

  .art-lead {
    font-size: clamp(1.2rem, 4.8vw, 1.4rem);
    line-height: 1.68;
    max-width: 36rem;
  }

  .peaks-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .art-figure--cinematic .art-figure__img-wrap {
    aspect-ratio: 16 / 9;
  }

  .peaks-trail-info {
    margin-left: 0;
    margin-right: 0;
  }

  .art-callout {
    margin-left: 0;
    margin-right: 0;
  }
}

/* ============================================
   RESPONSIVE — Mobile (480px)
   ============================================ */
@media (max-width: 480px) {
  .peaks-badge {
    width: 44px;
    height: 44px;
    font-size: var(--text-base, 1rem);
  }

  .peaks-cards {
    grid-template-columns: 1fr;
  }

  .peaks-card {
    padding: var(--space-lg);
  }

  .peaks-trail-info__item {
    padding: var(--space-sm) var(--space-lg);
  }
}
