/* ═══════════════════════════════════════════
   SendenSana — Layout
   ═══════════════════════════════════════════ */

/* ═══ Header Banner — banner-2 background, brand left, nav right ═══ */
.header-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 90px;
  background: url('../img/banner-bg.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--sp-4) + env(safe-area-inset-top)) var(--sp-8) var(--sp-4);
  z-index: var(--z-header);
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

/* Üst gradient overlay — sağ taraf menü okunabilirliği */
.header-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 10, 15, 0.3) 0%,
    rgba(10, 10, 15, 0.15) 30%,
    rgba(10, 10, 15, 0.2) 60%,
    rgba(10, 10, 15, 0.45) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Alt ince parlak çizgi */
.header-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.4), rgba(6,182,212,0.3), transparent);
  z-index: 2;
}

/* Banner her zaman sabit — sticky davranış yok */

/* sticky modda hero text zaten yukarıda küçültülüyor */

/* ── Brand grubu (sol taraf — banner-1 tarzı cam panel + nebula) ── */
.header-banner__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  padding: var(--sp-5) var(--sp-8);
  border-radius: 3px;
  overflow: hidden;
}

/* Katman 1: Canlı nebula arka planı (camın arkasında görünen) */
.header-banner__brand::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: url('../img/banner-bg.jpg') 75% center / cover no-repeat;
  filter: brightness(1.2) saturate(1.4);
  z-index: -2;
}

/* Katman 2: Buğulu cam efekti (hafif buzlu, nebula hala görünsün) */
.header-banner__brand::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(140, 120, 180, 0.08);
  backdrop-filter: blur(2px) saturate(1.2);
  -webkit-backdrop-filter: blur(2px) saturate(1.2);
  border: 1px solid rgba(200, 185, 255, 0.15);
  border-radius: 3px;
  /* Cam kenar ışık yansımaları */
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.08),
    inset -1px 0 0 rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 0 30px rgba(139, 92, 246, 0.08);
  z-index: -1;
}

.header-banner__logo {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.4));
  flex-shrink: 0;
}

.header-banner__brand-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.header-banner__hero-text {
  display: flex;
  align-items: baseline;
  gap: 0;
  white-space: nowrap;
  line-height: 1;
}

/* Her harf — Cinzel serif, banner-1 tarzı ışıklı harfler */
.hero-letter {
  font-family: 'Cinzel', 'Georgia', serif;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 500;
  color: rgba(255, 250, 255, 0.92);
  letter-spacing: 8px;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.5),
    0 0 20px rgba(210, 195, 255, 0.35),
    0 0 40px rgba(139, 92, 246, 0.2);
}

/* S harfleri — büyük, daha parlak */
.hero-letter--cap {
  font-size: clamp(1.6rem, 3.2vw, 2.7rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 10px;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.7),
    0 0 25px rgba(230, 215, 255, 0.5),
    0 0 50px rgba(139, 92, 246, 0.3),
    0 0 80px rgba(139, 92, 246, 0.12);
}

.header-banner__slogan {
  font-family: 'Cinzel', 'Georgia', serif;
  font-size: 0.75rem;
  color: rgba(220, 200, 255, 0.85);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 400;
  padding-left: 2px;
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.3),
    0 0 15px rgba(139, 92, 246, 0.2);
}

/* Banner sabit — sticky küçültme yok */

/* ── Nav (right side) ── */
.header-banner__nav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  position: relative;
  z-index: 5;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav__link {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  transition: all var(--dur-fast) var(--ease-in-out);
  cursor: pointer;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  text-decoration: none;
}

.nav__link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  text-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

.nav__link--active {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Dil seçici */
.header-banner__nav .lang-selector {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-sm);
  padding: var(--sp-1) var(--sp-2);
  font-size: var(--fs-xs);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-in-out);
}

.header-banner__nav .lang-selector:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(139, 92, 246, 0.3);
}

/* Eski header kaldırıldı — header-banner kullanılıyor */

/* Pages */
.page {
  display: none;
  min-height: 100vh;
  width: 100%;
  padding-top: 150px; /* banner fixed yüksekliği + boşluk */
  padding-bottom: var(--sp-8);
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
}

.page--active {
  display: flex;
  animation: pageIn var(--dur-normal) var(--ease-out);
}

