/* ===== Online Akademi — TASARIM DEMOSU (28.09.2026) =====
   Bu dosya :app ile HER sayfaya yüklenir; sızıntı olmasın diye tüm sınıflar
   oa- önekli. Demo kaldırılırsa dosya olduğu gibi silinir. */

.oa-soluk { color: var(--text-muted); font-size: 14px; }
.oa-soluk-acik { color: #9FB0CC; font-size: 14px; }
.oa-tam { width: 100%; justify-content: center; }
.oa-form { margin: 0; }
.oa-paragraf { color: #445; line-height: 1.75; font-size: 16px; margin: 0; }

/* --- Kapak --- */
.oa-kapak {
  position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center;
  color: #fff; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #0673E4 0%, #0B1F4D 100%);
}
.oa-kapak::before, .oa-kapak::after {
  content: ""; position: absolute; border-radius: 50%; z-index: -1;
  border: 1.5px solid rgba(255,255,255,.14);
}
.oa-kapak::before { width: 70%; aspect-ratio: 1; right: -18%; top: -30%; box-shadow: 0 0 0 28px rgba(255,255,255,.04); }
.oa-kapak::after  { width: 38%; aspect-ratio: 1; left: -10%; bottom: -22%; background: rgba(255,255,255,.05); }
.oa-kapak--green { background: linear-gradient(135deg, #63C61A 0%, #0B7A5C 55%, #0B1F4D 100%); }
.oa-kapak--navy  { background: linear-gradient(135deg, #1B3A7A 0%, #0B1F4D 70%); }
.oa-kapak-ikon {
  width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(2px);
}
.oa-kapak--buyuk .oa-kapak-ikon { width: 120px; height: 120px; border-radius: 30px; }
/* Yüklenmiş kapak görseli: kutuyu doldurur (kenarlardan kırpılabilir); desen
   halkaları görselin üstüne binmesin. */
.oa-kapak--gorsel { background: #0B1F4D; }
.oa-kapak--gorsel::before, .oa-kapak--gorsel::after { display: none; }
.oa-kapak-gorsel { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.oa-kapak-etiket {
  position: absolute; left: 14px; bottom: 12px; font-size: 12px; font-weight: 600;
  background: rgba(11,31,77,.55); padding: 4px 10px; border-radius: 999px;
}

/* --- Katalog hero --- */
.oa-hero { background: radial-gradient(1200px 400px at 85% 0%, rgba(6,115,228,.35), transparent 60%), var(--navy); color: #fff; }
.oa-hero-ic { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-block: 56px; }
.oa-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
.oa-hero h1 { font-size: 44px; line-height: 1.12; font-weight: 800; letter-spacing: -.8px; margin-bottom: 14px; }
.oa-hero p { font-size: 17.5px; line-height: 1.6; color: #C9D6EE; max-width: 560px; }
.oa-hero-istatistik { display: flex; gap: 36px; margin-top: 30px; }
.oa-hero-istatistik div { display: flex; flex-direction: column; }
.oa-hero-istatistik strong { font-size: 32px; font-weight: 800; line-height: 1.1; }
.oa-hero-istatistik span { font-size: 14px; color: #9FB0CC; }

.oa-mock { background: #14295C; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 14px; box-shadow: 0 30px 60px rgba(0,0,0,.35); display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; }
.oa-mock-ekran { aspect-ratio: 16 / 10; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #63C61A, #0B7A5C 55%, #0B1F4D); }
.oa-mock-oynat { color: #fff; opacity: .95; position: relative; z-index: 1; filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)); }
.oa-mock-ekran--gorsel { position: relative; overflow: hidden; background: #0B1F4D; }
.oa-mock-gorsel { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Oynat simgesi her görselde okunsun: hafif lacivert karartma. */
.oa-mock-ekran--gorsel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,31,77,.05), rgba(11,31,77,.45)); }
.oa-mock-liste { display: flex; flex-direction: column; gap: 6px; }
.oa-mock-satir { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #C9D6EE; padding: 7px 8px; border-radius: 8px; line-height: 1.3; }
.oa-mock-satir.is-aktif { background: rgba(6,115,228,.35); color: #fff; }
.oa-mock-tik { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); }
.oa-mock-tik.is-bitti { background: var(--green); color: var(--navy); }

/* --- Katalog --- */
.oa-katalog-bas { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.oa-katalog-bas h2 { font-size: 26px; font-weight: 800; color: var(--navy); }
.oa-filtre { display: flex; gap: 8px; flex-wrap: wrap; }
.oa-filtre a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); font-size: 14.5px; font-weight: 600; color: var(--navy); background: #fff; }
.oa-filtre a:hover { border-color: var(--blue); color: var(--blue); }
.oa-filtre a.is-aktif { background: var(--navy); border-color: var(--navy); color: #fff; }

.oa-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.oa-kart {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease;
}
a.oa-kart:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.oa-kart-govde { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.oa-kart-meta { margin-bottom: 8px; }
.oa-seviye { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); font-weight: 500; }
.oa-kart h3 { font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.3; margin-bottom: 8px; }
.oa-kart p { font-size: 14.5px; color: var(--text-muted); line-height: 1.55; margin-bottom: 16px; }
.oa-kart-alt { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.oa-kart-sayac { display: inline-flex; gap: 14px; font-size: 13.5px; color: var(--navy); font-weight: 600; }
.oa-kart-sayac > span { display: inline-flex; align-items: center; gap: 5px; }
.oa-kart-sayac svg { color: var(--blue); }
.oa-kart-fiyat { font-size: 17px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.oa-kart-cta { display: inline-flex; align-items: center; gap: 5px; color: var(--blue); font-weight: 700; font-size: 14.5px; white-space: nowrap; }

.oa-bos { text-align: center; padding: 48px 20px; border: 1px dashed var(--border); border-radius: var(--radius-lg); background: var(--soft-gray); }
.oa-bos .oa-adim-ikon { margin: 0 auto 14px; }
.oa-bos h3 { font-size: 19px; color: var(--navy); margin-bottom: 6px; }
.oa-bos p { color: var(--text-muted); max-width: 520px; margin: 0 auto; }

.oa-adimlar-bant { background: var(--soft-gray); padding-block: 56px; }
.oa-adimlar-bant h2 { font-size: 26px; font-weight: 800; color: var(--navy); margin-bottom: 26px; }
.oa-adimlar { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: adim; }
.oa-adimlar li { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.oa-adim-ikon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--light-blue); color: var(--blue); margin-bottom: 16px; }
.oa-adimlar li:nth-child(2) .oa-adim-ikon { background: #EEF8E6; color: #3d7a10; }
.oa-adimlar h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.oa-adimlar p { font-size: 15px; color: var(--text-muted); line-height: 1.6; }

/* --- Eğitim detayı --- */
.oa-detay { padding-bottom: 56px; }
.oa-detay-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.oa-detay-bas { margin: 10px 0 26px; }
.oa-detay-bas h1 { font-size: 36px; font-weight: 800; color: var(--navy); line-height: 1.18; letter-spacing: -.6px; margin-bottom: 12px; text-wrap: balance; }
.oa-detay-ozet { font-size: 18px; color: #445; line-height: 1.6; max-width: 760px; }
.oa-detay-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; }
.oa-detay-meta span { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; color: var(--text-muted); }
.oa-detay-meta svg { color: var(--blue); }

.oa-kazanim ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; margin: 0; }
.oa-kazanim li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; color: #334; line-height: 1.5; }
.oa-kazanim li svg { color: var(--green); flex-shrink: 0; margin-top: 2px; }

.oa-icerik-bas { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.oa-icerik-bas .detail-section-title { margin: 0; }
.oa-bolum { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.oa-bolum summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; background: var(--soft-gray); }
.oa-bolum summary::-webkit-details-marker { display: none; }
.oa-bolum summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(-45deg); transition: transform .15s; margin-right: 4px; flex-shrink: 0; }
.oa-bolum[open] summary::before { transform: rotate(45deg); }
.oa-bolum-ad { font-weight: 700; color: var(--navy); flex: 1; }
.oa-ders-liste { list-style: none; margin: 0; padding: 0; }
.oa-ders { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--border); font-size: 15px; }
.oa-ders-tur { color: var(--blue); display: inline-flex; flex-shrink: 0; }
.oa-ders-ad { flex: 1; min-width: 0; color: var(--navy); }
a.oa-ders-ad:hover { color: var(--blue); text-decoration: underline; }
.oa-ders.is-kilitli .oa-ders-ad { color: #56627A; }
.oa-ders.is-kilitli .oa-ders-tur { color: #9AA7BA; }
.oa-ders-sag { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.oa-onizle { font-size: 13.5px; font-weight: 700; color: var(--blue); background: var(--light-blue); padding: 4px 10px; border-radius: 6px; }
.oa-onizle:hover { background: #d9eaff; }
.oa-kilit { color: #9AA7BA; display: inline-flex; }

.oa-satin-kart { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; position: sticky; top: 104px; box-shadow: var(--shadow); z-index: 5; }
.oa-satin-govde { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.oa-satin-govde h3 { font-size: 16px; color: var(--navy); margin: 12px 0 2px; }
.oa-fiyat { font-size: 30px; font-weight: 800; color: var(--navy); line-height: 1.1; margin-bottom: 4px; }
.oa-satin-not { font-size: 13.5px; color: var(--text-muted); text-align: center; line-height: 1.45; margin: 0; }
.oa-satin-not--kutu { background: var(--soft-gray); border-radius: 10px; padding: 12px; color: var(--navy); font-weight: 600; }
.oa-sahip { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #3d7a10; background: #EEF8E6; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; }
.oa-dahil { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.oa-dahil li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: #445; }
.oa-dahil svg { color: var(--blue); flex-shrink: 0; }

/* --- İzleme ekranı --- */
.oa-oynatici-bant { background: #0A1735; color: #fff; padding-block: 24px 32px; }
.oa-oynatici-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.oa-oynatici-ust { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.oa-geri { display: inline-flex; align-items: center; gap: 8px; color: #C9D6EE; font-weight: 600; font-size: 14.5px; min-width: 0; }
.oa-geri:hover { color: #fff; }


.oa-btn-koyu { background: rgba(255,255,255,.1); color: #fff; }
.oa-btn-koyu:hover { background: rgba(255,255,255,.18); }

.oa-ders-bas { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-top: 20px; }
.oa-ders-bas h1 { font-size: 24px; font-weight: 800; line-height: 1.25; margin-bottom: 4px; }
.oa-gezinme { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
/* Ders durumu + Önceki + Sonraki başlıkla aynı satıra sığmazsa alt satıra iner. */
.oa-ders-bas { flex-wrap: wrap; }

.oa-mufredat { background: #122452; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; max-height: calc(100vh - 140px); position: sticky; top: 104px; }
.oa-mufredat-bas { padding: 18px; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 8px; }
.oa-mufredat-liste { overflow-y: auto; padding: 6px 0 10px; }
.oa-mufredat-bolum { font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #7F93B8; padding: 14px 18px 6px; }
.oa-m-ders { display: flex; align-items: center; gap: 12px; padding: 10px 18px; font-size: 14px; color: #DCE5F5; border-left: 3px solid transparent; }
a.oa-m-ders:hover { background: rgba(255,255,255,.05); }
.oa-m-ders.is-simdi { background: rgba(6,115,228,.22); border-left-color: var(--blue); color: #fff; font-weight: 600; }
.oa-m-ders.is-kilitli { color: #7F93B8; }
.oa-m-durum { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; background: rgba(255,255,255,.08); color: #C9D6EE; }
.oa-m-ders.is-simdi .oa-m-durum { background: var(--blue); color: #fff; }
.oa-m-ders.is-bitti .oa-m-durum { background: var(--green); color: var(--navy); }
.oa-m-ad { flex: 1; min-width: 0; line-height: 1.35; }
.oa-m-tur { color: #7F93B8; display: inline-flex; flex-shrink: 0; }
.oa-mufredat-cta { padding: 16px 18px 18px; border-top: 1px solid rgba(255,255,255,.08); }

.oa-alt .detail-card { margin-bottom: 0; }

/* Drive'da kapalı dosya: oynatıcı/okuyucu yerine (bkz. izle.html.erb). */
.oa-hazirlaniyor { aspect-ratio: 16 / 9; border-radius: 14px; background: #122452; border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px; }
.oa-hazirlaniyor-ikon { width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #9FB0CC; margin-bottom: 6px; }
.oa-hazirlaniyor strong { font-size: 20px; color: #fff; }
.oa-hazirlaniyor span:last-child { color: #9FB0CC; font-size: 14.5px; max-width: 420px; line-height: 1.5; }

/* --- Video dersi: Drive oynatıcısı KIRPILMIŞ (ders_sayac_controller.js) ---
   Pencere, görünen kutudan üstte ve altta --oa-kirp kadar uzun. Drive videoyu
   pencerenin ortasına sığdırdığı için video kutuyu tam doldurur; Drive'ın alttaki
   kontrol çubuğu (hız, sarma, tam ekran) ve üstteki düğmeler kutunun DIŞINDA
   kalır — overflow:hidden onları hem gizler hem tıklanamaz yapar. Drive'ın çubuğu
   kutuya taşarsa --oa-kirp büyütülür. Tam ekranda çubuk büyüdüğü için daha fazla.
   29.09.2026: 76 px yetmedi — Emre'nin ekran görüntüsünde Drive'ın sarma çubuğu
   görünür alanın ~16 px içindeydi → 120 px (tam ekran 160, dar ekran 100). */
.oa-oynatici { --oa-kirp: 120px; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.oa-oynatici:fullscreen { --oa-kirp: 160px; display: flex; flex-direction: column; border-radius: 0; }
.oa-drive { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.oa-oynatici:fullscreen .oa-drive { flex: 1; aspect-ratio: auto; }
.oa-drive iframe { position: absolute; left: 0; width: 100%; top: calc(-1 * var(--oa-kirp)); height: calc(100% + 2 * var(--oa-kirp)); border: 0; display: block; }
.oa-drive-cubuk { position: relative; display: flex; align-items: center; gap: 14px; padding: 6px 10px 6px 16px; background: #0E1D45; color: #DCE5F5; font-size: 13.5px; min-height: 48px; }
.oa-drive-sure { flex: 1; display: inline-flex; align-items: center; gap: 6px; color: #9FB0CC; font-variant-numeric: tabular-nums; }
.oa-odak { position: absolute; width: 1px; height: 1px; overflow: hidden; outline: none; }
.oa-kontrol-dugme { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.oa-kontrol-dugme:hover { background: rgba(255,255,255,.14); }

.oa-ders-durum { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: #9FB0CC; padding: 0 6px; }
.oa-ders-durum.is-bitti { color: var(--green); }
.oa-ders-durum[hidden], .oa-gezinme .btn[hidden] { display: none; }
.oa-btn-kilitli { background: rgba(255,255,255,.06); color: #7F93B8; cursor: not-allowed; }
.oa-mufredat-not { font-size: 12.5px; }
.oa-m-sure { font-size: 12px; color: #7F93B8; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.oa-sure { font-variant-numeric: tabular-nums; }

/* --- PDF ders notu okuyucusu (pdf_okuyucu_controller.js) ---
   Açık zeminli belge masası; sayfalar StPageFlip ile iki yan yana (dar ekranda
   tek), altta koyu araç çubuğu. Yakınlaşınca masa kaydırılır. */
.oa-pdf { display: flex; flex-direction: column; background: #EEF1F6; border-radius: 14px; overflow: hidden; color: var(--navy); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.oa-pdf:fullscreen { border-radius: 0; }
.oa-pdf-bas { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px 10px; }
.oa-pdf-ust { font-size: 11.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--text-muted); }
.oa-pdf-ad { font-size: 15.5px; font-weight: 700; color: var(--navy); }
.oa-pdf-masa { position: relative; height: min(76vh, 860px); overflow: auto; padding: 16px; display: flex; justify-content: center; align-items: flex-start; }
.oa-pdf:fullscreen .oa-pdf-masa { height: auto; flex: 1; }
.oa-pdf-kitap { margin: 0 auto; flex-shrink: 0; }
.oa-pdf-sayfa { background: #fff; overflow: hidden; box-shadow: 0 2px 10px rgba(11,31,77,.08); }
.oa-pdf-sayfa canvas { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .25s; }
.oa-pdf-sayfa.is-cizildi canvas { opacity: 1; }
.oa-pdf-no { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 12px; color: #9AA7BA; pointer-events: none; }
.oa-pdf-sayfa.is-cizildi .oa-pdf-no { display: none; }
.oa-pdf-durum { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--text-muted); font-size: 15px; text-align: center; padding: 20px; }
.oa-pdf-durum.is-hata { color: #B42323; font-weight: 600; }
.oa-pdf-donen { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(11,31,77,.15); border-top-color: var(--blue); animation: oa-pdf-don .8s linear infinite; flex-shrink: 0; }
@keyframes oa-pdf-don { to { transform: rotate(360deg); } }
.oa-pdf-cubuk { align-self: center; display: flex; align-items: center; gap: 6px; margin: 4px 16px 16px; padding: 7px 12px; background: #0B1F4D; color: #fff; border-radius: 12px; box-shadow: 0 8px 24px rgba(11,31,77,.25); flex-wrap: wrap; justify-content: center; }
.oa-pdf-dugme { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: #fff; }
.oa-pdf-dugme:hover:not(:disabled) { background: rgba(255,255,255,.14); }
.oa-pdf-dugme:disabled { opacity: .35; cursor: default; }
.oa-pdf-sayac { min-width: 82px; text-align: center; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.oa-pdf-yuzde { min-width: 44px; font-size: 13px; color: #C9D6EE; font-variant-numeric: tabular-nums; }
.oa-pdf-ayrac { width: 1px; height: 20px; background: rgba(255,255,255,.18); margin: 0 6px; }
.oa-pdf-yakinlik { width: 110px; accent-color: #fff; }

/* --- Ders tamamlanınca (ders_sayac_controller#kilidiAc) ---
   Sayfa yenilenmeden: rozet ve "Sonraki Ders" belirir, listede bitirilen ders
   tike döner, sonraki dersin kilidi yeşil bir parıltıyla açılır. */
.oa-ders-durum.is-belirdi, .oa-gezinme .btn.is-belirdi { animation: oa-belir .55s cubic-bezier(.2,.8,.2,1) both; }
.oa-gezinme .btn-green.is-belirdi { animation: oa-belir .55s cubic-bezier(.2,.8,.2,1) both, oa-parilti 1.6s ease-out .45s 2; }
.oa-m-ders.is-yeni-bitti .oa-m-durum { animation: oa-durum-pop .6s cubic-bezier(.3,1.6,.5,1); }
.oa-m-ders.is-acildi { animation: oa-kilit-acildi 1.6s ease-out; }
.oa-m-ders.is-acildi .oa-m-durum { animation: oa-durum-pop .6s cubic-bezier(.3,1.6,.5,1) .15s both; }
.oa-mufredat .oa-ilerleme span { transition: width .8s cubic-bezier(.2,.8,.2,1); }
@keyframes oa-belir { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes oa-parilti { 0% { box-shadow: 0 0 0 0 rgba(99,198,26,.55); } 100% { box-shadow: 0 0 0 14px rgba(99,198,26,0); } }
@keyframes oa-durum-pop { 0% { transform: scale(.4); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes oa-kilit-acildi {
  0%   { background: rgba(99,198,26,.30); box-shadow: inset 3px 0 0 var(--green); color: #fff; }
  100% { background: transparent; box-shadow: inset 3px 0 0 transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .oa-ders-durum.is-belirdi, .oa-gezinme .btn.is-belirdi, .oa-gezinme .btn-green.is-belirdi,
  .oa-m-ders.is-yeni-bitti .oa-m-durum, .oa-m-ders.is-acildi, .oa-m-ders.is-acildi .oa-m-durum { animation: none; }
  .oa-mufredat .oa-ilerleme span { transition: none; }
}

/* --- İlerleme (_ilerleme.html.erb) — açık zemin varsayılan, --koyu izleme ekranı --- */
.oa-ilerleme-satir { display: flex; flex-direction: column; gap: 6px; }
.oa-ilerleme { height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; }
.oa-ilerleme span { display: block; height: 100%; background: var(--green); border-radius: inherit; transition: width .3s ease; }
.oa-ilerleme-metin { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.oa-ilerleme-satir--koyu .oa-ilerleme { background: rgba(255,255,255,.12); }
.oa-ilerleme-satir--koyu .oa-ilerleme-metin { color: #9FB0CC; }
.oa-kart-govde > .oa-ilerleme-satir { margin-top: 12px; }
.oa-satin-govde > .oa-ilerleme-satir { margin: 2px 0 4px; }
.oa-devam-not { font-size: 13px; color: var(--text-muted); text-align: center; line-height: 1.4; }

/* Tamamlanan ders — eğitim detayındaki içerik listesi */
.oa-bitti-rozet { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--navy); }

.oa-m-ders.is-simdi.is-bitti .oa-m-durum { background: var(--green); color: var(--navy); }

/* --- Aday paneli: Online Eğitimlerim --- */
.oa-panel-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.oa-panel-kart { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #fff; transition: box-shadow .18s ease, transform .18s ease; }
.oa-panel-kart:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.oa-panel-kart .oa-kapak-ikon { width: 64px; height: 64px; border-radius: 16px; }
.oa-panel-kart .oa-kapak-ikon svg { width: 32px; height: 32px; }
.oa-panel-govde { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.oa-panel-govde strong { color: var(--navy); font-size: 15.5px; line-height: 1.3; }

/* --- Duyarlı --- */
@media (max-width: 1200px) {
  .oa-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .oa-hero-ic { grid-template-columns: 1fr; }
  .oa-hero-gorsel { display: none; }
  .oa-detay-grid, .oa-oynatici-grid { grid-template-columns: 1fr; }
  .oa-satin-kart, .oa-mufredat { position: static; }
  .oa-mufredat { max-height: 480px; }
  .oa-detay-yan { order: -1; }
  .oa-satin-kart { display: grid; grid-template-columns: 300px 1fr; }
  .oa-satin-kart .oa-kapak { aspect-ratio: auto; min-height: 100%; }
  .oa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .oa-hero-ic { padding-block: 36px; }
  .oa-hero h1 { font-size: 32px; }
  .oa-hero p { font-size: 16px; }
  .oa-hero-istatistik { gap: 24px; }
  .oa-hero-istatistik strong { font-size: 26px; }
  .oa-grid, .oa-adimlar, .oa-kazanim ul { grid-template-columns: 1fr; }
  .oa-satin-kart { grid-template-columns: 1fr; }
  .oa-satin-kart .oa-kapak { aspect-ratio: 16 / 9; }
  .oa-detay-bas h1 { font-size: 28px; }
  .oa-detay-ozet { font-size: 16px; }
  .oa-ders-bas { flex-direction: column; }
  .oa-gezinme { width: 100%; }
  .oa-gezinme .btn { flex: 1; justify-content: center; }
  .oa-ders-bas h1 { font-size: 20px; }
  .oa-oynatici, .oa-pdf { border-radius: 10px; }
  .oa-oynatici { --oa-kirp: 100px; }
  .oa-pdf-masa { height: 68vh; padding: 10px; }
  .oa-pdf-yakinlik { width: 80px; }
  .oa-pdf-cubuk { margin: 4px 10px 12px; }
  .oa-gezinme { flex-wrap: wrap; justify-content: stretch; }
  .oa-ders-durum { flex: 1 1 100%; padding: 0 0 4px; }
  .oa-oynatici-bant { padding-block: 16px 24px; }
  .oa-ders { padding-inline: 14px; }
}

/* Akademi sitede kapalıyken yönetici önizlemesi (OnlineAkademi) */
.oa-onizleme-notu { background: #FFF6E5; border-bottom: 1px solid #F0B429; color: var(--navy); font-size: 14px; line-height: 1.5; padding-block: 10px; }
