/* ANALİTİK ASİSTAN — ana sayfanın "pafta" girişi (20.11.2026, Hakan Bey "Şimdi taslak hazırla"; öneri ve örnek
   ANALİTİK DANIŞMAN Web Sitesi, danisman_web/public/css/pafta.css).
   Hikâye: 1 · Kod (antetteki "Parça1" firmanın koduna döner) · 2 · Resim (resim kendini çizer, ölçülenir, QR gelir)
   · 3 · Revizyon (R00 → R01; eski resim GEÇERSİZ damgasıyla ESKİ REVİZYONLAR'a çekilir). Metin sitenin kendi metni.
   Betik yok, dış yazı tipi yok, style="" yok (CSP style-src 'self'): hareket yalnız SVG + CSS.
   site.css'ten SONRA ve yalnız iki ana sayfada (/ ve /en/) bağlanır: /css/pafta.css?v=<tarih>. */

:root {
  --kagit: #F4F2EB;
  --murekkep: var(--lacivert);
  --olcu: #9A4A00;          /* ölçü rengi: turuncunun koyusu, kâğıtta okunur */
  --kirmizi: #B03A2E;       /* GEÇERSİZ damgası ve çizik */
  --izgara: rgba(24, 54, 92, .05);
  --yazi-dar: "Bahnschrift", "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", var(--aile-yazi);
  --yazi-es: ui-monospace, "Cascadia Mono", Consolas, "Roboto Mono", Menlo, monospace;
  --dongu: 18s;             /* bütün hareket tek döngü: 18 saniye */
}

/* ---------- Pafta çerçevesi ---------- */
.pafta-giris { background: var(--kagit); padding: 34px 0 44px; border-bottom: 1px solid var(--cizgi); }
.pafta {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) 20px; grid-template-rows: 20px auto 20px;
  border: 2px solid var(--murekkep); outline: 1px solid var(--murekkep); outline-offset: 5px;
  margin: 6px; color: var(--metin);
}
.bolge { display: flex; font-family: var(--yazi-es); font-size: .66rem; font-weight: 600; color: var(--murekkep); }
.bolge span { flex: 1; display: grid; place-items: center; position: relative; }
.bolge-ust { grid-column: 2; grid-row: 1; }
.bolge-alt { grid-column: 2; grid-row: 3; }
.bolge-sol { grid-column: 1; grid-row: 2; flex-direction: column; }
.bolge-sag { grid-column: 3; grid-row: 2; flex-direction: column; }
/* Bölge sınırlarında kısa çentik (gerçek paftadaki gibi) */
.bolge-ust span + span::before, .bolge-alt span + span::before {
  content: ""; position: absolute; left: 0; width: 1px; height: 7px; background: var(--murekkep);
}
.bolge-ust span + span::before { bottom: 0; }
.bolge-alt span + span::before { top: 0; }
.bolge-sol span + span::before, .bolge-sag span + span::before {
  content: ""; position: absolute; top: 0; height: 1px; width: 7px; background: var(--murekkep);
}
.bolge-sol span + span::before { right: 0; }
.bolge-sag span + span::before { left: 0; }

.pafta-ic {
  grid-column: 2; grid-row: 2; border: 1px solid var(--murekkep);
  padding: 34px 34px 0;
  background-color: var(--kagit);
  background-image: linear-gradient(var(--izgara) 1px, transparent 1px), linear-gradient(90deg, var(--izgara) 1px, transparent 1px);
  background-size: 24px 24px;
}
.pafta-ust { display: grid; grid-template-columns: 1fr 1.08fr; gap: 40px; align-items: center; }

