/* Emin Hoca · Ödev Hazırla — kağıt ve arayüz stilleri */
:root { --od-ink: #1A1815; --od-muted: #6F6862; --od-rule: #E4DED2; --od-amber: #9A6F0F; --od-red: #C0392B; --od-blue: #2E5E8C; }

/* ---------- Arayüz ---------- */
.od-wrap { max-width: 1200px; margin: 0 auto; padding: 24px 16px 40px; color: var(--od-ink); }
.od-h1 { font-size: clamp(24px, 3.6vw, 34px); font-weight: 800; margin: 0; }
.od-alt { color: var(--od-muted); margin: 6px 0 18px; font-size: 15px; }
.od-duzen { display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .od-duzen { grid-template-columns: 1fr; } }
.od-panel { background: #fff; border: 1px solid var(--od-rule); border-radius: 16px; padding: 16px; position: sticky; top: 12px; }
@media (max-width: 900px) { .od-panel { position: static; } }
.od-grup { margin-bottom: 12px; }
.od-grup label { display: block; font-size: 12.5px; font-weight: 700; color: var(--od-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .03em; }
.od-secim { display: flex; flex-wrap: wrap; gap: 5px; }
.od-secim button { border: 1px solid var(--od-rule); background: #FBFAF7; border-radius: 9px; padding: 6px 10px; font-size: 13.5px; cursor: pointer; color: var(--od-ink); }
.od-secim button.on { background: #1A1815; color: #FBFAF7; border-color: #1A1815; }
.od-panel input[type=text], .od-panel textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--od-rule); border-radius: 9px; padding: 7px 9px; font-size: 14px; font-family: inherit; background: #fff; }
.od-panel textarea { min-height: 70px; resize: vertical; }
.od-ayrac { border: 0; border-top: 1px solid var(--od-rule); margin: 14px 0; }
.od-dugmeler { display: grid; gap: 7px; }
.od-btn { display: block; width: 100%; text-align: center; border: 1px solid var(--od-rule); background: #fff; border-radius: 11px; padding: 10px; font-size: 14.5px; font-weight: 700; cursor: pointer; color: var(--od-ink); }
.od-btn.koyu { background: #1A1815; color: #FBFAF7; border-color: #1A1815; }
.od-not { font-size: 12px; color: var(--od-muted); margin-top: 6px; line-height: 1.45; }
.od-onizleme { background: #EDE8DD; border-radius: 16px; padding: 16px; overflow: hidden; }
.od-olcek { transform-origin: top left; }
.od-onizleme .sayfa { box-shadow: 0 4px 18px rgba(0,0,0,.12); margin: 0 auto 16px; }

/* ---------- Kağıt (A4) ---------- */
.sayfa { width: 210mm; height: 297mm; box-sizing: border-box; padding: 11mm 12mm 9mm; background: #fff; color: #1A1815; font-family: 'Andika', 'Comic Sans MS', sans-serif; font-size: 13pt; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.sayfa.buyuk-yazi { font-size: 16pt; }
.k-ust { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2.5px solid #1A1815; padding-bottom: 2mm; }
.k-baslik { font-size: 1.55em; font-weight: 700; line-height: 1.1; }
.k-sayfa { font-size: .5em; font-weight: 700; color: #fff; background: #9A6F0F; border-radius: 99px; padding: .15em .6em; vertical-align: middle; }
.k-alt { font-size: .72em; color: #555; margin-top: 1mm; }
.k-marka { font-size: .62em; color: #888; }
.k-kimlik { display: flex; gap: 8mm; font-size: .85em; margin: 3mm 0 2mm; }
.k-kimlik span { display: flex; align-items: flex-end; gap: 2mm; }
.k-kimlik span:first-child { flex: 1; }
.k-kimlik i { font-style: normal; border-bottom: 1px dotted #777; min-width: 30mm; flex: 1; padding: 0 1mm; font-weight: 700; }
.k-kimlik span:last-child i { flex: none; width: 32mm; }
.k-bilgi { border: 1.5px solid #E2C98F; background: #FFF8E6; border-radius: 3mm; padding: 2.5mm 3.5mm 2.5mm 3.5mm; margin: 1.5mm 0 3mm; font-size: .82em; display: flex; gap: 4mm; align-items: center; position: relative; }
.k-bilgi p { margin: 0; flex: 1; line-height: 1.4; }
.k-bilgi-et { position: absolute; top: -2.6mm; left: 3mm; background: #9A6F0F; color: #fff; font-size: .78em; font-weight: 700; padding: .2mm 2.2mm; border-radius: 2mm; }
.k-bilgi .op, .k-bilgi .ornek { font-size: .95em; flex: none; }
.ornek { display: flex; align-items: center; gap: 3mm; }
.k-yonerge { font-weight: 700; margin: 1mm 0 3mm; font-size: .95em; }
.k-yonerge::before { content: '✎ '; color: #9A6F0F; }
.k-icerik { flex: 1; min-height: 0; overflow: hidden; }
.k-dip { display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px solid #ccc; padding-top: 2mm; margin-top: 2mm; font-size: .68em; color: #444; }
.k-deger { display: flex; gap: 4mm; align-items: center; }
.k-deger span { display: inline-flex; align-items: center; gap: 1.2mm; }
.k-deger i { width: 3.6mm; height: 3.6mm; border: 1.2px solid #444; border-radius: 50%; display: inline-block; }
.k-kod { display: flex; align-items: center; gap: 2.5mm; text-align: right; }
.k-reklam { text-align: center; font-size: .6em; color: #8a8580; margin-top: 1.4mm; letter-spacing: .02em; }
.k-reklam b { color: #6F6862; }
.k-qr svg { width: 15mm; height: 15mm; display: block; }

/* Izgara ve hücreler */
.izgara { display: grid; gap: 1.1em 1.2em; }
.izgara.k5 { grid-template-columns: repeat(5, 1fr); }
.izgara.k2 { grid-template-columns: 1fr 1fr; }
.izgara.k3 { grid-template-columns: 1fr 1fr 1fr; }
.hucre { position: relative; display: flex; justify-content: center; padding-top: 1mm; }
.hucre.cerceve { border: 1.2px solid #D9D2C3; border-radius: .6em; padding: .6em .6em .6em 1.6em; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 2.5mm; }
.no { position: absolute; left: 0; top: 0; font-size: .72em; color: #9A6F0F; font-weight: 700; }
.hucre.cerceve .no { left: 2mm; top: 2mm; }

/* Alt alta işlem */
.op { display: inline-block; }
table.bt { border-collapse: collapse; font-size: 1.25em; font-variant-numeric: tabular-nums; }
table.bt td { width: 1.55em; height: 1.55em; text-align: center; padding: 0; }
table.bt td.is { width: 1em; font-weight: 700; }
table.bt tr.alt td { border-bottom: 2px solid #1A1815; }
table.bt tr.alt td.is { border-bottom: 0; }
table.bt.tablolu tr.bh td { font-size: .55em; font-weight: 700; color: #fff; background: #2E5E8C; height: 1.6em; }
table.bt.tablolu tr.bh td:first-child { background: none; }
table.bt.tablolu td:not(.is) { border-left: 1px dashed #A9B8C6; border-right: 1px dashed #A9B8C6; }
table.bt.tablolu tr.sonuc td:not(:first-child) { border: 1.3px solid #1A1815; border-radius: 0; }
table.bt tr.elde td, table.bt tr.boz td { height: 1.2em; border-bottom: 0 !important; }
.eb { display: inline-flex; width: 1.05em; height: 1.05em; border: 1.2px dashed #9A6F0F; border-radius: 50%; align-items: center; justify-content: center; font-size: .62em; }
.eb.kare { border-radius: .25em; width: 1.25em; }

/* Yan yana ve kutular */
.yy { display: flex; align-items: center; gap: .35em; font-size: 1.15em; padding: .3em 0 .3em 1.9em; position: relative; font-variant-numeric: tabular-nums; }
.yy .no { top: .75em; }
.kt { display: inline-flex; min-width: 1.9em; height: 1.75em; border: 1.3px solid #1A1815; border-radius: 1.5mm; align-items: center; justify-content: center; vertical-align: middle; }
.kt.gen { min-width: 2.7em; }
.cz { display: inline-block; border-bottom: 1.3px solid #1A1815; text-align: center; height: 1.2em; vertical-align: bottom; }
.satir { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5mm; }
.satir.buyuk { font-size: 1.1em; }
svg.blok { height: auto; display: block; }
svg.blok .bl { fill: #CFE3F5; stroke: #2E5E8C; stroke-width: .8; }
.cz-gorsel { min-height: 4.6em; display: flex; align-items: flex-end; }

/* Cevaplar */
.cv { color: var(--od-red); font-weight: 700; }
.kirmizi { color: var(--od-red); }
.cevap-anahtari .k-kimlik { visibility: hidden; }

/* ---------- Yazdırma ---------- */
#od-baski { position: absolute; left: -10000px; top: 0; }
@media print {
  @page { size: A4; margin: 0; }
  body.od-yazdir > *:not(#od-baski) { display: none !important; }
  body.od-yazdir { margin: 0 !important; padding: 0 !important; background: #fff !important; }
  body.od-yazdir #od-baski { position: static; }
  body.od-yazdir .sayfa { box-shadow: none !important; margin: 0 !important; break-after: page; page-break-after: always; }
  body.od-yazdir .sayfa:last-child { break-after: auto; page-break-after: auto; }
  .sayfa { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.od-cevap-bar { background: #FFF8E6; border: 1px solid #E2C98F; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
