/* NEO ödev ekranı (odev.html) ve öğretmen ödev paneli. Telefon, tablet, bilgisayar ve akıllı tahta için
   ölçüler clamp() ile ekran genişliğine göre büyür / küçülür; dokunma hedefleri en az 48 px. */
.neo-odev-sayfa {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: linear-gradient(160deg, #0d2a52 0%, #1c6cd8 55%, #8fc3ff 100%);
  color: #12243d;
}
.neo-odev {
  box-sizing: border-box;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  font-size: clamp(15px, 1.05vw + 10px, 26px);
}
.neo-odev *, .neo-odev *::before, .neo-odev *::after { box-sizing: border-box; }
.neo-odev__ust { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.neo-odev__gezinti { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.neo-odev__geri {
  display: inline-flex; align-items: center; min-height: 48px; padding: 8px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: #12243d; font-weight: 800; text-decoration: none; white-space: nowrap;
}
.neo-odev__logo { height: clamp(34px, 4vw, 64px); width: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); }
.neo-odev__kart {
  background: rgba(255, 255, 255, .95); border-radius: clamp(18px, 2vw, 32px);
  padding: clamp(16px, 2.4vw, 40px); box-shadow: 0 20px 60px rgba(4, 18, 40, .3);
}
.neo-odev__yukleniyor, .neo-odev__hata { margin: 0; font-weight: 700; }
.neo-odev__hata { color: #a3141a; }
.neo-odev__baslik { margin: 0 0 4px; font-size: clamp(22px, 2.2vw + 10px, 48px); line-height: 1.15; }
.neo-odev__alt { margin: 0 0 14px; color: #4b5d75; font-weight: 600; }
.neo-odev__rozet {
  display: inline-block; margin: 0 0 12px; padding: 6px 14px; border-radius: 999px;
  background: #e5efff; color: #0f4fa8; font-weight: 800; font-size: .85em;
}
.neo-odev__bilgi {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 10px; margin: 0 0 16px; padding: 0;
}
.neo-odev__bilgi div { background: #f2f6fc; border-radius: 14px; padding: 10px 14px; }
.neo-odev__bilgi dt { margin: 0; font-size: .78em; color: #5a6b82; font-weight: 700; }
.neo-odev__bilgi dd { margin: 2px 0 0; font-weight: 800; overflow-wrap: anywhere; }
.neo-odev__aciklama { margin: 0 0 16px; padding: 12px 14px; border-left: 5px solid #1c6cd8; background: #f5f9ff; border-radius: 10px; }
.neo-odev__ilerleme { margin: 0 0 18px; }
.neo-odev__ilerleme-ust { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-weight: 800; margin-bottom: 6px; }
.neo-odev__cubuk { height: clamp(14px, 1.4vw, 24px); background: #e3e9f2; border-radius: 999px; overflow: hidden; }
.neo-odev__cubuk span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #22b35e, #7be08f); border-radius: inherit; transition: width .4s; }
.neo-odev__oyun-sayilari { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.neo-odev__oyun-sayilari li { background: #eef3fa; border-radius: 999px; padding: 6px 12px; font-size: .85em; font-weight: 700; }
.neo-odev__durum { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .85em; }
.neo-odev__durum--tamamlandi { background: #d7f5e1; color: #0f6b34; }
.neo-odev__durum--devam { background: #fff1cf; color: #7a5200; }
.neo-odev__durum--baslanmadi { background: #e8edf5; color: #3b4b61; }
.neo-odev__durum--acildi { background: #e3ecff; color: #1d3f8a; }
.neo-odev__durum--suresi_doldu { background: #fde0e0; color: #8f1414; }
.neo-odev__bolum-baslik { margin: 6px 0 10px; font-size: 1.15em; }
.neo-odev__not { margin: 0 0 12px; color: #4b5d75; }
.neo-odev__oyunlar { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, clamp(150px, 16vw, 300px)), 1fr)); gap: clamp(10px, 1.4vw, 24px); }
.neo-odev__oyun {
  display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 3px solid transparent; border-radius: 18px;
  background: #f3f7fd; color: inherit; font: inherit; font-weight: 800; text-align: center; cursor: pointer;
  min-height: 48px; transition: transform .15s, border-color .15s;
}
.neo-odev__oyun:hover, .neo-odev__oyun:focus-visible { border-color: #1c6cd8; transform: translateY(-2px); outline: none; }
.neo-odev__oyun img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; background: #dfe8f5; }
.neo-odev__oyun small { font-weight: 600; color: #4b5d75; }
.neo-odev__tek { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(14px, 2vw, 36px); align-items: center; }
.neo-odev__tek img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; background: #dfe8f5; }
.neo-odev__tek h2 { margin: 0 0 12px; font-size: 1.4em; }
.neo-odev__baslat {
  display: block; width: 100%; min-height: clamp(64px, 6vw, 110px); border: 0; border-radius: 22px; cursor: pointer;
  background: linear-gradient(180deg, #2ccf6c, #149548); color: #fff; font: inherit; font-size: clamp(22px, 2vw + 10px, 46px);
  font-weight: 900; letter-spacing: .04em; box-shadow: 0 8px 0 #0d6b33, 0 14px 26px rgba(0,0,0,.2);
}
.neo-odev__baslat:active { transform: translateY(4px); box-shadow: 0 4px 0 #0d6b33; }
.neo-odev__baslat:disabled { background: #b8c3d1; box-shadow: none; cursor: not-allowed; }
.neo-odev__tamam { margin: 0 0 16px; padding: 14px 16px; border-radius: 16px; background: #d7f5e1; color: #0f6b34; font-weight: 800; }
@media (max-width: 700px) {
  .neo-odev__tek { grid-template-columns: 1fr; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .neo-odev { font-size: 15px; }
  .neo-odev__tek { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
  .neo-odev__baslat { min-height: 56px; }
}

/* ---- Öğretmen: ödev oluşturma penceresi ve ilerleme paneli ---- */
.neo-odev-olustur { width: min(96vw, 900px); max-height: 92vh; border: 0; border-radius: 22px; padding: 0; box-shadow: 0 20px 70px rgba(0,0,0,.35); }
.neo-odev-olustur::backdrop { background: rgba(6, 18, 36, .55); }
.neo-odev-olustur form { display: flex; flex-direction: column; max-height: 92vh; }
.neo-odev-olustur__ust, .neo-odev-olustur__alt { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; background: #f2f6fc; }
.neo-odev-olustur__ust h2 { margin: 0; font-size: 1.2rem; }
.neo-odev-olustur__govde { overflow: auto; padding: 16px 18px; display: grid; gap: 14px; }
.neo-odev-olustur fieldset { border: 1px solid #d5deea; border-radius: 14px; padding: 10px 14px; margin: 0; }
.neo-odev-olustur legend { font-weight: 800; padding: 0 6px; }
.neo-odev-olustur__turler { display: grid; gap: 8px; }
.neo-odev-olustur__turler label, .neo-odev-olustur__liste label { display: flex; gap: 8px; align-items: flex-start; min-height: 32px; }
.neo-odev-olustur__izgara { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.neo-odev-olustur__izgara label { display: grid; gap: 4px; font-weight: 700; font-size: .92rem; }
.neo-odev-olustur select, .neo-odev-olustur input[type="text"], .neo-odev-olustur input[type="number"],
.neo-odev-olustur input[type="datetime-local"], .neo-odev-olustur textarea {
  min-height: 42px; padding: 8px 10px; border: 1px solid #b9c6d8; border-radius: 10px; font: inherit; font-weight: 500; width: 100%;
}
.neo-odev-olustur__liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 4px 12px; max-height: 220px; overflow: auto; }
.neo-odev-olustur__bilgi { margin: 0; color: #4b5d75; font-size: .92rem; }
.neo-odev-olustur__mesaj { margin: 0; font-weight: 700; }
.neo-odev-olustur__mesaj--hata { color: #a3141a; }
.neo-odev-olustur__mesaj--tamam { color: #0f6b34; }
.neo-odev-panel { display: grid; gap: 10px; margin-top: 10px; }
.neo-odev-panel__ozet { display: flex; flex-wrap: wrap; gap: 8px; font-weight: 700; }
.neo-odev-panel__ozet span { background: #eef3fa; border-radius: 999px; padding: 4px 12px; }
.neo-odev-panel table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.neo-odev-panel th, .neo-odev-panel td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #e1e7f0; vertical-align: top; }
.neo-odev-panel__tablo { overflow-x: auto; }

/* ---- Ödev kodu + QR (öğretmen) ---- */
.neo-odev-kod { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; background: #f2f6fc; color: #12243d; }
.neo-odev-kod__yazi { display: grid; gap: 2px; flex: 1 1 200px; text-align: left; }
.neo-odev-kod__yazi strong { font-size: 1.8rem; letter-spacing: .2em; }
.neo-odev-kod__yazi small { color: #4b5d75; }
.neo-odev-qr { width: 128px; height: 128px; flex: 0 0 auto; background: #fff; border-radius: 8px; }
.neo-odev-qr svg { width: 100%; height: 100%; display: block; }

/* ---- Ödevler sayfası (/odevler): yazı standardı + öğrenci tek satır listesi (17.11.2026) ----
   Ödevler sayfasındaki bütün yazılar 12 punto. Öğrenci satırı: kazanım adı · Aktif/Pasif · Ödevi Aç,
   ince (300) yazı. */
#homeworkModal,
#homeworkModal * { font-size: 12pt; }

body.bolum-sayfasi #homeworkModal .student-profile-list--homeworks,
#homeworkModal .student-profile-list--homeworks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.neo-odev-satir {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 0.8em; /* kazanım adı · Aktif · Ödevi Aç arası 2-3 boşluk */
  padding: 8px 12px;
  border: 1px solid #e1e8f3;
  border-radius: 12px;
  background: #ffffff;
  min-width: 0;
}
.neo-odev-satir,
.neo-odev-satir * { font-size: 12pt; font-weight: 300; line-height: 1.3; }

.neo-odev-satir__ad {
  flex: 0 1 auto;
  min-width: 0;
  color: #173150;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.neo-odev-satir__durum {
  flex: 0 0 auto;
  white-space: nowrap;
}
.neo-odev-satir__durum--aktif { color: #0f6b34; }
.neo-odev-satir__durum--pasif { color: #a3141a; }

.neo-odev-satir .neo-odev-satir__ac.primary-button {
  flex: 0 0 auto;
  width: auto;
  min-height: 34px;
  margin: 0;
  padding: 0 16px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.neo-odev-satir .neo-odev-satir__ac.primary-button:disabled { opacity: .5; cursor: not-allowed; }

.neo-odev-satir--pasif .neo-odev-satir__ad { color: #6b7a90; }

/* ---- Ödev ekranı (odev.html, "Ödevi Aç") yazı + görsel standardı (17.11.2026) ----
   Başlıklar 14 punto kalın; diğer bütün yazılar 12 punto ince (300).
   Oyun görselleri küçük: yüksekliği logonun ~1,4 katı (logo: clamp(34px, 4vw, 64px)). */
.neo-odev__kart,
.neo-odev__kart * { font-size: 12pt; font-weight: 300; line-height: 1.35; }

.neo-odev__kart h1,
.neo-odev__kart h2,
.neo-odev__kart .neo-odev__baslik,
.neo-odev__kart .neo-odev__bolum-baslik { font-size: 14pt; font-weight: 700; line-height: 1.25; }
.neo-odev__baslik { margin: 0 0 2px; }
.neo-odev__bolum-baslik { margin: 6px 0 6px; }
.neo-odev__tek h2 { margin: 0 0 10px; }

/* Oyun seçimi: kartlar görsel kadar geniş, yan yana sıralanır */
.neo-odev__oyunlar { display: flex; flex-wrap: wrap; gap: 10px; }
.neo-odev__oyun { flex: 0 0 auto; width: auto; max-width: 220px; align-items: center; gap: 4px; padding: 6px; border-radius: 12px; }
.neo-odev__oyun img,
.neo-odev__tek img {
  width: auto;
  height: clamp(48px, 5.6vw, 90px);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
}
.neo-odev__tek { grid-template-columns: auto minmax(0, 1fr); align-items: center; }

/* "OYUNU BAŞLAT" düğmesi yazı standardının dışında: büyük ve okunaklı kalır */
.neo-odev__kart .neo-odev__baslat { font-size: clamp(16pt, 1.4vw + 10px, 28pt); font-weight: 900; }