/* Metin: koyu zemindeki eski girişin kâğıt üstündeki karşılığı */
.pafta-metin .ust-yazi {
  font-family: var(--yazi-es); font-size: .74rem; letter-spacing: .1em; color: var(--grup-cikti); margin-bottom: 14px;
}
.pafta-metin h1 {
  font-family: var(--yazi-dar); font-stretch: 87.5%; font-weight: 700; color: var(--murekkep);
  font-size: clamp(2.1rem, 4.6vw, 3.1rem); letter-spacing: -.005em; margin-bottom: 18px;
}
.pafta-metin h1 em { font-style: normal; color: var(--turuncu-metin); }
.pafta-metin .ozet { font-size: 1.07rem; color: var(--metin); max-width: 34em; margin-bottom: 26px; }
.pafta-metin .dugmeler { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.pafta-metin .dugme.ikincil { color: var(--murekkep); border-color: rgba(24, 54, 92, .45); }
.pafta-metin .dugme.ikincil:hover { background: rgba(24, 54, 92, .06); }
.pafta-metin .olgular { color: var(--soluk); }
.pafta-metin .olgular li::before { border-radius: 0; background: var(--murekkep); width: 6px; height: 6px; }

/* ---------- Kendini çizen resim ---------- */
.cizim-alani { margin: 0; }
.cz-adimlar { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 6px; padding: 0; justify-content: flex-end; }
.cz-adimlar li {
  font-family: var(--yazi-es); font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 9px; border: 1px solid rgba(24, 54, 92, .35); color: var(--soluk); background: var(--kagit);
}
.cizim-alani figcaption {
  font-family: var(--yazi-es); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--soluk); text-align: right; margin-top: 4px;
}
.cz { width: 100%; height: auto; overflow: visible; }
.cz text { font-family: var(--yazi-es); }

