/* ============================================================
   AYASOFYA LOKUM — About Sayfası Özel Stilleri
   MYKSoft Vizyonu © 2026
   about-page.css — Hero Stats | Chapter Nav | Lead | Seal
   Mobile-First | CSS3 | Vanilla
   ============================================================ */

/* ════════════════════════════════════════════════════════════
   ABOUT HERO — EK ÖĞELER
════════════════════════════════════════════════════════════ */

/* Osmanlı geometrik desen arka plan SVG */
.about-hero__ornament {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.about-hero__ornament-svg {
  width: min(600px, 90vw);
  height: min(600px, 90vw);
  opacity: 0.7;
  animation: ornamentSpin 80s linear infinite;
  will-change: transform;
}

@keyframes ornamentSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Hero istatistik mini şeridi */
.about-hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 2.8rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(207,169,103,0.18);
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s var(--ease-silk, cubic-bezier(0.25,.46,.45,.94)) 1.1s forwards;
}

.about-hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}

.about-hero__stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4.5vw, 2rem);
  font-weight: 700;
  color: var(--antique-gold);
  line-height: 1;
}

.about-hero__stat-label {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(238,229,211,0.5);
}

.about-hero__stat-divider {
  width: 1px;
  height: 2.4rem;
  background: rgba(207,169,103,0.2);
  flex-shrink: 0;
}

@media (max-width: 479px) {
  .about-hero__stat-divider { display: none; }
  .about-hero__stats { gap: 1.8rem 2rem; }
}

/* ════════════════════════════════════════════════════════════
   BÖLÜM NAVİGASYONU — Sticky Chapter Bar
════════════════════════════════════════════════════════════ */
.chapter-nav {
  position: sticky;
  top: 80px; /* Ana navbar yüksekliği + emniyet payı */
  top: calc(80px + env(safe-area-inset-top));
  z-index: 9998; /* Ana navbar (9999) altında, içeriğin üstünde */
  background: rgba(238,229,211,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--beige-transition);
  box-shadow: 0 4px 24px rgba(93,104,103,0.07);
  transition: box-shadow 0.3s ease;
}

.chapter-nav__list {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.chapter-nav__list::-webkit-scrollbar { display: none; }

.chapter-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.7rem 1.2rem;
  min-width: max-content;
  color: var(--main-dark);
  text-decoration: none;
  position: relative;
  transition: color var(--transition-fast, 0.22s ease);
}

@media (min-width: 640px) {
  .chapter-nav__item {
    flex: 1;
    min-width: 0;
    padding: 0.85rem 1rem;
  }
}

/* Aktif ve hover alt çizgisi */
.chapter-nav__item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 10%; right: 10%;
  height: 2px;
  background: var(--antique-gold);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-silk, ease);
  border-radius: 2px 2px 0 0;
}

.chapter-nav__item:hover,
.chapter-nav__item.is-active {
  color: var(--antique-gold);
}

.chapter-nav__item:hover::after,
.chapter-nav__item.is-active::after {
  transform: scaleX(1);
}

.chapter-nav__num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--antique-gold);
  opacity: 0.6;
  line-height: 1;
  transition: opacity var(--transition-fast, 0.22s ease);
}

.chapter-nav__item:hover .chapter-nav__num,
.chapter-nav__item.is-active .chapter-nav__num {
  opacity: 1;
}

.chapter-nav__label {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
}

/* ════════════════════════════════════════════════════════════
   TİMELİNE EK STİLLER — Lead & Secondary Img
════════════════════════════════════════════════════════════ */

/* Şiirsel açılış cümlesi */
.timeline__lead {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.8vw, 1.28rem);
  font-style: italic;
  font-weight: 400;
  color: var(--antique-gold);
  line-height: 1.55;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 0;
}

/* Mobilde lead cümlesinin önüne ince bir çizgi */
.timeline__lead::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--antique-gold);
  margin-bottom: 0.5rem;
  opacity: 0.6;
}

/* Vurgulanan strong metinler */
.timeline__body strong {
  font-weight: 600;
  color: var(--main-dark);
}

.timeline__body em {
  font-style: italic;
  color: var(--gold-brown);
}

/* İkincil görsel — timeline text içinde */
.timeline__secondary-img {
  display: none; /* Mobilde gizli, masaüstünde görünür */
}

