/* YEEY — A4 materyal sayfası (Materyal oluştur). Yazı tipi: Lexend (okunabilirlik için tasarlandı, OFL) */
@font-face { font-family: "Lexend"; font-weight: 400; font-display: swap;
  src: url("/app/fonts/lexend-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lexend"; font-weight: 400; font-display: swap;
  src: url("/app/fonts/lexend-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lexend"; font-weight: 500; font-display: swap;
  src: url("/app/fonts/lexend-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lexend"; font-weight: 500; font-display: swap;
  src: url("/app/fonts/lexend-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lexend"; font-weight: 600; font-display: swap;
  src: url("/app/fonts/lexend-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lexend"; font-weight: 600; font-display: swap;
  src: url("/app/fonts/lexend-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
.ws-page {
  --ws-accent: #E8590C; --ws-ink: #1F2D3D; --ws-soft: #6B7A8C; --ws-line: #C9D3DE;
  width: 210mm; height: 297mm; box-sizing: border-box; padding: 13mm 13mm 10mm; background: #fff; color: var(--ws-ink);
  display: flex; flex-direction: column; overflow: hidden; position: relative;
  font-family: "Lexend", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.ws-page * { box-sizing: border-box; }
.ws-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6mm; padding-bottom: 3mm; border-bottom: .4mm solid var(--ws-line); margin-bottom: 4mm; }
.ws-title { font-size: 17pt; font-weight: 600; letter-spacing: -.01em; min-height: 1em; }
.ws-meta { font-size: 9pt; color: var(--ws-soft); white-space: nowrap; }
.ws-note { font-size: 12pt; line-height: 1.35; margin: -1mm 0 4mm; color: var(--ws-ink); }
.ws-foot { display: flex; justify-content: space-between; font-size: 7.5pt; color: var(--ws-soft); padding-top: 2.5mm; margin-top: 3mm; border-top: .3mm solid #E6EBF0; }
.ws-hi-renk { color: var(--ws-accent); }
.ws-hi-kalin { font-weight: 600; text-decoration: underline; text-decoration-thickness: .7mm; text-underline-offset: 1.2mm; }
.ws-hi-alti { color: var(--ws-accent); text-decoration: underline; text-decoration-thickness: .8mm; text-underline-offset: 1.4mm; }
.ws-img { display: flex; align-items: center; justify-content: center; min-height: 0; }
.ws-img img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 3mm; display: block; }
.ws-word { font-weight: 600; line-height: 1.1; text-align: center; word-break: break-word; }
.ws-syl { font-size: 15pt; color: var(--ws-soft); text-align: center; font-weight: 700; letter-spacing: .02em; }
.ws-dot { margin: 0 1.6mm; color: #B5C0CC; }
.ws-reps { display: flex; gap: 2mm; justify-content: center; }
.ws-reps i { width: 6mm; height: 6mm; border: .5mm solid #AAB6C3; border-radius: 50%; display: block; }

/* kart */
.ws-grid { flex: 1; min-height: 0; display: grid; gap: 4mm; }
.ws-card { min-height: 0; border: .5mm dashed #B5C0CC; border-radius: 4mm; padding: 4mm; display: flex; flex-direction: column; align-items: center; gap: 2.5mm; overflow: hidden; }
.ws-card .ws-img { flex: 1; width: 100%; }
.ws-card.noimg { justify-content: center; }
.ws-card.ws-empty { visibility: hidden; }
/* liste */
.ws-list { flex: 1; min-height: 0; display: grid; grid-template-rows: repeat(7, minmax(0, 1fr)); }
.ws-row { display: grid; grid-template-columns: 34mm minmax(0, 1fr) auto; align-items: center; gap: 6mm; border-bottom: .3mm solid #E6EBF0; padding: 2mm 0; min-height: 0; }
.ws-row .ws-img { height: 30mm; }
.ws-row .ws-word { text-align: left; }
.ws-row .ws-syl { text-align: left; }
/* büyük kart */
.ws-big { flex: 1; min-height: 0; display: flex; }
.ws-bigcard { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8mm; border: .6mm solid #E1E7EE; border-radius: 8mm; padding: 10mm; min-height: 0; }
.ws-bigcard .ws-img { width: 100%; flex: 1; max-height: 170mm; }
.ws-bigcard .ws-syl { font-size: 26pt; }
/* hece kutuları */
.ws-hece { flex: 1; min-height: 0; display: grid; grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 3mm; }
.ws-hrow { display: grid; grid-template-columns: 52mm minmax(0, 1fr); gap: 6mm; align-items: center; border: .4mm solid #E1E7EE; border-radius: 5mm; padding: 4mm; min-height: 0; }
.ws-hrow .ws-img { height: 50mm; }
.ws-hmain { display: flex; flex-direction: column; gap: 3mm; align-items: flex-start; }
.ws-boxes { display: flex; gap: 2.5mm; flex-wrap: wrap; }
.ws-syl-box { min-width: 20mm; height: 14mm; padding: 0 3mm; border: .6mm solid var(--ws-accent); border-radius: 3mm; display: inline-flex; align-items: center; justify-content: center; font-size: 18pt; font-weight: 600; }
.ws-boxes.ws-blank .ws-syl-box { border-style: dashed; border-color: #AAB6C3; }

/* metin (okuma) */
.ws-text { flex: 1; min-height: 0; line-height: 1.7; letter-spacing: .01em; }
.ws-text p { margin: 0 0 .6em; }
.ws-text .ws-dot { margin: 0 .35mm; }
.ws-text-empty { color: var(--ws-soft); }
/* taranmış sayfa */
.ws-page.ws-scan { padding: 0; align-items: center; justify-content: center; }
.ws-page.ws-scan img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ws-scan-empty { color: var(--ws-soft); }
.ws-page.ws-scan.land img { position: absolute; width: 297mm; height: 210mm; max-width: none; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(90deg); }

/* ekranda önizleme ölçeği */
.ws-stack { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.ws-scale { transform-origin: top left; }
.ws-shadow .ws-page { box-shadow: 0 8px 28px rgba(20, 35, 60, .14); border-radius: 2px; }

/* yazdırma: yalnızca sayfalar */
@media print {
  @page { size: A4; margin: 0; }
  body.ws-printing > *:not(#ws-print) { display: none !important; }
  body.ws-printing { background: #fff !important; margin: 0 !important; }
  #ws-print .ws-page { break-after: page; box-shadow: none; border-radius: 0; }
  #ws-print .ws-page:last-child { break-after: auto; }
}
#ws-print { display: none; }
body.ws-printing #ws-print { display: block; }
