/* ==========================================================================
   MDFCAD Eğitim Merkezi — ortak stil dosyası (açık tema, kurumsal)
   marketing/egitim/*.html ve marketing/talep.html tarafından kullanılır.
   ========================================================================== */

:root {
  --ink: #111827;
  --slate: #334155;
  --muted: #5f6b7a;
  --muted-2: #8a94a3;
  --line: #e6e9ee;
  --line-2: #d3d9e0;
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --accent: #1a64e4;
  --accent-strong: #1453c4;
  --accent-soft: #eef3fe;
  --accent-border: #c9d8fb;
  --ok: #15803d;
  --warn: #b45309;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 14px 36px rgba(15, 23, 42, 0.1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }

h1, h2, h3, h4 { line-height: 1.22; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.85rem, 1.3rem + 1.8vw, 2.6rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.7rem); font-weight: 700; }
h3 { font-size: 1.0625rem; font-weight: 700; }
h4 { font-size: 0.9375rem; font-weight: 700; }

::selection { background: var(--accent-soft); color: var(--ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 24px; }
.wrap-narrow { max-width: 860px; }

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px;
}

.kicker {
  margin-bottom: 12px;
  color: var(--accent); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.lead { color: var(--muted); font-size: 1.0625rem; }
.small { font-size: 0.8125rem; color: var(--muted-2); }

/* --- Butonlar ------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--radius);
  font: inherit; font-size: 0.9375rem; font-weight: 600; line-height: 1;
  text-align: center; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-sm { height: 38px; padding: 0 15px; font-size: 0.875rem; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 1rem; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn-secondary { background: var(--surface, #fff); border-color: var(--line-2); color: var(--ink); }
.btn-secondary:hover { background: var(--bg-alt); border-color: var(--muted-2); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* --- Üst bar: ortak header assets/header.css içindedir (tüm sayfalarda aynı) --- */

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--accent); color: #fff; font-weight: 800;
}
.brand-name { font-size: 1.0625rem; }

/* Eski sayfa-özel üst menü kaldırıldı (ortak header kullanılır). */

/* --- Müfredat / hub ------------------------------------------------------- */

.hero-plain { padding: 56px 0 44px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.hero-plain .lead { max-width: 720px; margin-top: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.progress-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 0.875rem; color: var(--muted);
}
.progress-bar {
  position: relative; width: 220px; height: 8px; border-radius: 999px;
  background: #e5e9f0; overflow: hidden;
}
.progress-bar span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); transition: width 0.3s ease; }
.progress-label { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }

.curriculum { padding: 44px 0 64px; }
.module + .module { margin-top: 34px; }
.module-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px;
  padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--line);
}
.module-head h2 { font-size: 1.25rem; }
.module-head p { color: var(--muted); font-size: 0.875rem; }

.lesson-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.lesson-card {
  display: flex; gap: 16px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  color: inherit; text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.lesson-card:hover { border-color: var(--line-2); box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07); }
.lesson-no {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-strong);
  font-family: var(--mono); font-size: 0.875rem; font-weight: 700;
}
.lesson-card h3 { margin-bottom: 4px; font-size: 1.0625rem; }
.lesson-card p { color: var(--muted); font-size: 0.9375rem; }
.lesson-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tag {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  background: var(--bg-alt); border: 1px solid var(--line);
  color: var(--muted); font-size: 0.6875rem; font-weight: 600;
}
.tag-ok { background: #ecfdf5; border-color: #bbf7d0; color: var(--ok); }
/* .tag { display: inline-block } kuralı hidden niteliğini ezdiği için açık kural gerekir. */
[data-done-badge][hidden] { display: none; }

/* --- Ders sayfası --------------------------------------------------------- */

.breadcrumb { padding: 18px 0 0; font-size: 0.8125rem; color: var(--muted-2); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }

.lesson-head { padding: 18px 0 26px; border-bottom: 1px solid var(--line); }
.lesson-head h1 { max-width: 860px; }
.lesson-head .lead { max-width: 760px; margin-top: 14px; }
.lesson-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.lesson-layout { display: grid; grid-template-columns: 1fr; gap: 32px; padding: 32px 0 64px; }

.lesson-side { min-width: 0; }
.side-card {
  padding: 18px; background: var(--bg-alt);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.side-card h2 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); }
.side-list { margin-top: 12px; }
.side-list a {
  display: flex; gap: 10px; align-items: baseline;
  padding: 8px 10px; border-radius: 8px;
  color: var(--slate); font-size: 0.875rem; text-decoration: none;
}
.side-list a:hover { background: #fff; color: var(--ink); }
.side-list a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
.side-list .n { font-family: var(--mono); font-size: 0.75rem; color: var(--muted-2); }
.side-list .done { color: var(--ok); font-size: 0.75rem; }

.lesson-body { min-width: 0; }
.lesson-body > section { margin-bottom: 38px; }
.lesson-body h2 { margin-bottom: 14px; font-size: 1.4rem; }
.lesson-body h3 { margin: 22px 0 8px; }
.lesson-body p + p { margin-top: 12px; }
.lesson-body p, .lesson-body li { color: var(--slate); }

.checklist { display: flex; flex-direction: column; gap: 10px; }
.checklist label {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; background: var(--bg-alt);
  border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; font-size: 0.9375rem;
}
.checklist input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: 0 0 auto; }
.checklist label:has(input:checked) { background: #f0fdf4; border-color: #bbf7d0; }
.checklist label:has(input:checked) span { color: var(--muted); text-decoration: line-through; }

.callout {
  padding: 16px 18px; border-radius: var(--radius-lg);
  border: 1px solid var(--accent-border); background: var(--accent-soft);
}
.callout h3 { margin: 0 0 6px; color: var(--accent-strong); font-size: 0.9375rem; }
.callout p { color: var(--ink); font-size: 0.9375rem; }
.callout-warn { border-color: #fde68a; background: #fffbeb; }
.callout-warn h3 { color: var(--warn); }

.steps { display: flex; flex-direction: column; gap: 22px; counter-reset: step; }
.steps > li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; }
.steps > li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 0.875rem; font-weight: 700;
}
.steps h3 { margin: 4px 0 6px; }
.steps p { font-size: 0.9375rem; }
.steps .note { margin-top: 8px; color: var(--muted); font-size: 0.875rem; }

.figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg); box-shadow: var(--shadow-sm); }
.figure img { width: 100%; }
.figure figcaption { padding: 12px 14px; border-top: 1px solid var(--line); background: var(--bg-alt); color: var(--muted); font-size: 0.8125rem; }

.two-col { display: grid; grid-template-columns: 1fr; gap: 14px; }
.plain-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); }
.plain-card h3 { margin-bottom: 6px; }

table.data { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
table.data caption { text-align: left; color: var(--muted); font-size: 0.8125rem; padding-bottom: 8px; }
table.data th, table.data td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
table.data th { background: var(--bg-alt); font-weight: 600; }
table.data td { color: var(--slate); }

.lesson-nav {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.lesson-nav a {
  flex: 1 1 240px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  text-decoration: none; color: var(--ink); background: var(--bg);
}
.lesson-nav a:hover { border-color: var(--accent-border); background: var(--accent-soft); }
.lesson-nav span { display: block; font-size: 0.75rem; color: var(--muted-2); }
.lesson-nav strong { display: block; margin-top: 2px; font-size: 0.9375rem; }

.next-step {
  padding: 24px; border-radius: var(--radius-lg);
  background: var(--accent-soft); border: 1px solid var(--accent-border);
}
.next-step h2 { font-size: 1.25rem; margin-bottom: 8px; }
.next-step p { color: var(--ink); font-size: 0.9375rem; }
.next-step .btn { margin-top: 16px; }

/* --- Form (talep) --------------------------------------------------------- */

.form-layout { display: grid; grid-template-columns: 1fr; gap: 32px; padding: 36px 0 64px; }
.form-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); box-shadow: var(--shadow-sm); }
.field-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.9375rem; font-weight: 600; }
.field .req { color: var(--accent); }
.field .hint { color: var(--muted-2); font-size: 0.8125rem; }
.field input, .field select, .field textarea {
  height: 46px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: #fff; color: var(--ink);
  font: inherit; font-size: 0.9375rem;
}
.field textarea { height: auto; min-height: 120px; padding: 12px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field-error { display: none; color: #b91c1c; font-size: 0.8125rem; font-weight: 600; }
.field[data-invalid="true"] input, .field[data-invalid="true"] select, .field[data-invalid="true"] textarea { border-color: #b91c1c; }
.field[data-invalid="true"] .field-error { display: block; }

.choice-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.choice {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; font-size: 0.9375rem;
}
.choice input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: 0 0 auto; }
.choice:has(input:checked) { border-color: var(--accent-border); background: var(--accent-soft); }

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.form-note { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8125rem; }
.form-success {
  display: none; margin-top: 20px; padding: 18px;
  border: 1px solid #bbf7d0; border-radius: var(--radius-lg); background: #f0fdf4;
}
.form-success[data-visible="true"] { display: block; }
.form-success h3 { color: var(--ok); margin-bottom: 6px; }
.form-success pre {
  margin: 12px 0 0; padding: 12px; max-height: 220px; overflow: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--mono); font-size: 0.75rem; white-space: pre-wrap; word-break: break-word;
}

.aside-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-alt); }
.aside-card h2 { font-size: 1.0625rem; margin-bottom: 10px; }
.aside-card ul { display: flex; flex-direction: column; gap: 8px; color: var(--slate); font-size: 0.9375rem; }
.aside-card li { padding-left: 18px; position: relative; }
.aside-card li::before { content: "—"; position: absolute; left: 0; color: var(--muted-2); }

/* --- Footer --------------------------------------------------------------- */

.edu-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 32px 0; }
.edu-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 0.8125rem; }
.edu-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.edu-footer a { color: var(--muted); text-decoration: none; }
.edu-footer a:hover { color: var(--accent); text-decoration: underline; }

/* --- Duyarlı -------------------------------------------------------------- */

@media (min-width: 700px) {
  .lesson-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-full { grid-column: 1 / -1; }
}

@media (min-width: 980px) {
  .lesson-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lesson-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 44px; }
  .lesson-side { position: sticky; top: 84px; align-self: start; }
  .form-layout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; }
  .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 979px) {
  .mheader-in { gap: 10px; }
}

@media (max-width: 559px) {
  .wrap { padding-inline: 16px; }
  .form-card { padding: 20px; }
  .lesson-head { padding-top: 12px; }
  .steps > li { grid-template-columns: 28px 1fr; gap: 10px; }
}

@media print {
  .mheader, .side-card, .lesson-nav, .form-actions, .edu-footer { display: none; }
  .lesson-layout { display: block; }
  body { font-size: 11pt; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