/* Content wrapper */
.content {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--sp-6);
  text-align: center;
}

.content--left { text-align: left; }

/* Content box (referanslar, hakkımızda, geri bildirim) */
.content-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: var(--sp-10);
  max-width: 800px;
  width: 100%;
  text-align: left;
}

/* Practice Menu Grid */
.practice-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  max-width: 800px;
  width: 100%;
  margin: var(--sp-2) auto;
  padding: 0 var(--sp-4);
}

.practice-grid .practice-card {
  width: calc(33.33% - var(--sp-3));
}

/* Practice Screen (Full overlay) */
.practice-screen {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: var(--z-practice);
  background: var(--c-bg);
  overflow: hidden;
}

.practice-screen--active {
  display: flex;
  flex-direction: column;
  animation: fadeIn var(--dur-slow) var(--ease-out);
}

/* ── Practice Intro (açıklama sayfası) ── */
.practice__intro {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: var(--sp-8) var(--sp-6);
  overflow-y: auto;
  flex: 1;
  text-align: center;
}

.practice__intro .info-note {
  text-align: left;
  margin: var(--sp-6) auto;
}

.practice__proceed-btn {
  margin-top: var(--sp-6);
  font-size: var(--fs-lg);
  padding: var(--sp-3) var(--sp-10);
}

/* Practice screen layout — scrollable content wrapper */
.practice__top {
  width: 100%;
  padding: var(--sp-8) var(--sp-6) var(--sp-4);
  text-align: center;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  z-index: 5;
  transition: all var(--dur-slow) var(--ease-out);
}

.practice__controls {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: var(--sp-4) var(--sp-4) var(--sp-6);
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  transition: all var(--dur-slow) var(--ease-out);
}

/* Cover image (inside practice screen — uyku modu) */
.practice-cover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 400px;
  max-height: 400px;
  width: 80%;
  height: auto;
  object-fit: contain;
  z-index: 2;
  opacity: 0;
  transition: opacity 1s var(--ease-in-out);
  border-radius: var(--r-lg);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.practice-cover--visible {
  opacity: 0.7;
}

/* Background video (inside practice screen) */
.practice-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.8s var(--ease-in-out);
  object-fit: cover;
  pointer-events: none;
}

.practice-video--visible { opacity: 1; }

/* ── Ana sayfa — banner + içerik + footer tek viewport'a sığsın ── */
.page--has-hero {
  padding-top: 140px;
  padding-bottom: 0;
  min-height: auto;
  flex: 1;
  justify-content: center;
}

/* ── Mini Ambient Player ── */
.ambient-player {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--r-full);
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.12);
  cursor: pointer;
  transition: all var(--dur-normal) var(--ease-out);
  user-select: none;
}

.ambient-player:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.25);
}

.ambient-player__btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.15);
  transition: all var(--dur-fast) var(--ease-in-out);
}

.ambient-player__btn:hover {
  background: rgba(139, 92, 246, 0.3);
}

.ambient-player__icon {
  color: var(--c-primary);
  font-size: 12px;
  line-height: 1;
  margin-left: 2px;
}

/* Equalizer barları */
.ambient-player__bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 20px;
}

.ambient-bar {
  width: 3px;
  height: 4px;
  background: var(--c-primary);
  border-radius: 2px;
  transition: height 0.15s ease;
  opacity: 0.4;
}

/* Çalarken barlar animasyonlu */
.ambient-player--playing .ambient-bar {
  opacity: 0.8;
  animation: ambientBounce 0.8s ease-in-out infinite;
}

.ambient-player--playing .ambient-bar:nth-child(1) { animation-delay: 0s; }
.ambient-player--playing .ambient-bar:nth-child(2) { animation-delay: 0.15s; }
.ambient-player--playing .ambient-bar:nth-child(3) { animation-delay: 0.3s; }
.ambient-player--playing .ambient-bar:nth-child(4) { animation-delay: 0.45s; }
.ambient-player--playing .ambient-bar:nth-child(5) { animation-delay: 0.1s; }

@keyframes ambientBounce {
  0%, 100% { height: 4px; }
  50% { height: 18px; }
}

.ambient-player__label {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  letter-spacing: 1px;
  font-weight: 400;
  transition: color var(--dur-fast);
}

