/* "Fisten Luca'ya" surec sahnesi. Isaretleme: src/services/lucaSurec.js
   Gizleme YALNIZ .ls-armed altinda (JS ekler); JS yoksa her sey gorunur. */

.ls {
  --ls-tarih: #0e7490;
  --ls-no: #6d28d9;
  --ls-vkn: #b45309;
  --ls-kdv: #be123c;
  --ls-toplam: #0f766e;
  --ls-cizgi: #0f766e;
  --ls-kenar: rgba(7, 18, 15, 0.12);
  color: var(--ink, #07120f);
  font-size: 15px;
  line-height: 1.55;
  margin-block: 26px 34px;
}

/* Blog yazisi 720 px; sahne tablolar icin daha genis alana tasar. */
.post-body .ls {
  margin-inline: calc(50% - min(520px, 50vw - 14px));
}

.ls-ust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--teal, #0f766e);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ls-tekrar {
  flex: none;
  padding: 7px 11px;
  border: 1px solid var(--ls-kenar);
  border-radius: 999px;
  background: #fff;
  color: var(--ink, #07120f);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.ls-adim {
  padding: clamp(16px, 2.6vw, 28px);
  border: 1px solid var(--ls-kenar);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(7, 18, 15, 0.05);
}

.ls-baslik {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.ls-no {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink, #07120f);
  color: var(--lime, #c8f46a);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 17px;
  font-weight: 700;
}

.ls .ls-baslik h3 {
  margin: 0;
  color: var(--ink, #07120f);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(19px, 2.3vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ls .ls-baslik p {
  margin: 5px 0 0;
  color: var(--muted, #51615c);
  font-size: 15px;
  line-height: 1.5;
}

.ls .ls-baslik p strong {
  color: var(--ink, #07120f);
}

/* 1. adim: fis fotograflari */
.ls-fisler {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 28px);
  align-items: start;
}

.ls-fis {
  margin: 0;
  min-width: 0;
  transition: opacity 0.25s ease;
}

.ls-fis-dugme {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.ls-foto {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #d9c8ad;
  box-shadow: 0 12px 28px rgba(7, 18, 15, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ls-fis:nth-child(1) .ls-foto { transform: rotate(-1deg); }
.ls-fis:nth-child(3) .ls-foto { transform: rotate(0.8deg); }

.ls-fis-dugme:hover .ls-foto,
.ls-fis-dugme[aria-pressed="true"] .ls-foto {
  transform: rotate(0) translateY(-3px);
  box-shadow: 0 18px 36px rgba(7, 18, 15, 0.22);
}

.ls-fis-dugme:focus-visible {
  outline: 3px solid var(--teal, #0f766e);
  outline-offset: 4px;
  border-radius: 8px;
}

.ls-foto img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
}

.ls-isaret {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
}

.ls-isaret path {
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ls-alan-tarih { stroke: var(--ls-tarih); }
.ls-alan-no { stroke: var(--ls-no); }
.ls-alan-vkn { stroke: var(--ls-vkn); }
.ls-alan-kdv { stroke: var(--ls-kdv); }
.ls-alan-toplam { stroke: var(--ls-toplam); }

.ls-fis figcaption {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 13px;
  font-size: 13px;
  line-height: 1.35;
}

.ls-fis figcaption strong,
.ls-fis figcaption small {
  display: block;
}

.ls-fis figcaption small {
  margin-top: 2px;
  color: var(--muted, #51615c);
  font-size: 12px;
}

.ls-harf {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 6px;
  border-radius: 5px;
  background: var(--mist, #e8f1ef);
  color: var(--teal, #0f766e);
  font-size: 11px;
  font-weight: 800;
  vertical-align: 1px;
}

.ls-fis figcaption .ls-harf { margin-right: 0; }

.ls-lejant {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  font-weight: 700;
}

.ls-lejant li { margin: 0; }

.ls-lejant i,
.ls-tablo th i {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 3px;
  background: currentColor;
}

.ls-kolon-tarih { color: var(--ls-tarih) !important; }
.ls-kolon-no { color: var(--ls-no) !important; }
.ls-kolon-vkn { color: var(--ls-vkn) !important; }
.ls-kolon-kdv { color: var(--ls-kdv) !important; }
.ls-kolon-toplam { color: var(--ls-toplam) !important; }

.ls .ls-dipnot {
  margin: 8px 0 0;
  color: var(--soft, #6f7e78);
  font-size: 12px;
}

/* Adimlar arasi cizgiler */
.ls-kopru {
  display: flex;
  justify-content: center;
  padding-block: 2px;
}

.ls-baglanti {
  display: block;
  fill: none;
  stroke: var(--ls-cizgi);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ls-baglanti-genis { width: 100%; height: auto; max-height: 80px; }
.ls-baglanti-dar { display: none; width: 34px; height: 48px; }

/* Tablo ve tek okun ortak kopru duzeni: tek yolu olan sema dar kalir. */
.ls-iz {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

/* Tablolar */
.ls-tablo-kabuk {
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--ls-kenar);
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}

.ls .ls-tablo {
  display: table;
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  background: #fff;
  font-size: 13.5px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.ls .ls-tablo th,
.ls .ls-tablo td {
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid rgba(7, 18, 15, 0.07);
  background: transparent;
  text-align: left;
  vertical-align: top;
}

.ls .ls-tablo th,
.ls .ls-tablo td {
  white-space: normal;
  letter-spacing: 0;
  text-transform: none;
}

.ls .ls-tablo tbody tr td {
  background: #fff;
}

.ls .ls-tablo thead th {
  background: #f3f7f4;
  color: var(--ink, #07120f);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.ls .ls-tablo .ls-sag { text-align: right; }
.ls .ls-tablo .ls-nw { white-space: nowrap; }

.ls-oran { display: block; }
.ls-oran em {
  margin-right: 5px;
  color: var(--soft, #6f7e78);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 700;
}

.ls-tablo tbody tr { transition: opacity 0.2s ease, background 0.2s ease; }

.ls .ls-yevmiye .ls-grup th {
  padding-top: 11px;
  background: #fafcfa;
  color: var(--muted, #51615c);
  font-size: 12px;
  font-weight: 600;
}

.ls-grup th span {
  color: var(--ink, #07120f);
  font-weight: 800;
}

.ls-kod { font-weight: 700; }

.ls .ls-yevmiye .ls-alacak td { border-bottom-color: rgba(7, 18, 15, 0.14); }

.ls .ls-yevmiye tfoot td {
  border-bottom: 0;
  background: var(--ink, #07120f);
  color: #fff;
  font-weight: 800;
}

.ls-tik {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--lime, #c8f46a);
  color: var(--ink, #07120f);
  font-size: 12px;
}

.ls .ls-tam { font-size: 12.5px; }
.ls .ls-tam th, .ls .ls-tam td { padding: 7px 10px; }

.ls .ls-kurallar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 22px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted, #51615c);
  font-size: 13.5px;
}

.ls .ls-kurallar li {
  position: relative;
  margin: 0;
  padding-left: 19px;
}

.ls .ls-kurallar li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 1px;
  width: 8px;
  height: 4px;
  border-bottom: 2px solid var(--teal, #0f766e);
  border-left: 2px solid var(--teal, #0f766e);
  transform: rotate(-45deg);
}

.ls-kurallar strong { color: var(--ink, #07120f); }

.ls-detay { margin-top: 14px; }

.ls-detay summary {
  cursor: pointer;
  color: var(--teal, #0f766e);
  font-size: 13.5px;
  font-weight: 700;
}

.ls-detay .ls-tablo-kabuk { margin-top: 10px; }

/* 4. adim: Luca semasi */
.ls-luca {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(16px, 2.6vw, 28px);
  align-items: start;
}

.ls-sema { margin: 0; min-width: 0; }

.ls-sema-yol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid var(--ls-kenar);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: #eef3f1;
  font-size: 12px;
}

.ls-sema-yol i { color: var(--soft, #6f7e78); font-style: normal; }

.ls-sema-govde {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--ls-kenar);
  border-radius: 0 0 12px 12px;
  background: #fbfcfb;
  font-size: 11.5px;
  line-height: 1.3;
}

.ls-sema-yukle,
.ls-sema-liste,
.ls-sema-detay {
  min-width: 0;
  padding: 10px;
  border: 1.5px dashed rgba(7, 18, 15, 0.2);
  border-radius: 9px;
  background: #fff;
}

.ls-sema-detay { grid-column: 1 / -1; }

.ls-sema-kes {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.ls-sema-baslik {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 11.5px;
  font-weight: 800;
}

.ls-rozet {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal, #0f766e);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.ls-sema-dosya {
  display: flex;
  gap: 6px;
  align-items: center;
  overflow: hidden;
  margin-bottom: 7px;
  padding: 6px;
  border-radius: 6px;
  background: var(--mist, #e8f1ef);
  font-weight: 700;
  white-space: nowrap;
}

.ls-xls {
  flex: none;
  padding: 2px 4px;
  border-radius: 3px;
  background: var(--teal, #0f766e);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

.ls-sema-alan {
  margin-bottom: 7px;
  padding: 6px;
  border: 1px solid var(--ls-kenar);
  border-radius: 6px;
  color: var(--soft, #6f7e78);
}

.ls-sema-dugme {
  width: fit-content;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--ink, #07120f);
  color: #fff;
  font-weight: 800;
}

.ls-sema-dugme-ana {
  background: var(--lime, #c8f46a);
  color: var(--ink, #07120f);
  font-size: 12.5px;
}

.ls-sema-satir {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.7fr;
  gap: 6px;
  padding: 5px 2px;
  border-top: 1px solid rgba(7, 18, 15, 0.06);
  font-variant-numeric: tabular-nums;
  transition: opacity 0.2s ease;
}

.ls-sema-satir span {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ls-sema-satir .ls-sag { text-align: right; }
.ls-sema-bas { border-top: 0; color: var(--soft, #6f7e78); font-weight: 800; }

.ls-sema figcaption {
  margin-top: 8px;
  color: var(--soft, #6f7e78);
  font-size: 12px;
}

.ls .ls-luca-adimlar {
  counter-reset: ls-sira;
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted, #51615c);
  font-size: 14.5px;
  line-height: 1.5;
}

.ls .ls-luca-adimlar li {
  counter-increment: ls-sira;
  position: relative;
  margin: 0;
  padding-left: 32px;
}

.ls-luca-adimlar li::before {
  content: counter(ls-sira);
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal, #0f766e);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.ls-luca-adimlar strong { color: var(--ink, #07120f); }

.ls .ls-sinir {
  margin: 16px 0 0;
  padding: 11px 14px;
  border-radius: 10px;
  background: #fff8e8;
  color: #5c4a1c;
  font-size: 13.5px;
}

.ls-sinir a { color: inherit; font-weight: 700; text-decoration: underline; }

/* Kapanis cagrisi */
.ls-cta {
  display: flex;
  gap: 18px 28px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: clamp(20px, 3vw, 30px);
  border-radius: 18px;
  background: var(--ink, #07120f);
  color: #fff;
}

.ls .ls-cta-baslik {
  margin: 0;
  color: #fff;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(20px, 2.5vw, 27px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.ls .ls-cta-not {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13.5px;
  line-height: 1.5;
}

.ls-cta-dugmeler {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.ls-cta .btn { min-height: 50px; white-space: nowrap; }
.ls-cta .btn,
.ls-cta .btn:hover { color: inherit; }
.ls .ls-cta a.btn-primary {
  border: 0;
  background: var(--lime, #c8f46a);
  color: var(--ink, #07120f);
  text-decoration: none;
  box-shadow: none;
}
.ls .ls-cta a.btn-primary span,
.ls .ls-cta a.btn-primary i { border: 0; background: none; text-decoration: none; }
.ls-cta a.ls-cta-ikincil { color: #fff; font-size: 13.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Fis secimi: digerleri soner */
.ls[data-secili="as"] [data-fis]:not([data-fis="as"]),
.ls[data-secili="bim"] [data-fis]:not([data-fis="bim"]),
.ls[data-secili="yilmaz"] [data-fis]:not([data-fis="yilmaz"]) {
  opacity: 0.28;
}

/* Animasyon. fill-mode backwards: bitince normal stil gecerli olsun, yoksa
   animasyonun son karesi fis secimindeki solukluğu ezer. */
.ls-armed .ls-anim { opacity: 0; }
.ls-armed .ls-iz { stroke-dashoffset: 1; }
.ls-armed .ls-rozet { transform: scale(0.4); opacity: 0; }

.ls-on .ls-anim { animation: ls-gel 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s) backwards; }
.ls-on .ls-iz { animation: ls-ciz 0.7s ease-out var(--d, 0s) backwards; }
.ls-on .ls-rozet { animation: ls-rozet 0.55s cubic-bezier(0.3, 1.5, 0.5, 1) var(--d, 0s) backwards; }
.ls-on .ls-sema-dugme { animation: ls-bas 0.55s ease var(--d, 0s) backwards; }

@keyframes ls-gel {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes ls-ciz {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes ls-rozet {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 1; transform: none; }
}

@keyframes ls-bas {
  0%, 100% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0); transform: none; }
  45% { box-shadow: 0 0 0 6px rgba(15, 118, 110, 0.22); transform: scale(0.96); }
}

@media (prefers-reduced-motion: reduce) {
  .ls * { animation: none !important; transition: none !important; }
}

@media (max-width: 860px) {
  .ls-luca { grid-template-columns: minmax(0, 1fr); }
  .ls-cta { flex-direction: column; align-items: flex-start; }
  .ls-cta-dugmeler { align-items: flex-start; }
}

@media (max-width: 640px) {
  .ls-adim { border-radius: 14px; }
  .ls-baglanti-genis { display: none; }
  .ls-baglanti-dar { display: block; }

  /* Fisler yan yana kaydirilir: uc sutunda yazi okunmuyor. */
  .ls-fisler {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    margin-inline: -16px;
    padding: 6px 16px 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .ls-fis {
    flex: 0 0 68%;
    scroll-snap-align: center;
  }

  .ls .ls-kurallar { grid-template-columns: minmax(0, 1fr); }
  .ls .ls-tablo th, .ls .ls-tablo td { padding: 8px 9px; }
  .ls .ls-tablo { font-size: 13px; }
  .ls .ls-yevmiye { font-size: 12.5px; }
  .ls .ls-yevmiye th, .ls .ls-yevmiye td { padding-inline: 6px; }
  .ls .ls-yevmiye .ls-kod { font-size: 11.5px; }
  .ls .ls-yevmiye .ls-grup th { font-size: 11.5px; }
  .ls .ls-tablo td.ls-nw.ls-sag { padding-left: 2px; }
  .ls-sema-govde { grid-template-columns: minmax(0, 1fr); }
  .ls-cta .btn { width: 100%; justify-content: center; }
  .ls-cta-dugmeler { width: 100%; align-items: stretch; text-align: center; }
}
