/* eMuhasebeHub — vitrin sahneleri: tablet portal, API penceresi, ürün kartı mini arayüzleri */

/* ---------- Sahne kutusu ---------- */
.scene {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  isolation: isolate;
}

/* Sıcak sahne: ahşap raf + güneş gölgesi */
.scene-warm {
  background:
    radial-gradient(60% 50% at 20% 15%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 70%),
    linear-gradient(165deg, #f3eee7 0%, #e7dccd 55%, #d8c4a8 100%);
}

.scene-warm::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: -1;
  background:
    radial-gradient(14% 6% at 18% 22%, rgba(110, 82, 52, 0.16), transparent 70%),
    radial-gradient(10% 5% at 30% 34%, rgba(110, 82, 52, 0.14), transparent 70%),
    radial-gradient(16% 7% at 12% 46%, rgba(110, 82, 52, 0.12), transparent 70%),
    radial-gradient(12% 5% at 40% 16%, rgba(110, 82, 52, 0.12), transparent 70%),
    radial-gradient(9% 4% at 26% 58%, rgba(110, 82, 52, 0.1), transparent 70%),
    radial-gradient(18% 8% at 72% 12%, rgba(110, 82, 52, 0.08), transparent 70%);
  filter: blur(6px);
  transform: rotate(-18deg);
}

