/* MaarifFen Laboratuvarı: the strip and info section injected into the simulation pages, plus the showcase
   and 404 pages. Every class starts with mfl- so nothing collides with a simulation's own styles. */

/* ---------- embed and board modes: ?gomulu=1 hides everything injected, ?tahta=1 hides the strip ---------- */
.mfl-gomulu .mfl-ek, body.gomulu .mfl-ek { display: none !important; }
.mfl-tahta .mfl-serit, body.tahta .mfl-serit { display: none !important; }

.mfl-ek, .mfl-sayfa {
  --mfl-mavi: #1e40af; --mfl-mavi-2: #2563eb; --mfl-yesil: #047857; --mfl-metin: #0f172a; --mfl-soluk: #475569;
  --mfl-cizgi: #e2e8f0; --mfl-zemin: #f6f8fc;
  font: 16px/1.6 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--mfl-metin);
  -webkit-text-size-adjust: 100%;
}
.mfl-ek *, .mfl-ek *::before, .mfl-ek *::after, .mfl-sayfa *, .mfl-sayfa *::before, .mfl-sayfa *::after { box-sizing: border-box; }
.mfl-ek a, .mfl-sayfa a { color: var(--mfl-mavi); }
.mfl-ek a:hover, .mfl-sayfa a:hover { color: #1e3a8a; }
.mfl-ek :focus-visible, .mfl-sayfa :focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }

