/* 09 Telefonda. Ölçüler: arastirma/bolumler/09-telefonda.spec.md */
.telefonda {
  background: var(--zemin);
  text-align: start;
}
.telefonda__ic {
  max-width: var(--icerik-genislik);
  margin: 0 auto;
  padding: 180px 100px 60px;
}

/* Baş satırı */
.telefonda__satir {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 44px;
  margin-top: 10px;
}
.telefonda__baslik {
  max-width: 533px;
  font-weight: 500;
  font-size: 36px;
  line-height: 41px;
  letter-spacing: -1.08px;
  color: var(--murekkep);
}
.telefonda__yazi {
  max-width: 623px;
  margin-top: 7px;
  font-size: 16px;
  line-height: 25px;
  color: var(--yazi-govde);
}

/* Kart: medya üstte, sekmeler altta (DOM'da sekmeler önce gelir) */
.telefonda__kart {
  display: flex;
  flex-direction: column;
  width: 1126px;
  max-width: 100%;
  margin: 57px auto 0;
  border-radius: var(--r-kart-orta);
  overflow: hidden;
}
.telefonda__medya {
  position: relative;
  order: -1;
  aspect-ratio: 1126 / 444;
  overflow: hidden;
  background: var(--zemin-7);
}
/* Sahne: yumuşatılmış Mono stüdyo fotoğrafı (assets/telefonda/sahne-esneme.webp, mono-esneme orta bandı) */
.telefonda__sahne {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
/* Kurgu demo: "Örnek: Mono Studio" etiketi (11'deki "Örnek ekran" etiketiyle aynı dil) */
.telefonda__ornek {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 20px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(11, 12, 14, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-family: var(--yazi-ailesi-mono);
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.telefonda__panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--sure-gecis) ease, visibility 0s linear var(--sure-gecis);
}
.telefonda__panel.aktif {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--sure-gecis) ease, visibility 0s;
}
.telefonda__panel:focus-visible {
  outline: 2px solid var(--murekkep);
  outline-offset: -4px;
  border-radius: var(--r-kart-orta) var(--r-kart-orta) 0 0;
}
.telefonda__telefon {
  position: absolute;
  top: 7.9%;
  left: 50%;
  width: 29.3%;
  transform: translateX(-50%);
}

