/* eMuhasebeHub — veri görselleri: liste aktarımı, denetim izi zinciri, blog kapakları */

/* ---------- Liste aktarımı (CSV → alıcılar) ---------- */
.migrate {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
}

.sheet {
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  font-size: 13px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.sheet-src {
  transform: translateY(36px);
}

.sheet-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.sheet-head b {
  font-weight: 600;
}

.sheet-head small {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-3);
}

.file-tag {
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary);
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
}

.sheet-head .i {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.pill-ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 560;
  color: var(--primary);
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
}

.pill-ok .i {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

.sheet table {
  width: 100%;
}

.sheet th,
.sheet td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid #edf3f0;
  border-right: 1px solid #edf3f0;
  white-space: nowrap;
}

.sheet th {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
  background: #f6faf8;
}

.sheet tr > :last-child {
  border-right: 0;
}

.sheet tbody tr:last-child td {
  border-bottom: 0;
}

.sheet .mono {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
}

.cell-err {
  color: var(--danger) !important;
  background: var(--danger-bg);
}

.tick {
  width: 34px;
  padding: 0 !important;
  text-align: center !important;
}

.tick span {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  color: transparent;
  border: 1.5px solid var(--line-2);
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
  transition-delay: calc(var(--n, 0) * 0.18s + 0.4s);
}

.tick .i {
  width: 12px;
  height: 12px;
  stroke-width: 2.6;
}

.is-visible .tick span,
html:not(.js) .tick span {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.migrate-arrow {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 18px 34px -14px rgba(13, 92, 74, 0.8), 0 0 0 10px rgba(255, 255, 255, 0.55);
}

.migrate-arrow .i {
  width: 24px;
  height: 24px;
}

.sheet-dst {
  transform: translateY(-24px);
}

.party {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border-bottom: 1px solid #edf3f0;
  opacity: 0.35;
  transition: opacity 0.4s;
  transition-delay: calc(var(--n, 0) * 0.18s + 0.9s);
}

.party:last-child {
  border-bottom: 0;
}

.is-visible .party,
html:not(.js) .party {
  opacity: 1;
}

.party-check {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
}

.party-check .i {
  width: 15px;
  height: 15px;
  stroke-width: 2.6;
}

.party b {
  display: block;
  font-weight: 600;
}

.party small {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
}

.party-tag {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.party-tag.ef {
  color: #fff;
  background: var(--primary);
}

.party-tag.ea {
  color: var(--primary);
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
}

.party-tag.fix {
  color: var(--warn);
  background: var(--warn-bg);
}

.migrate-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 84px;
}

.migrate-points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.migrate-points .i {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--primary);
}

.migrate-points b {
  display: block;
  font-weight: 600;
}

.migrate-points p {
  margin-top: 4px;
  font-size: 15px;
  color: var(--ink-2);
}

/* ---------- Denetim izi zinciri ---------- */
.chain {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--grad-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.chain-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.chain-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.chain-head b {
  font-weight: 600;
}

.chain-head small {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
}

.chain-list {
  position: relative;
  padding: 10px 20px 14px;
}

.chain-list::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 30px;
  left: 35px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary-100), var(--primary));
}

.chain-item {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  font-size: 13.5px;
}

.chain-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--primary);
  background: #fff;
  border: 2px solid var(--primary-100);
}

.chain-item:last-child .chain-dot {
  color: #fff;
  background: var(--success);
  border-color: var(--success);
}

.chain-dot .i {
  width: 15px;
  height: 15px;
}

.chain-item b {
  display: block;
  font-weight: 600;
}

.chain-item small {
  font-size: 12px;
  color: var(--ink-3);
}

.chain-hash {
  padding: 3px 8px;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-2);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.chain-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 560;
  color: var(--success);
  background: var(--success-bg);
}

.chain-foot .i {
  width: 18px;
  height: 18px;
}

/* ---------- Blog kapakları ---------- */
.thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  isolation: isolate;
}

.thumb-mark {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 2;
  width: 82px;
  height: 10px;
  color: rgba(255, 255, 255, 0.9);
}

.thumb-a {
  background:
    radial-gradient(60% 70% at 80% 20%, rgba(127, 220, 184, 0.45), transparent 70%),
    linear-gradient(150deg, #14634f 0%, #0a3f33 100%);
}

.thumb-b {
  background:
    radial-gradient(70% 60% at 20% 10%, rgba(255, 255, 255, 0.8), transparent 70%),
    linear-gradient(160deg, #eee6db 0%, #d8c3a6 100%);
}

.thumb-c {
  background:
    radial-gradient(70% 60% at 80% 0%, rgba(255, 255, 255, 0.7), transparent 70%),
    linear-gradient(160deg, #d9e9e2 0%, #a6c4b8 100%);
}

.th-doc {
  position: absolute;
  width: 34%;
  aspect-ratio: 3 / 4;
  padding: 7% 5%;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 22px 40px -18px rgba(4, 36, 29, 0.55);
}

.th-doc i {
  display: block;
  height: 5px;
  margin-bottom: 9%;
  border-radius: 4px;
  background: #e2ebe7;
}

.th-doc i:first-child {
  width: 55%;
  height: 7px;
  background: var(--primary);
}

.th-doc i:nth-child(3) { width: 80%; }
.th-doc i:nth-child(4) { width: 65%; }

.th-doc em {
  position: absolute;
  left: 12%;
  bottom: 10%;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 650;
  color: #fff;
  background: var(--primary);
}

.th-doc em.alt {
  color: var(--primary);
  background: var(--primary-50);
}

.thumb-a .th-doc { left: 18%; top: 18%; transform: rotate(-8deg); }
.thumb-a .th-doc + .th-doc { left: 46%; top: 12%; transform: rotate(6deg); }

.th-check {
  position: absolute;
  right: 10%;
  bottom: 16%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.5);
}

.th-check .i {
  width: 22px;
  height: 22px;
  stroke-width: 2.6;
}

.thumb-b .th-doc { left: 14%; top: 16%; transform: rotate(-4deg); }
.thumb-b .th-doc ~ .th-doc { left: 52%; top: 20%; transform: rotate(5deg); }

.th-vs {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: #fff;
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
}

.th-cal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56%;
  padding: 4%;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 44px -20px rgba(4, 36, 29, 0.55);
  transform: translate(-50%, -54%) rotate(-3deg);
}

.th-cal-head {
  height: 8px;
  width: 40%;
  margin-bottom: 8%;
  border-radius: 4px;
  background: var(--primary);
}

.th-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.th-cal-grid i {
  aspect-ratio: 1;
  border-radius: 4px;
  background: #edf4f1;
}

.th-cal-grid i.on {
  background: var(--primary-100);
}

.th-cal-grid i.end {
  background: var(--accent);
}

@media (max-width: 960px) {
  .migrate {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sheet-src,
  .sheet-dst {
    transform: none;
  }

  .migrate-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .migrate-points {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }

  .sheet {
    overflow-x: auto;
  }
}