/* ---------- strip above a simulation (max 48 px) ---------- */
.mfl-serit {
  display: flex; align-items: center; gap: 6px 14px; height: 44px; padding: 0 14px; overflow: hidden;
  background: #ffffff; border-bottom: 1px solid var(--mfl-cizgi); font-size: 14px; font-weight: 600; white-space: nowrap;
}
.mfl-serit-marka { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 15px; min-width: 0; }
.mfl-serit-marka img { width: 26px; height: 26px; display: block; }
.mfl-serit-bosluk { flex: 1; }
.mfl-ek .mfl-serit-link { color: #334155; text-decoration: none; }
.mfl-ek .mfl-serit-dugme { color: #ffffff; background: var(--mfl-mavi-2); text-decoration: none; padding: 6px 12px; border-radius: 9px; }
.mfl-ek .mfl-serit-dugme:hover { color: #ffffff; background: var(--mfl-mavi); }
@media (max-width: 420px) { .mfl-serit-lab { display: none; } .mfl-serit { gap: 10px; padding: 0 10px; } }

/* ---------- info section below a simulation ---------- */
.mfl-bilgi { background: #ffffff; border-top: 1px solid var(--mfl-cizgi); margin-top: 24px; }
.mfl-bilgi-ic { max-width: 1100px; margin: 0 auto; padding: 40px 20px 48px; }
.mfl-bilgi h2 { margin: 6px 0 14px; font-size: 32px; line-height: 1.2; font-weight: 800; letter-spacing: -0.5px; }
.mfl-bilgi h3 { margin: 32px 0 10px; font-size: 21px; line-height: 1.3; font-weight: 800; }
.mfl-bilgi p { margin: 0 0 12px; color: #334155; max-width: 75ch; }
.mfl-bilgi ul { margin: 0; padding-left: 22px; color: #334155; }
.mfl-bilgi li { margin: 4px 0; }
.mfl-sutunlar { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 0 40px; }
.mfl-ogretmen { margin-top: 32px; background: var(--mfl-zemin); border: 1px solid var(--mfl-cizgi); border-radius: 18px; padding: 4px 22px 20px; }
.mfl-ogretmen h3 { margin-top: 18px; }
.mfl-ek kbd { font: 700 13px/1 ui-monospace, Consolas, monospace; background: #ffffff; border: 1px solid #cbd5e1; border-bottom-width: 2px; border-radius: 6px; padding: 2px 6px; }
.mfl-ek code { font: 14px ui-monospace, Consolas, monospace; background: #eef2ff; border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.mfl-senaryolar { list-style: none; padding: 0 !important; display: grid; gap: 6px; }
.mfl-dip { margin-top: 28px !important; font-size: 14px; color: var(--mfl-soluk) !important; }

/* ---------- shared pieces ---------- */
.mfl-yol { font-size: 14px; color: var(--mfl-soluk); margin-bottom: 8px; }
.mfl-yol a { text-decoration: none; }
.mfl-rozetler { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.mfl-rozet { font-size: 12.5px; font-weight: 800; line-height: 1; color: #1e3a8a; background: #dbeafe; padding: 6px 10px; border-radius: 999px; }
.mfl-rozet-unite { color: #065f46; background: #ecfdf5; }
.mfl-rozet-ucretsiz { color: #334155; background: #f1f5f9; }
.mfl-dugmeler { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.mfl-ek .mfl-dugme, .mfl-sayfa .mfl-dugme {
  display: inline-block; background: var(--mfl-mavi-2); color: #ffffff; text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 11px 18px; border-radius: 12px; border: 1.5px solid var(--mfl-mavi-2); line-height: 1.2;
}
.mfl-ek .mfl-dugme:hover, .mfl-sayfa .mfl-dugme:hover { background: var(--mfl-mavi); border-color: var(--mfl-mavi); color: #ffffff; }
.mfl-ek .mfl-dugme-ikincil, .mfl-sayfa .mfl-dugme-ikincil { background: #ffffff; color: var(--mfl-mavi); border-color: #bfdbfe; }
.mfl-ek .mfl-dugme-ikincil:hover, .mfl-sayfa .mfl-dugme-ikincil:hover { background: #eff6ff; color: var(--mfl-mavi); border-color: #93c5fd; }

.mfl-kartlar { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.mfl-kart { background: #ffffff; border: 1px solid var(--mfl-cizgi); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.mfl-kart:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(15, 23, 42, .10); }
.mfl-kart[hidden] { display: none; }
.mfl-kart-resim img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; background: var(--mfl-zemin); }
.mfl-kart-ic { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mfl-ek .mfl-kart-baslik, .mfl-sayfa .mfl-kart-baslik { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 800; }
.mfl-kart-baslik a { color: var(--mfl-metin) !important; text-decoration: none; }
.mfl-ek .mfl-kart-metin, .mfl-sayfa .mfl-kart-metin { margin: 0; font-size: 15px; line-height: 1.55; color: var(--mfl-soluk); }
.mfl-kart .mfl-dugmeler { margin-top: auto; padding-top: 4px; }
.mfl-kartlar-kucuk .mfl-kart-ic { padding: 14px 16px 18px; }
.mfl-kartlar-kucuk .mfl-kart-baslik { font-size: 17px; }

.mfl-cagri { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; background: #eff6ff; border: 1.5px solid #bfdbfe; border-radius: 20px; padding: 22px 24px; }
.mfl-cagri > div { flex: 1 1 320px; min-width: 0; }
.mfl-ek .mfl-cagri p, .mfl-sayfa .mfl-cagri p { margin: 0; color: #334155; }
.mfl-ek .mfl-cagri .mfl-cagri-baslik, .mfl-sayfa .mfl-cagri .mfl-cagri-baslik { font-size: 19px; font-weight: 800; color: var(--mfl-metin); margin-bottom: 4px; }

/* ---------- showcase and 404 pages ---------- */
body.mfl-sayfa { margin: 0; background: var(--mfl-zemin); overflow-x: hidden; }
.mfl-ust { background: #ffffff; border-bottom: 1px solid var(--mfl-cizgi); }
.mfl-ust-ic { max-width: 1200px; margin: 0 auto; padding: 18px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.mfl-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mfl-logo img { width: 52px; height: 45px; object-fit: contain; display: block; }
.mfl-logo > span { display: flex; flex-direction: column; gap: 4px; line-height: 1; }
.mfl-logo-ad { font-size: 23px; font-weight: 800; letter-spacing: -0.5px; }
.mfl-logo-alt { font-size: 10px; font-weight: 700; color: #334155; letter-spacing: 4.6px; padding-left: 1px; }
.mfl-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 15px; font-weight: 600; }
.mfl-sayfa .mfl-menu a { color: #334155; text-decoration: none; padding: 10px 0; }
.mfl-sayfa .mfl-menu a[aria-current="page"] { color: var(--mfl-mavi); box-shadow: inset 0 -2px 0 var(--mfl-mavi); }

.mfl-giris { max-width: 1200px; margin: 0 auto; padding: 48px 24px 24px; display: flex; flex-direction: column; gap: 14px; }
.mfl-ust-etiket { font-size: 14px; font-weight: 800; color: var(--mfl-yesil); letter-spacing: 1px; }
.mfl-sayfa h1 { margin: 0; font-size: 48px; line-height: 1.1; font-weight: 800; letter-spacing: -1.2px; }
.mfl-giris > p { margin: 0; font-size: 18px; line-height: 1.65; color: var(--mfl-soluk); max-width: 720px; }
.mfl-liste { max-width: 1200px; margin: 0 auto; padding: 8px 24px 0; }
.mfl-filtre { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; margin: 8px 0 24px; }
.mfl-filtre[hidden] { display: none; }
.mfl-filtre-grup { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mfl-filtre-ad { font-size: 14px; font-weight: 700; color: #334155; }
.mfl-filtre button, .mfl-bos button { font: 700 14px/1 inherit; font-family: inherit; color: #334155; background: #ffffff; border: 1.5px solid #cbd5e1; border-radius: 999px; padding: 9px 14px; cursor: pointer; }
.mfl-filtre button[aria-pressed="true"] { color: #ffffff; background: var(--mfl-mavi-2); border-color: var(--mfl-mavi-2); }
.mfl-filtre select { font: 600 15px inherit; font-family: inherit; color: var(--mfl-metin); background: #ffffff; border: 1.5px solid #cbd5e1; border-radius: 10px; padding: 8px 10px; max-width: 100%; }
.mfl-bos { margin: 0; padding: 24px; background: #ffffff; border: 1px dashed #cbd5e1; border-radius: 16px; color: var(--mfl-soluk); }
.mfl-bos[hidden] { display: none; }
.mfl-cagri-alani { max-width: 1200px; margin: 0 auto; padding: 24px 24px 72px; }
.mfl-404 { max-width: 760px; margin: 0 auto; padding: 96px 24px 120px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.mfl-404 p { margin: 0; font-size: 18px; color: var(--mfl-soluk); }

.mfl-alt-bilgi { background: #0f172a; color: #cbd5e1; }
.mfl-alt-ic { max-width: 1200px; margin: 0 auto; padding: 48px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.mfl-alt-ic > div:first-child { display: flex; flex-direction: column; gap: 8px; }
.mfl-alt-ad { font-size: 20px; font-weight: 800; color: #e2e8f0; }
.mfl-alt-not { font-size: 14px; }
.mfl-alt-linkler { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; font-weight: 600; }
.mfl-sayfa .mfl-alt-linkler a { color: #e2e8f0; text-decoration: none; padding: 10px 0; }

@media (max-width: 600px) {
  .mfl-sayfa h1 { font-size: 36px; letter-spacing: -0.8px; }
  .mfl-bilgi h2 { font-size: 26px; }
  .mfl-bilgi-ic { padding: 28px 16px 36px; }
  .mfl-giris, .mfl-liste, .mfl-cagri-alani, .mfl-ust-ic, .mfl-alt-ic { padding-left: 16px; padding-right: 16px; }
  .mfl-ogretmen { padding: 2px 16px 16px; }
}
@media (prefers-reduced-motion: reduce) { .mfl-kart { transition: none; } .mfl-kart:hover { transform: none; } }
