/* Eğitim dosyası, rehber (koç), ilk giriş yönlendirmesi ve "Nasıl oynanır".
   Masa dünyasına uyar: not kâğıdı, kıskaç, daktilo etiketi, kırmızı kalem halkası. mobil.css'ten sonra yüklenir. */

/* ---------- Eğitim dosyası kartı ve işaretleri ---------- */
.tfolder .stamp-r.egitim { color: #1F5E43; border-color: #1F5E43; }
.tfolder.egitim .ttab { letter-spacing: .08em; }
.tfolder .egitim-chip { margin: 0 0 6px; }
.egitim-chip { background: #1F5E43; color: #F1ECE0; }
.portrait.esya { display: grid; place-items: center; }
.portrait.esya::before { display: none; }
.portrait.esya i { font-size: 64px; color: #D9AE5E; }

/* Ana sayfada eğitim daveti: kıskaçlı not kâğıdı */
.egitim-davet { position: relative; margin-top: 22px; padding: 16px 18px 16px; border-radius: 3px; max-width: 460px; transform: rotate(-.6deg); display: grid; gap: 8px; }
.egitim-davet .clipm { right: 28px; top: -18px; }
.egitim-davet .typed { color: #1F5E43; letter-spacing: .06em; }
.egitim-davet p { margin: 0; color: #2A2E35; font-size: .95rem; }
.egitim-davet .btn-ghost { color: #15171A; border-color: rgba(21,23,26,.35); }
.egitim-davet .btn-ghost:hover { background: rgba(21,23,26,.06); }

/* Başlıkta "Nasıl oynanır" */
.nasil-link span { display: none; }
.nasil-link[aria-current="page"] { border-color: var(--marker); color: var(--marker); }
@media (min-width: 1280px) { .nasil-link span { display: inline; } }
@media (max-width: 360px) { .nasil-link { padding-inline: 9px; } }

/* Profil: yardım kartları */
.yardim-kart { display: grid; gap: 10px; margin-top: 18px; }
@media (min-width: 640px) { .yardim-kart { grid-template-columns: 1fr 1fr; } }
.ykart { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 4px; text-decoration: none; background: var(--sheet); color: #15171A; box-shadow: 0 14px 26px -16px rgba(0,0,0,.9); }
.ykart > i { font-size: 2rem; color: #1F5E43; flex: none; }
.ykart > span { display: grid; gap: 2px; min-width: 0; }
.ykart .small { color: #4A4E55; }
.ykart:hover { background: #F7F3E9; }
.ykart:focus-visible { outline: 3px solid var(--marker); outline-offset: 3px; }

/* ---------- Video yuvası ---------- */
.video-slot { margin: 18px 0 0; }
.video-slot[hidden] { display: none; }
.video-cerceve { position: relative; background: #0B0D10; padding: 8px 8px 8px; border-radius: 4px; box-shadow: 0 22px 40px -18px rgba(0,0,0,.9), 0 0 0 1px var(--line); }
.video-cerceve video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; background: #000; border-radius: 2px; }
.video-slot figcaption { margin-top: 6px; color: var(--ink-3); }

/* ---------- İlk giriş yönlendirmesi ---------- */
.modal.tanitim-sheet { max-width: 520px; background: var(--sheet); color: #15171A; border: 0; }
.tanitim { display: grid; gap: 14px; }
.tanitim-bas { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tanitim-bas h2 { margin-top: 10px; font-size: clamp(1.6rem, 7vw, 2.1rem); color: #15171A; }
.tanitim-bas .stamp-r { font-size: .85rem; }
.tanitim .x { background: rgba(21,23,26,.08); color: #15171A; flex: none; }
.tanitim-giris { margin: 0; color: #3A3E45; }
.tanitim-adim { list-style: none; counter-reset: ta; margin: 0; padding: 0; display: grid; gap: 8px; }
.tanitim-adim li { counter-increment: ta; position: relative; padding: 10px 12px 10px 46px; background: #fff8e4; border: 1px solid #E2D7BC; border-radius: 3px; font-size: .95rem; line-height: 1.4; }
.tanitim-adim li::before { content: counter(ta); position: absolute; left: 10px; top: 9px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #15171A; color: var(--marker); font-family: var(--typed); font-size: .9rem; }
.tanitim .video-slot { margin: 0; }
.tanitim .video-cerceve { box-shadow: 0 10px 22px -12px rgba(0,0,0,.6); }
.tanitim .video-slot figcaption { color: #5A5E66; }
.tanitim-dug { display: grid; gap: 8px; justify-items: stretch; }
.tanitim-dug .btn-ghost { color: #15171A; border-color: rgba(21,23,26,.35); }
.tanitim-dug .btn-ghost:hover { background: rgba(21,23,26,.06); }
.tanitim-dug .linkbtn { justify-self: center; padding: 8px 14px; color: #3A3E45; }
.tanitim .small.muted { color: #5A5E66; margin: 0; }
.tanitim a:not(.btn) { color: #1F5E43; }

/* ---------- Nasıl oynanır ---------- */
.nasil { max-width: 980px; }
.nasil-bas { display: grid; gap: 10px; margin-bottom: 6px; }
.nasil-bas h1 { font-size: clamp(2.2rem, 9vw, 4rem); }
.nasil-bas .lead { max-width: 58ch; color: var(--ink-2); font-size: 1.05rem; margin: 0; }
.nasil .video-slot { max-width: 760px; margin-top: 24px; }
.sekme-kartlar { display: grid; gap: 14px; }
@media (min-width: 640px) { .sekme-kartlar { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .sekme-kartlar { grid-template-columns: repeat(3, 1fr); } }
.sekme-kart { --c: var(--f-sari); position: relative; padding-top: 30px; min-width: 0; }
.sekme-kart .sk-tab { position: absolute; left: 0; top: 0; height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 0 18px 0 12px; background: var(--c); color: #15171A; font-family: var(--typed); font-size: .9rem; clip-path: polygon(7px 0, calc(100% - 10px) 0, 100% 100%, 0 100%); }
.sekme-kart .sk-ill { background: var(--sheet); border-top: 4px solid var(--c); padding: 12px 14px 0; display: grid; place-items: center; }
.sekme-kart .sk-ill svg { width: 100%; max-width: 200px; height: auto; display: block; }
.sekme-kart p { margin: 0; background: var(--sheet); color: #2A2E35; padding: 10px 14px 16px; font-size: .92rem; line-height: 1.45; box-shadow: 0 18px 26px -18px rgba(0,0,0,.9); }
.sekme-kart .sk-no { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: #15171A; color: var(--marker); font-family: var(--typed); font-size: .78rem; vertical-align: 1px; }
.kural-kartlar { display: grid; gap: 14px; }
@media (min-width: 820px) { .kural-kartlar { grid-template-columns: repeat(3, 1fr); } }
.kural-kart { padding: 18px 16px; border-radius: 3px; display: grid; gap: 8px; align-content: start; }
.kural-kart:nth-child(2) { transform: rotate(.5deg); }
.kural-kart h3 { color: #15171A; }
.kural-kart p { margin: 0; color: #2A2E35; font-size: .93rem; line-height: 1.45; }
.kural-kart .small { color: #5A5E66; }
.kk-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #15171A; color: var(--marker); font-size: 1.2rem; }
.ekip-not { position: relative; padding: 22px 18px 16px; border-radius: 3px; max-width: 760px; }
.ekip-not .clipm { left: 26px; top: -18px; }
.ekip-not ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: #2A2E35; font-size: .95rem; line-height: 1.45; }
.nasil-son { display: grid; gap: 18px; justify-items: start; }
.nasil-son .sticky { max-width: 340px; font-size: 1.4rem; }

/* ---------- Rehber (koç) ---------- */
.koc-halka {
  position: fixed; z-index: 36; pointer-events: none; border: 3px solid var(--stamp); border-radius: 12px;
  box-shadow: 0 0 0 4px rgba(194, 59, 46, .22), 0 0 22px rgba(194, 59, 46, .35);
  transition: top .18s ease, left .18s ease, width .18s ease, height .18s ease;
}
.koc-halka[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .koc-halka { animation: kocNabiz 1.8s ease-in-out infinite; }
  @keyframes kocNabiz { 50% { box-shadow: 0 0 0 7px rgba(194, 59, 46, .12), 0 0 26px rgba(194, 59, 46, .45); } }
  .koc-not { animation: kocGel .26s cubic-bezier(.2,.8,.2,1) both; }
  .koc-not.yeni { animation: kocGel .26s cubic-bezier(.2,.8,.2,1) both, kocSalla .5s .1s ease-out; }
  @keyframes kocGel { from { opacity: 0; transform: translateY(14px) rotate(-.4deg); } }
  @keyframes kocSalla { 30% { transform: rotate(.8deg); } 60% { transform: rotate(-.9deg); } }
}
@media (prefers-reduced-motion: reduce) { .koc-halka { transition: none; } }

.koc-not {
  position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 10px);
  max-height: 46dvh; overflow: auto; overscroll-behavior: contain;
  background: var(--sheet); color: #15171A; border-radius: 3px; padding: 14px 14px 12px;
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 24px 44px -16px rgba(0,0,0,.95), 0 2px 8px rgba(0,0,0,.45);
  transform: rotate(-.4deg);
  background-image: linear-gradient(180deg, transparent 0 38px, rgba(21,23,26,.08) 38px 39px, transparent 39px), repeating-linear-gradient(180deg, transparent 0 25px, rgba(92,141,189,.12) 25px 26px);
}
.koc-not[hidden] { display: none; }
/* Kıskaç */
.koc-not::before { content: ""; position: absolute; left: 50%; top: -9px; width: 64px; height: 16px; margin-left: -32px; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #C7CCD3, #8F969F); box-shadow: 0 2px 3px rgba(0,0,0,.4); }
.koc-ust { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-family: var(--typed); font-size: .78rem; color: #4A4E55; }
.koc-etiket { display: inline-flex; align-items: center; gap: 5px; background: #15171A; color: var(--marker); padding: 2px 8px; border-radius: 2px; letter-spacing: .06em; text-transform: uppercase; }
.koc-sayac { letter-spacing: .04em; }
.koc-x { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 6px 2px 6px 8px; font: inherit; color: #4A4E55; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.koc-x:hover { color: #15171A; }
.koc-aferin { margin: 0 0 4px; display: inline-flex; gap: 6px; align-items: center; font-family: var(--hand); font-size: 1.25rem; color: #1F5E43; line-height: 1; }
.koc-baslik { margin: 2px 0 4px; font-size: 1.12rem; font-stretch: 80%; font-weight: 850; text-transform: uppercase; letter-spacing: .01em; color: #15171A; }
.koc-baslik:focus { outline: none; }
.koc-baslik:focus-visible { outline: 2px solid var(--stamp); outline-offset: 2px; }
.koc-metin { margin: 0; font-size: .93rem; line-height: 1.45; color: #2A2E35; }
.koc-alt { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.koc-iz { display: inline-flex; gap: 4px; }
.koc-iz i { width: 14px; height: 4px; border-radius: 2px; background: rgba(21,23,26,.18); }
.koc-iz i.ok { background: #1F5E43; }
.koc-iz i.su { background: var(--stamp); width: 22px; }
.koc-dug { display: inline-flex; gap: 8px; align-items: center; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.koc-dug .btn-ghost { color: #15171A; border-color: rgba(21,23,26,.35); }
.koc-atla { color: #4A4E55; padding: 8px 2px; font-size: .88rem; }
.koc-not .btn:focus-visible, .koc-not .linkbtn:focus-visible, .koc-x:focus-visible { outline: 3px solid var(--stamp); outline-offset: 2px; }

/* Kapalıyken: yeniden açma sekmesi */
.koc-ac {
  position: fixed; z-index: 34; left: 12px; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px);
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px 0 12px; border: 0; cursor: pointer;
  background: var(--sheet); color: #15171A; font-family: var(--typed); font-size: .85rem; border-radius: 3px;
  box-shadow: 0 12px 24px -10px rgba(0,0,0,.9); transform: rotate(-1.5deg);
}
.koc-ac[hidden] { display: none; }
.koc-ac i { color: #1F5E43; font-size: 1.05rem; }
.koc-ac:focus-visible { outline: 3px solid var(--marker); outline-offset: 2px; }
.koc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Not açıkken sayfanın sonu notun arkasında kalmasın; bildirim notun üstünde çıksın */
body.koc-acik main.view { padding-bottom: calc(var(--nav-h) + var(--koc-h, 170px) + 40px + env(safe-area-inset-bottom)); }
body.koc-acik #toast { bottom: calc(var(--nav-h) + var(--koc-h, 170px) + 22px + env(safe-area-inset-bottom)); }

@media (min-width: 960px) {
  .koc-not { left: auto; right: 28px; bottom: 24px; width: 360px; max-height: 60vh; padding: 16px 16px 14px; }
  .koc-not.sol { right: auto; left: 28px; }
  .koc-ac { bottom: 24px; left: 28px; }
  body.koc-acik main.view { padding-bottom: calc(var(--koc-h, 170px) + 60px); }
  body.koc-acik #toast { bottom: 28px; }
}
@media (max-width: 360px) {
  .koc-not { left: 8px; right: 8px; padding: 12px 12px 10px; }
  .koc-metin { font-size: .88rem; }
}