.ambient-player--playing .ambient-player__label {
  color: var(--c-primary);
}

/* Footer */
.footer {
  padding: var(--sp-4) var(--sp-6) var(--sp-3);
  text-align: center;
  border-top: 1px solid var(--c-border);
  margin-top: auto;
}

.footer__eco {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-6);
  margin-bottom: var(--sp-3);
  flex-wrap: wrap;
}

.footer__eco-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  border: 1px solid transparent;
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease-in-out);
}

.footer__eco-card:hover {
  background: var(--c-surface-hover);
  border-color: var(--c-border-hover);
}

.footer__eco-card--active {
  border-color: rgba(139, 92, 246, 0.2);
  background: rgba(139, 92, 246, 0.05);
}

.footer__eco-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  object-fit: cover;
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.3));
  transition: all var(--dur-fast) var(--ease-in-out);
}

.footer__eco-card:hover .footer__eco-logo {
  filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.5));
  transform: scale(1.05);
}

.footer__eco-card--active .footer__eco-logo {
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.footer__eco-name {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: 1px;
}

.footer__eco-card--active .footer__eco-name {
  color: var(--c-primary);
}

.footer__eco-slogan {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  font-weight: 300;
  letter-spacing: 0.5px;
  text-align: center;
  max-width: 160px;
  line-height: 1.3;
}

.footer__eco-role {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer__eco-arrow {
  color: var(--c-text-muted);
  font-size: var(--fs-lg);
  opacity: 0.4;
}

.footer__tagline {
  color: var(--c-text-muted);
  font-size: var(--fs-xs);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: var(--sp-2);
}

/* ── Playing state: hide everything except small timer + pause button ── */
.practice-screen--playing .practice__top {
  opacity: 0;
  pointer-events: none;
  flex: 0;
  padding: 0;
  overflow: hidden;
  max-height: 0;
}

/* Nefes rehberi — çalışırken nefes dairesi + timer + yönlendirme her zaman görünsün */
.practice-screen--playing.practice-screen--breath .practice__top {
  opacity: 1;
  pointer-events: all;
  flex: 1;
  padding: var(--sp-8) var(--sp-6) var(--sp-4);
  overflow: visible;
  max-height: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Nefes rehberinde playing modunda info-note ve title gizle, sadece daire + timer kalsın */
.practice-screen--playing.practice-screen--breath .practice__top .practice__title {
  display: none;
}

.practice-screen--playing .practice__controls {
  opacity: 0;
  pointer-events: none;
  max-height: 0;
  padding: 0;
  overflow: hidden;
}

/* Floating mini-bar: timer + pause — always visible during play */
.practice-screen .practice__minibar {
  display: none;
}

.practice-screen--playing .practice__minibar {
  display: flex;
  position: fixed;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-6);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,0.1);
  opacity: 0.7;
  transition: opacity var(--dur-fast);
}

.practice-screen--playing .practice__minibar:hover {
  opacity: 1;
}

.practice__minibar-timer {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--c-primary);
  font-variant-numeric: tabular-nums;
  min-width: 60px;
  text-align: center;
}

.practice__minibar-btn {
  background: none;
  border: none;
  color: var(--c-text);
  font-size: var(--fs-xl);
  cursor: pointer;
  padding: var(--sp-1);
  line-height: 1;
}

/* Tap to show full controls during play */
.practice-screen--playing.controls-revealed .practice__top {
  opacity: 1;
  pointer-events: all;
  flex: 1;
  padding: var(--sp-8) var(--sp-6) var(--sp-4);
  max-height: none;
  overflow-y: auto;
}

.practice-screen--playing.controls-revealed .practice__top .info-note {
  display: none; /* Keep info hidden even when controls revealed */
}

.practice-screen--playing.controls-revealed .practice__controls {
  opacity: 1;
  pointer-events: all;
  max-height: none;
  padding: var(--sp-4) var(--sp-4) var(--sp-6);
  overflow: visible;
}

/* Sleep dark mode */
.practice-screen--dark {
  background: #000 !important;
}

.practice-screen--dark .practice__top {
  opacity: 0.3;
}

.practice-screen--dark .practice__controls {
  opacity: 0.4;
}

/* Fullscreen mode — handled by --playing state now */
