/* ==========================================================================
   EĞİTİM VİDEOLARI — öğrenme yolu, ders kartları (video ya da "hazırlanıyor"),
   video penceresi, canlı destek. Süzgeç çipleri services.css'ten gelir.
   ========================================================================== */

/* ---------- Öğrenme yolu ---------- */
.ev-path {
  display: grid;
  gap: 10px;
  width: min(460px, 100%);
  margin-inline: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  counter-reset: none;
}
.ev-path li { position: relative; }
/* Adımları birleştiren dikey çizgi */
.ev-path li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 52px;
  height: 22px;
  width: 2px;
  background: var(--line-2);
}
.ev-path a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px 10px 10px;
  border-radius: 14px;
  transition: background-color .2s;
}
.ev-path a:hover { background: var(--bg-alt); }
.ev-path__num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
.ev-path li:first-child .ev-path__num { background: var(--red-600); }
.ev-path__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: var(--navy-50);
  color: var(--navy-800);
}
.ev-path__icon .i { width: 20px; height: 20px; }
.ev-path__text { display: grid; flex: 1; line-height: 1.3; }
.ev-path__text b { font-size: 15.5px; }
.ev-path__text small { font-size: 13px; color: var(--muted); }
.ev-path__arrow { color: var(--muted); transition: transform .25s var(--ease-out); }
.ev-path a:hover .ev-path__arrow { transform: translateX(3px); color: var(--ink); }

/* ---------- Ders kartları ---------- */
.ev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ev-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s, transform .35s var(--ease-out);
}
.ev-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-3px); }
.ev-card[hidden] { display: none; }
.ev-card.is-entering { animation: sv-in .45s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 40ms); }

.ev-thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--navy-900);
  overflow: hidden;
}
.ev-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.ev-card:hover .ev-thumb img { transform: scale(1.04); }
.ev-thumb__play {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgb(255 255 255 / .95);
  color: var(--red-600);
  box-shadow: 0 12px 30px -8px rgb(0 0 0 / .5);
  transition: transform .3s var(--ease-spring);
}
.ev-thumb__play .i { width: 30px; height: 30px; }
.ev-thumb:hover .ev-thumb__play { transform: scale(1.08); }
.ev-thumb__time {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgb(0 0 0 / .75);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

/* Video henüz yoksa: markalı yer tutucu */
.ev-thumb--soon {
  background:
    radial-gradient(60% 80% at 85% 0%, rgb(211 20 28 / .07), transparent 60%),
    radial-gradient(rgb(11 31 69 / .12) 1px, transparent 1.2px) 0 0 / 18px 18px,
    var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.ev-thumb__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  color: var(--navy-800);
  transition: background-color .25s, color .25s;
}
.ev-card:hover .ev-thumb__icon { background: var(--navy-900); color: #fff; }
.ev-thumb__icon .i { width: 28px; height: 28px; }
.ev-thumb__badge {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.ev-thumb__badge .i { width: 13px; height: 13px; }

.ev-card__body { display: grid; gap: 8px; padding: 20px 22px 22px; }
.ev-card__meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ev-card__meta span:first-child { color: var(--red-600); }
.ev-card__meta span:last-child { color: var(--muted); }
.ev-card h3 { font-size: 1.125rem; }
.ev-card__body > p:last-child { font-size: 14.5px; line-height: 1.6; color: var(--muted); }

.ev-note {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--bg-alt);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.ev-note .i { flex: none; margin-top: 2px; color: var(--red-600); }

/* ---------- Canlı destek ---------- */
.ev-help {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.ev-help__copy { display: grid; gap: 16px; }
.ev-help__actions { display: grid; gap: 10px; justify-items: stretch; }
.ev-help__actions .link-arrow { justify-self: center; margin-top: 6px; }

/* ---------- Video penceresi ---------- */
.ev-dialog {
  width: min(960px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: var(--radius-xl);
  background: var(--navy-950);
  color: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.ev-dialog::backdrop { background: rgb(7 19 40 / .75); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ev-dialog[open] { animation: ev-open .3s var(--ease-out); }
@keyframes ev-open { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.ev-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; }
.ev-dialog__head h2 { font-size: 1rem; }
.ev-dialog__head .icon-btn { background: transparent; border-color: rgb(255 255 255 / .25); color: #fff; }
.ev-dialog__frame { aspect-ratio: 16 / 9; background: #000; }
.ev-dialog__frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1060px) {
  .ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .ev-help { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ev-grid { grid-template-columns: 1fr; }
  .ev-path { padding: 12px; }
}