.shelf {
  position: absolute;
  left: -4%;
  right: 22%;
  bottom: 17%;
  height: 7%;
  border-radius: 0 10px 10px 0;
  background: linear-gradient(180deg, #d39a62 0%, #b47640 60%, #965d2e 100%);
  box-shadow: 0 30px 40px -18px rgba(70, 40, 15, 0.55);
}

.shelf::after {
  content: "";
  position: absolute;
  left: 40%;
  top: 100%;
  width: 18%;
  height: 120%;
  background: linear-gradient(180deg, #8f5a2c, #6f421e);
  border-radius: 0 0 6px 6px;
}

.shelf-back {
  position: absolute;
  right: -6%;
  bottom: 24%;
  width: 52%;
  height: 46%;
  border-radius: 18px 0 0 0;
  background: linear-gradient(120deg, #e2c49d 0%, #c99a66 100%);
  box-shadow: inset 6px 0 0 rgba(255, 255, 255, 0.25);
  opacity: 0.85;
}

/* Tablet */
.tablet {
  position: absolute;
  left: 50%;
  bottom: 23.5%;
  width: 54%;
  aspect-ratio: 4 / 3;
  padding: 1.6%;
  border-radius: 20px;
  background: linear-gradient(145deg, #2b2f33, #0f1113);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    40px 40px 60px -26px rgba(60, 36, 12, 0.6),
    10px 12px 20px -10px rgba(60, 36, 12, 0.4);
  transform: translateX(-50%) perspective(1100px) rotateY(-16deg) rotateX(3deg) rotateZ(-1deg);
  transform-origin: bottom center;
}

.tablet-screen {
  height: 100%;
  overflow: hidden;
  border-radius: 13px;
  background: #fff;
  font-size: clamp(4.4px, 0.54vw, 7.8px);
  line-height: 1.4;
}

.ts-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9em 1.4em;
  border-bottom: 1px solid var(--line);
  color: var(--primary);
}

.ts-top .logo {
  width: 8.4em;
  height: 1.03em;
}

.ts-top span {
  font-weight: 600;
  color: var(--ink);
}

.ts-body {
  padding: 1.2em 1.4em;
}

.ts-title {
  font-size: 1.55em;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.ts-fields {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0.7em;
  margin-top: 0.9em;
}

.ts-field {
  padding: 0.55em 0.75em;
  border-radius: 0.6em;
  border: 1px solid var(--line);
  background: #fbfdfc;
}

.ts-field small {
  display: block;
  font-size: 0.82em;
  color: var(--ink-3);
}

.ts-field b {
  font-weight: 600;
}

.ts-lines {
  width: 100%;
  margin-top: 0.9em;
}

.ts-lines th {
  padding: 0.5em 0.6em;
  font-size: 0.85em;
  font-weight: 600;
  text-align: left;
  color: var(--ink-3);
  background: #f4f8f6;
}

.ts-lines td {
  padding: 0.6em;
  border-bottom: 1px solid #eef4f1;
}

.ts-lines .r {
  text-align: right;
}

.ts-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1em;
  margin-top: 0.9em;
}

.ts-total small {
  display: block;
  color: var(--ink-3);
}

.ts-total b {
  font-size: 2em;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.ts-btn {
  padding: 0.7em 1.2em;
  border-radius: 999px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
}

/* Serin sahne: API penceresi */
.scene-cool {
  background:
    radial-gradient(70% 60% at 85% 10%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 70%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 2px, rgba(0, 0, 0, 0.03) 2px 5px),
    linear-gradient(165deg, #e0ebe6 0%, #c1d6cc 55%, #9bb8ab 100%);
}

.code-window {
  position: absolute;
  left: 8%;
  top: 13%;
  width: 72%;
  border-radius: 16px;
  overflow: hidden;
  background: #0c2620;
  box-shadow: 0 40px 70px -30px rgba(6, 40, 32, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06);
  font-family: var(--mono);
  font-size: clamp(8px, 0.9vw, 12.5px);
  line-height: 1.75;
  color: #c8e2d7;
}

.code-bar {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.1em;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-bar i {
  width: 0.8em;
  height: 0.8em;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.code-bar span {
  margin-left: 0.8em;
  color: #8fbcab;
}

.code-window pre {
  margin: 0;
  padding: 1.1em 1.3em 1.3em;
  white-space: pre;
  font: inherit;
}

.tk-m { color: #7fdcb8; font-weight: 700; }
.tk-k { color: #9ec7ff; }
.tk-s { color: #b8e6b0; }
.tk-n { color: #ffcf8a; }
.tk-c { color: #6b9586; }

.api-toast {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75em;
  padding: 0.9em 1.1em;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 44px -20px rgba(6, 40, 32, 0.6);
  font-size: clamp(8.5px, 0.9vw, 13px);
  color: var(--ink);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

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

.api-toast small {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 0.88em;
}

.api-toast-icon {
  display: grid;
  place-items: center;
  width: 2.4em;
  height: 2.4em;
  flex: none;
  border-radius: 50%;
  color: #fff;
  background: var(--success);
}

.api-toast-icon .i {
  width: 1.3em;
  height: 1.3em;
  stroke-width: 2.4;
}

.api-toast.t1 {
  right: 6%;
  bottom: 12%;
  animation: float 6s ease-in-out infinite;
}

.api-toast.t2 {
  right: 9%;
  top: 7%;
  animation: float 7s ease-in-out -2s infinite;
}

.api-toast.t2 .api-toast-icon {
  background: var(--primary);
}

@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}

/* ---------- Ürün kartı mini arayüzleri ---------- */
.mini {
  margin-top: 26px;
  padding: 14px;
  border-radius: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 13px;
}

.mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}

.mini-row + .mini-row {
  margin-top: 8px;
}

.mini-row b {
  font-weight: 600;
}

.mini-row small {
  display: block;
  color: var(--ink-3);
  font-size: 11.5px;
}

.mini-row .status {
  margin-left: auto;
  font-size: 11.5px;
}

.mini-ic {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 10px;
  color: var(--primary);
  background: var(--primary-50);
}

.mini-ic .i {
  width: 17px;
  height: 17px;
}

.mini-progress {
  height: 7px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--primary-100);
}

.mini-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 1.6s var(--ease) 0.3s;
}

.is-visible .mini-progress span {
  width: var(--w, 100%);
}

html:not(.js) .mini-progress span {
  width: var(--w, 100%);
}

.mini-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--ink-3);
}

.mini-route {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-route-line {
  position: relative;
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 11px);
}

.mini-route-line .i {
  position: absolute;
  top: 50%;
  left: 0;
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 7px;
  color: #fff;
  background: var(--primary);
  transform: translate(-50%, -50%);
  animation: drive 4.5s var(--ease) infinite;
}

@keyframes drive {
  0% { left: 0; }
  70%, 100% { left: 100%; }
}

.mini-place {
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-3);
}

.mini-place b {
  display: block;
  font-size: 12.5px;
  color: var(--ink);
}