/* Kâğıt ve çizgiler */
.cz-golge { fill: rgba(24, 54, 92, .10); }
.cz-sayfa { fill: #fff; stroke: none; }
.cz-ciz, .cz-cerceve, .cz-antet {
  fill: none; stroke: var(--murekkep); stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1;
}
.cz-cerceve { stroke-width: 1.2; }
.cz-cerceve .ince, .cz-antet { stroke-width: .8; }
.cz-ciz { stroke-width: 1.6; }
.cz-eksen { fill: none; stroke: var(--murekkep); stroke-width: .7; stroke-dasharray: 14 3 2 3; opacity: .8; }
.cz-yatay, .cz-dikey { transform-box: fill-box; transform-origin: center; }
.cz-olcu { fill: none; stroke: var(--olcu); stroke-width: .8; stroke-dasharray: 1; stroke-dashoffset: 1; }
.cz-olcu-yazi, .cz-olcu-eski, .cz-olcu-yeni { fill: var(--olcu); font-size: 10px; font-weight: 600; opacity: 0; }
.cz-rev-isaret { fill: none; stroke: var(--kirmizi); stroke-width: 1; opacity: 0; }
.cz-rev-isaret text { fill: var(--kirmizi); stroke: none; font-size: 8px; font-weight: 700; }

/* Antet yazıları */
.cz-etiket { fill: var(--soluk); font-size: 6px; letter-spacing: .06em; opacity: 0; }
.cz-deger { fill: var(--murekkep); font-size: 9.5px; font-weight: 600; opacity: 0; }
.cz-kod-eski { fill: var(--soluk); }
.cz-kod-cizik { fill: none; stroke: var(--kirmizi); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.cz-buyuk-eski { fill: var(--soluk); font-size: 16px; font-weight: 600; opacity: 0; }
.cz-buyuk-cizik { fill: none; stroke: var(--kirmizi); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; }
.cz-buyuk-yeni { opacity: 0; }
.cz-buyuk-yeni path { fill: none; stroke: var(--murekkep); stroke-width: 1.4; }
.cz-buyuk-yeni polygon { fill: var(--murekkep); }
.cz-buyuk-yeni text { fill: var(--murekkep); font-size: 15px; font-weight: 700; }
.cz-rev0, .cz-rev1 { fill: var(--murekkep); font-size: 17px; font-weight: 700; opacity: 0; }
.cz-rev1 { fill: var(--kirmizi); }
.cz-qr { fill: var(--murekkep); opacity: 0; transform-box: fill-box; transform-origin: center; }
.cz-qr .bos { fill: #fff; }

/* Eski resim: ESKİ REVİZYONLAR'a çekilir, GEÇERSİZ damgası */
.cz-eski { opacity: 0; }
.cz-eski .kart { fill: #fff; stroke: var(--murekkep); stroke-width: 1; }
.cz-eski .soluk-cizgi { fill: none; stroke: rgba(24, 54, 92, .45); stroke-width: .9; }
.cz-eski .kart-yazi { fill: var(--soluk); font-size: 8px; font-weight: 600; }
.cz-eski .klasor { fill: var(--soluk); font-size: 9px; font-weight: 600; letter-spacing: .06em; }
.cz-carpi { fill: none; stroke: var(--kirmizi); stroke-width: 1.3; stroke-dasharray: 1; stroke-dashoffset: 1; }
.cz-damga { opacity: 0; transform-box: fill-box; transform-origin: center; }
.cz-damga rect { fill: rgba(255, 255, 255, .9); stroke: var(--kirmizi); stroke-width: 2; }
.cz-damga text { fill: var(--kirmizi); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; }

/* Zaman çizelgesi (18 sn): kâğıt %0–3 · antet %4–10 · 1 KOD: Parça1.SLDPRT → kodlu dosya adı ortada ve antette
   %8–31 · 2 RESİM: eksen %30–34, görünüş
   %34–48, ölçü %46–56, QR %54–58 · 3 REVİZYON: ölçü 6 → 8, R00 → R01 %61–67, eski resim çekilir %66–71, çarpı %72–77,
   GEÇERSİZ %77–81 · bekler · hepsi söner %90–96 · baştan. */
.cz-hepsi  { animation: cz-hepsi var(--dongu) infinite; }
.cz-cerceve { animation: cz-cerceve var(--dongu) infinite; }
.cz-antet  { animation: cz-antet var(--dongu) infinite; }
.cz-etiket { animation: cz-etiket var(--dongu) infinite; }
.cz-buyuk-eski { animation: cz-buyuk-eski var(--dongu) infinite; }
.cz-buyuk-cizik { animation: cz-buyuk-cizik var(--dongu) infinite; }
.cz-buyuk-yeni { animation: cz-buyuk-yeni var(--dongu) infinite; }
.cz-kod-eski { animation: cz-kod-eski var(--dongu) infinite; }
.cz-kod-cizik { animation: cz-kod-cizik var(--dongu) infinite; }
.cz-kod    { animation: cz-kod var(--dongu) infinite; }
.cz-tanim  { animation: cz-tanim var(--dongu) infinite; }
.cz-malzeme { animation: cz-malzeme var(--dongu) infinite; }
.cz-rev0   { animation: cz-rev0 var(--dongu) infinite; }
.cz-yatay  { animation: cz-yatay var(--dongu) infinite; }
.cz-dikey  { animation: cz-dikey var(--dongu) infinite; }
.cz-ciz-a  { animation: cz-ciz-a var(--dongu) infinite; }
.cz-ciz-b  { animation: cz-ciz-b var(--dongu) infinite; }
.cz-olcu   { animation: cz-olcu var(--dongu) infinite; }
.cz-olcu-yazi { animation: cz-olcu-yazi var(--dongu) infinite; }
.cz-olcu-eski { animation: cz-olcu-eski var(--dongu) infinite; }
.cz-qr     { animation: cz-qr var(--dongu) infinite; }
.cz-olcu-yeni { animation: cz-olcu-yeni var(--dongu) infinite; }
.cz-rev-isaret { animation: cz-rev-isaret var(--dongu) infinite; }
.cz-rev1   { animation: cz-rev1 var(--dongu) infinite; }
.cz-eski   { animation: cz-eski var(--dongu) infinite; }
.cz-carpi  { animation: cz-carpi var(--dongu) infinite; }
.cz-damga  { animation: cz-damga var(--dongu) infinite; }
.cz-adim1  { animation: cz-adim1 var(--dongu) infinite; }
.cz-adim2  { animation: cz-adim2 var(--dongu) infinite; }
.cz-adim3  { animation: cz-adim3 var(--dongu) infinite; }

@keyframes cz-hepsi { 0% { opacity: 0; } 3%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes cz-cerceve { 0%, 1% { stroke-dashoffset: 1; } 6%, 97% { stroke-dashoffset: 0; } 98%, 100% { stroke-dashoffset: 1; } }
@keyframes cz-antet { 0%, 4% { stroke-dashoffset: 1; } 9%, 97% { stroke-dashoffset: 0; } 98%, 100% { stroke-dashoffset: 1; } }
@keyframes cz-etiket { 0%, 7% { opacity: 0; } 10%, 97% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes cz-buyuk-eski { 0%, 8% { opacity: 0; } 11%, 28% { opacity: 1; } 31%, 100% { opacity: 0; } }
@keyframes cz-buyuk-cizik {
  0%, 14% { stroke-dashoffset: 1; opacity: 1; }
  18%, 28% { stroke-dashoffset: 0; opacity: 1; }
  31%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes cz-buyuk-yeni {
  0%, 18% { opacity: 0; transform: translateY(-6px); }
  22%, 28% { opacity: 1; transform: translateY(0); }
  31%, 100% { opacity: 0; transform: translateY(0); }
}
@keyframes cz-kod-eski { 0%, 9% { opacity: 0; } 12%, 19% { opacity: 1; } 22%, 100% { opacity: 0; } }
@keyframes cz-kod-cizik {
  0%, 15% { stroke-dashoffset: 1; opacity: 1; }
  19% { stroke-dashoffset: 0; opacity: 1; }
  22%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes cz-kod { 0%, 21% { opacity: 0; } 26%, 97% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes cz-tanim { 0%, 24% { opacity: 0; } 28%, 97% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes cz-malzeme { 0%, 26% { opacity: 0; } 30%, 97% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes cz-rev0 { 0%, 26% { opacity: 0; } 30%, 61% { opacity: 1; } 64%, 100% { opacity: 0; } }
@keyframes cz-yatay { 0%, 30% { transform: scaleX(0); } 34%, 97% { transform: scaleX(1); } 98%, 100% { transform: scaleX(0); } }
@keyframes cz-dikey { 0%, 30% { transform: scaleY(0); } 34%, 97% { transform: scaleY(1); } 98%, 100% { transform: scaleY(0); } }
@keyframes cz-ciz-a { 0%, 34% { stroke-dashoffset: 1; } 44%, 97% { stroke-dashoffset: 0; } 98%, 100% { stroke-dashoffset: 1; } }
@keyframes cz-ciz-b { 0%, 39% { stroke-dashoffset: 1; } 48%, 97% { stroke-dashoffset: 0; } 98%, 100% { stroke-dashoffset: 1; } }
@keyframes cz-olcu { 0%, 46% { stroke-dashoffset: 1; } 54%, 97% { stroke-dashoffset: 0; } 98%, 100% { stroke-dashoffset: 1; } }
@keyframes cz-olcu-yazi { 0%, 51% { opacity: 0; } 55%, 97% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes cz-olcu-eski { 0%, 51% { opacity: 0; } 55%, 61% { opacity: 1; } 63%, 100% { opacity: 0; } }
@keyframes cz-qr {
  0%, 54% { opacity: 0; transform: scale(.6); }
  58%, 97% { opacity: 1; transform: scale(1); }
  98%, 100% { opacity: 0; transform: scale(.6); }
}
@keyframes cz-olcu-yeni { 0%, 62% { opacity: 0; } 65%, 97% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes cz-rev-isaret { 0%, 63% { opacity: 0; } 66%, 97% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes cz-rev1 { 0%, 64% { opacity: 0; } 67%, 97% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes cz-eski {
  0%, 66% { opacity: 0; transform: translate(46px, -30px); }
  71%, 97% { opacity: 1; transform: translate(0, 0); }
  98%, 100% { opacity: 0; transform: translate(46px, -30px); }
}
@keyframes cz-carpi { 0%, 72% { stroke-dashoffset: 1; } 77%, 97% { stroke-dashoffset: 0; } 98%, 100% { stroke-dashoffset: 1; } }
@keyframes cz-damga {
  0%, 77% { opacity: 0; transform: scale(1.5); }
  81%, 97% { opacity: 1; transform: scale(1); }
  98%, 100% { opacity: 0; transform: scale(1.5); }
}
@keyframes cz-adim1 { 0%, 3% { background: var(--kagit); color: var(--soluk); } 4%, 29% { background: var(--murekkep); color: #fff; } 30%, 100% { background: var(--kagit); color: var(--soluk); } }
@keyframes cz-adim2 { 0%, 29% { background: var(--kagit); color: var(--soluk); } 30%, 59% { background: var(--murekkep); color: #fff; } 60%, 100% { background: var(--kagit); color: var(--soluk); } }
@keyframes cz-adim3 { 0%, 59% { background: var(--kagit); color: var(--soluk); } 60%, 95% { background: var(--murekkep); color: #fff; } 96%, 100% { background: var(--kagit); color: var(--soluk); } }

/* Hareketi kapatan ziyaretçi: son kare durağan — kodlu, ölçülü resim R01, eski resim GEÇERSİZ damgalı. */
@media (prefers-reduced-motion: reduce) {
  .cz *, .cz-adimlar li { animation: none !important; }
  .cz-cerceve, .cz-antet, .cz-ciz, .cz-olcu, .cz-carpi { stroke-dashoffset: 0; }
  .cz-etiket, .cz-deger, .cz-olcu-yazi, .cz-olcu-yeni, .cz-rev-isaret, .cz-rev1, .cz-qr, .cz-eski, .cz-damga { opacity: 1; }
  .cz-kod-eski, .cz-kod-cizik, .cz-rev0, .cz-olcu-eski, .cz-buyuk-eski, .cz-buyuk-cizik, .cz-buyuk-yeni { opacity: 0; }
}

/* ---------- Alt sıra: modül listesi + antet (paftanın sağ alt köşesi) ---------- */
.pafta-alt {
  display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  margin: 34px -34px 0; border-top: 1px solid var(--murekkep); background: var(--kagit);
}
.pafta-baslik {
  margin: 0; padding: 6px 12px; background: var(--murekkep); color: #fff;
  font-family: var(--yazi-es); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.pafta-liste { border-right: 1px solid var(--murekkep); }
.pafta-liste table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.pafta-liste th {
  text-align: left; font-family: var(--yazi-es); font-size: .68rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--soluk); padding: 6px 12px; border-bottom: 1px solid var(--murekkep);
}
.pafta-liste td { padding: 7px 12px; border-bottom: 1px solid rgba(24, 54, 92, .22); vertical-align: middle; }
.pafta-liste tr:last-child td { border-bottom: 0; }
.pafta-liste td:first-child, .pafta-liste th:first-child { width: 52px; text-align: center; border-right: 1px solid rgba(24, 54, 92, .22); }
.poz {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--murekkep); color: var(--murekkep); font-family: var(--yazi-es); font-size: .8rem; font-weight: 700;
}
.poz.g-tasarim { border-color: var(--grup-tasarim); color: var(--grup-tasarim); }
.poz.g-cikti { border-color: var(--grup-cikti); color: var(--grup-cikti); }
.poz.g-kutuphane { border-color: var(--grup-kutuphane); color: var(--grup-kutuphane); }
.poz.g-yardim { border-color: var(--grup-yardim); color: var(--grup-yardim); }
.pafta-grup { display: grid; gap: 1px; }
.pafta-grup b { color: var(--murekkep); font-size: .84rem; letter-spacing: .04em; line-height: 1.3; }
.pafta-grup small { color: var(--soluk); font-size: .8rem; line-height: 1.35; }

.antet { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto auto; }
.antet > div { padding: 7px 12px; border-bottom: 1px solid var(--murekkep); }
.antet > div:last-child { border-bottom: 0; }
.antet .sol { border-right: 1px solid var(--murekkep); }
.antet .tam { grid-column: 1 / -1; }
.antet a { font-family: var(--yazi-es); font-size: .86rem; font-weight: 600; color: var(--murekkep); overflow-wrap: anywhere; }
.antet span {
  display: block; font-family: var(--yazi-es); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--soluk);
}
.antet b { font-family: var(--yazi-es); font-size: .9rem; color: var(--murekkep); font-weight: 600; }
.antet .antet-ad {
  grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; align-content: center;
  padding: 14px 14px; border-right: 0;
}
.antet .antet-ad img { width: 40px; height: 40px; grid-row: span 2; }
.antet .antet-ad b { font-family: var(--yazi-dar); font-stretch: 87.5%; font-size: 1.25rem; font-weight: 700; letter-spacing: .02em; }
.antet .antet-ad small { color: var(--soluk); font-size: .82rem; }

/* ---------- Modüller bölümü: panelin gerçek ekran görüntüsü (eskiden girişteydi) ---------- */
.moduller-bas { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; margin-bottom: 44px; }
.moduller-bas .bolum-bas { margin-bottom: 0; }
.moduller-gor { width: 100%; }

/* ---------- Dar ekran ---------- */
@media (max-width: 920px) {
  .pafta-ust { grid-template-columns: 1fr; gap: 26px; }
  .pafta-alt { grid-template-columns: 1fr; }
  .pafta-liste { border-right: 0; border-bottom: 1px solid var(--murekkep); }
  .moduller-bas { grid-template-columns: 1fr; gap: 28px; }
  .moduller-gor { max-width: 300px; justify-self: center; }
}
@media (max-width: 560px) {
  .pafta-giris { padding: 18px 0 26px; }
  .pafta { grid-template-columns: 14px minmax(0, 1fr) 14px; grid-template-rows: 14px auto 14px; margin: 4px; outline-offset: 3px; }
  .bolge { font-size: .56rem; }
  .cz-adimlar li { font-size: .62rem; letter-spacing: .03em; padding: 3px 6px; }
  .pafta-ic { padding: 22px 16px 0; }
  .pafta-alt { margin: 26px -16px 0; }
  .pafta-liste thead { display: none; }
  .pafta-liste td { padding: 7px 10px; }
  .pafta-liste td:first-child { width: 40px; }
}