/* Sekmeler */
.telefonda__sekmeler {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--zemin-6);
}
.telefonda__sekme {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  height: 129px;
  /* Kaynakta 21 üst boşluk + dikey ortalama; iki satırlık metinde başlık 38 px'te. Tek satırlık sekmede de aynı hizada kalsın. */
  padding: 38px 20px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: start;
  cursor: pointer;
}
.telefonda__sekme + .telefonda__sekme { border-left: 1px solid var(--cizgi); }
.telefonda__sekme:focus-visible { outline-offset: -4px; }
.telefonda__gosterge {
  position: absolute;
  top: 0;
  left: 0;
  width: 203px;
  max-width: 60%;
  height: 3px;
  overflow: hidden;
  background: var(--cizgi-ince);
  opacity: 0;
  transition: opacity var(--sure-sekme) ease;
}
.telefonda__sekme.aktif .telefonda__gosterge { opacity: 1; }
.telefonda__dolgu {
  position: absolute;
  inset: 0;
  background: var(--vurgu);
  transform-origin: left center;
  transform: scaleX(0);
}
/* Dolgu 6 sn'lik sayaçtır: bitince sıradaki sekme seçilir (js/b-09-telefonda.js). */
.telefonda__sekme.aktif .telefonda__dolgu { animation: telefonda-dolgu 6s linear forwards; }
.telefonda:not(.gorunur) .telefonda__dolgu,
.telefonda.durdu .telefonda__dolgu,
.telefonda__sekmeler:has(:focus-visible) .telefonda__dolgu { animation-play-state: paused; }
@media (hover: hover) {
  .telefonda__sekmeler:hover .telefonda__dolgu { animation-play-state: paused; }
  .telefonda__sekme:not(.aktif):hover .telefonda__sekme-baslik { color: var(--yazi-soluk); }
}
@keyframes telefonda-dolgu {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.telefonda__sekme-baslik {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 500;
  font-size: 18px;
  line-height: 23px;
  color: var(--yazi-pasif);
  transition: color var(--sure-sekme) ease;
}
.telefonda__madde {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 2px;
  background: var(--cizgi-pasif);
  transition: background var(--sure-sekme) ease;
}
.telefonda__sekme-yazi {
  display: block;
  max-width: 335px;
  margin-top: 14px;
  font-size: 14px;
  line-height: 18.5px;
  color: var(--yazi-pasif);
  transition: color var(--sure-sekme) ease;
}
.telefonda__sekme.aktif .telefonda__sekme-baslik { color: var(--murekkep); }
.telefonda__sekme.aktif .telefonda__madde { background: var(--murekkep); }
.telefonda__sekme.aktif .telefonda__sekme-yazi { color: var(--yazi-govde); }
.telefonda__denetim { display: none; }

@media (max-width: 1240px) {
  .telefonda__ic { padding: 96px 40px 48px; }
  .telefonda__satir { flex-direction: column; gap: 16px; }
  .telefonda__kart { width: 100%; margin-top: 40px; }
  .telefonda__sekme { height: auto; padding: 24px 20px 21px; }
}

/* ≤768: kaynağın mapp düzeni. Yatay kaydırılan kartlar, altında telefon. */
@media (max-width: 768px) {
  .telefonda { padding: 32px 0 100px; overflow: hidden; }
  .telefonda__ic { padding: 0; }
  .telefonda__bas { padding: 0 24px; }
  .telefonda__ust { margin-left: -7px; }
  .telefonda__satir { gap: 10px; margin-top: 11px; }
  .telefonda__baslik { font-size: 30px; line-height: 36px; letter-spacing: -0.3px; }
  .telefonda__yazi { margin-top: 0; }

  .telefonda__kart { display: block; width: auto; margin: 17px 0 0; border-radius: 0; overflow: visible; }
  .telefonda__sekmeler {
    display: flex;
    align-items: stretch;
    gap: 18px;
    padding: 0 22px 5px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-padding: 0 22px;
    scrollbar-width: none;
    background: none;
  }
  .telefonda__sekmeler::-webkit-scrollbar { display: none; }
  .telefonda__sekme,
  .telefonda__sekme + .telefonda__sekme {
    flex: 0 0 236px;
    justify-content: flex-start;
    height: auto;
    min-height: 101px;
    padding: 14px 17px 15px;
    border: 0.3px solid #9f9e9e;
    border-radius: var(--r-kart-orta);
    background: var(--zemin-3);
    opacity: 0.25;
    transition: opacity var(--sure-gecis) ease;
  }
  .telefonda__sekme.aktif { opacity: 1; }
  .telefonda__gosterge { visibility: hidden; }
  .telefonda__madde { display: none; }
  .telefonda__sekme-baslik,
  .telefonda__sekme.aktif .telefonda__sekme-baslik {
    padding-right: 26px;
    font-size: 20px;
    line-height: 22px;
    letter-spacing: -0.2px;
    color: var(--murekkep);
  }
  .telefonda__sekme-yazi,
  .telefonda__sekme.aktif .telefonda__sekme-yazi {
    max-width: 200px;
    margin-top: 7px;
    font-size: 14.5px;
    line-height: 19.5px;
    letter-spacing: -0.1px;
    color: var(--yazi-gri);
  }
  .telefonda__denetim {
    position: absolute;
    top: 11px;
    right: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 23px;
    color: var(--murekkep);
  }
  .telefonda__denetim svg { width: 20px; height: 20px; }
  .telefonda__sekme:not(.aktif) .telefonda__denetim { visibility: hidden; }
  .telefonda__oynat,
  .telefonda.durdu .telefonda__durdur { display: none; }
  .telefonda.durdu .telefonda__oynat { display: block; }

  .telefonda__medya {
    display: grid;
    justify-content: center;
    margin-top: 42px;
    aspect-ratio: auto;
    overflow: visible;
    background: none;
  }
  .telefonda__sahne { display: none; }
  .telefonda__ornek { position: static; grid-area: 1 / 1; justify-self: center; margin-bottom: 16px; }
  .telefonda__panel { position: relative; inset: auto; grid-area: 2 / 1; }
  .telefonda__panel:focus-visible { outline-offset: 4px; border-radius: 38px; }
  .telefonda__telefon {
    position: relative;
    top: auto;
    left: auto;
    width: 223px;
    padding: 6px;
    border-radius: 34px;
    transform: none;
    box-shadow: inset 0 0 0 1.5px #3a3d40, 0 18px 40px -18px rgba(11, 12, 14, 0.45);
  }
  .telefonda__telefon .cerceve__ekran { border-radius: 28px; }
  .telefonda__telefon .cerceve__ada { top: 12px; width: 64px; height: 18px; border-radius: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .telefonda__sekme.aktif .telefonda__dolgu { animation: none; transform: scaleX(1); }
  .telefonda__denetim { display: none; }
}