@media (min-width: 1024px) {
  .timeline__secondary-img {
    display: block;
  }
}

/* WebP Lazy-load: timeline görselleri için blur-up */
.timeline__photo {
  filter: blur(8px);
  transform: scale(1.03);
  transition: filter 0.55s ease, transform 0.55s ease, opacity 0.55s ease;
  opacity: 0;
}

.timeline__photo.img-loaded {
  filter: none;
  transform: none;
  opacity: 1;
}

/* ════════════════════════════════════════════════════════════
   MÜHÜR BÖLÜMÜ — İmza / Seal Section
════════════════════════════════════════════════════════════ */
.seal-section {
  position: relative;
  padding: var(--space-xl) 0;
  background: var(--main-dark);
  overflow: hidden;
  text-align: center;
}

/* Tam ekran kaplayan dekoratif SVG desen */
.seal-section__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.seal-section__pattern {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

/* Radial ışık gölgesi */
.seal-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(207,169,103,0.10) 0%, transparent 65%),
    radial-gradient(ellipse at 20% 20%, rgba(105,145,157,0.06) 0%, transparent 50%);
  pointer-events: none;
}

/* İnce diagonal desen */
.seal-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(207,169,103,0.03),
    rgba(207,169,103,0.03) 1px,
    transparent 1px,
    transparent 36px
  );
  pointer-events: none;
}

.seal-section__inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin-inline: auto;
  padding-inline: var(--container-pad, 1.25rem);
}

/* Üst süsleme */
.seal-section__ornament-top,
.seal-section__ornament-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.seal-section__ornament-bottom {
  margin-bottom: 0;
  margin-top: 2rem;
}

.seal-ornament-line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(207,169,103,0.45));
}

.seal-section__ornament-bottom .seal-ornament-line {
  background: linear-gradient(to left, transparent, rgba(207,169,103,0.45));
}

/* Manifesto etiketi */
.seal-section__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--antique-gold);
  opacity: 0.65;
  margin-bottom: 1.8rem;
}

/* Ana mühür alıntısı */
.seal-section__quote {
  margin: 0;
  padding: 0;
}

.seal-section__text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.5vw, 2.8rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.3;
  color: var(--antique-gold);
  letter-spacing: -0.01em;

  /* Altın parlama efekti */
  background: linear-gradient(
    135deg,
    var(--gold-brown)    0%,
    var(--antique-gold)  35%,
    #e8c27a              55%,
    var(--antique-gold)  70%,
    var(--gold-brown)    100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShine 5s linear infinite;
  will-change: background-position;
}

@keyframes goldShine {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Satır kırma kontrolü */
.seal-br { display: none; }

@media (max-width: 540px) {
  .seal-br { display: block; }
  .seal-section__text {
    font-size: clamp(1.3rem, 5.5vw, 1.8rem);
    letter-spacing: 0;
  }
}

/* İmza satırı */
.seal-section__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 2rem;
}

.seal-section__sig-line {
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: rgba(207,169,103,0.3);
}

.seal-section__sig {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(207,169,103,0.55);
  font-style: normal;
}

/* ════════════════════════════════════════════════════════════
   BÖLÜM NAVİGASYON — AKTİF İZLEME (JS ile)
════════════════════════════════════════════════════════════ */
/* Bu sınıf, JS tarafından scroll pozisyonuna göre atanır */
.chapter-nav__item.is-active {
  color: var(--antique-gold);
}

/* ════════════════════════════════════════════════════════════
   ERİŞİLEBİLİRLİK — Azaltılmış Hareket
════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .about-hero__ornament-svg { animation: none; }
  .seal-section__text       { animation: none; background-position: 0% center; }
  .timeline__photo {
    filter: none;
    transform: none;
    opacity: 1;
    transition: none;
  }
}

/* ════════════════════════════════════════════════════════════
   TABLET (≥ 640px)
════════════════════════════════════════════════════════════ */
@media (min-width: 640px) {
  .about-hero__stats {
    gap: 2.2rem;
    flex-wrap: nowrap;
  }

  .seal-section__text {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
  }
}

/* ════════════════════════════════════════════════════════════
   MASAÜSTÜ (≥ 1024px)
════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  .chapter-nav {
    top: 86px;
  }

  .about-hero__stats {
    gap: 3rem;
  }

  .seal-section__inner {
    padding-inline: 4rem;
  }
}
