/* ============================================================
   GOPOS AKADEMİ — Araç / Hesaplayıcı (Kayıp Kaçak Analizi)
   ============================================================ */

.gp-arac-page { padding-bottom: var(--section-py); }

/* ── Üst bilgi ────────────────────────────────────────────── */
.gp-arac-hero {
  background: radial-gradient(ellipse 70% 90% at 50% 0%, var(--gp-primary-tint) 0%, transparent 70%), var(--gp-bg-soft);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 0;
}
.gp-arac-crumb { display: flex; gap: var(--space-2); justify-content: center; align-items: center; font-size: var(--text-sm); color: var(--gp-mute); margin-bottom: var(--space-4); }
.gp-arac-crumb a { color: var(--gp-primary); font-weight: 700; }
.gp-arac-eyebrow { display: inline-block; font-size: var(--text-xs); font-weight: 800; letter-spacing: .14em; color: var(--gp-primary); margin-bottom: var(--space-3); }
.gp-arac-title { font-size: clamp(var(--text-2xl), 3.2vw, var(--text-4xl)); font-weight: 900; color: var(--gp-ink); letter-spacing: -.03em; line-height: 1.15; margin-bottom: var(--space-4); }
.gp-arac-desc { font-size: var(--text-lg); color: var(--gp-mute); line-height: 1.7; max-width: 680px; margin-inline: auto; }

/* ── Düzen ────────────────────────────────────────────────── */
.gp-arac-grid { display: grid; grid-template-columns: 1fr 420px; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }

/* ── Girdi kartı ──────────────────────────────────────────── */
.gmh-card { background: #fff; border: 1px solid var(--gp-line); border-radius: var(--radius-2xl); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: 0 4px 18px -10px rgba(20,22,40,.12); }
.gmh-card__title { font-size: var(--text-xl); font-weight: 800; color: var(--gp-ink); margin-bottom: var(--space-6); }

.gmh-field { margin-bottom: var(--space-6); }
.gmh-field:last-of-type { margin-bottom: var(--space-4); }
.gmh-field__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); }
.gmh-field__top label { font-size: var(--text-sm); font-weight: 700; color: var(--gp-ink); line-height: 1.35; }
.gmh-num { display: inline-flex; align-items: center; gap: 4px; background: var(--gp-bg-soft); border: 1.5px solid var(--gp-line); border-radius: var(--radius); padding: .35rem .6rem; flex-shrink: 0; }
.gmh-num input { width: 74px; border: none; background: transparent; font-size: var(--text-base); font-weight: 800; color: var(--gp-primary); text-align: right; outline: none; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.gmh-num input::-webkit-outer-spin-button, .gmh-num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gmh-num--sm input { width: 60px; font-size: var(--text-sm); }
.gmh-unit { font-size: var(--text-sm); font-weight: 700; color: var(--gp-mute); }

.gmh-field input[type="range"] { width: 100%; accent-color: var(--gp-primary); height: 6px; cursor: pointer; }

/* Varsayımlar */
.gmh-assume { margin-top: var(--space-6); border-top: 1px solid var(--gp-line); padding-top: var(--space-4); }
.gmh-assume summary { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); font-weight: 700; color: var(--gp-text); cursor: pointer; list-style: none; }
.gmh-assume summary::-webkit-details-marker { display: none; }
.gmh-assume summary svg { color: var(--gp-primary); flex-shrink: 0; }
.gmh-assume[open] summary { color: var(--gp-primary); margin-bottom: var(--space-4); }
.gmh-assume__note { font-size: var(--text-xs); color: var(--gp-faint); line-height: 1.5; margin-bottom: var(--space-4); }
.gmh-assume__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: .55rem 0; border-bottom: 1px solid var(--gp-line); }
.gmh-assume__row:last-child { border-bottom: none; }
.gmh-assume__row label { font-size: var(--text-sm); color: var(--gp-text); }

/* ── Adisyon fişi ─────────────────────────────────────────── */
.gmh-result { position: sticky; top: calc(var(--header-height) + 1rem); }
.gmh-fis {
  position: relative;
  background: #fffdf9;
  border-radius: 6px 6px 3px 3px;
  padding: var(--space-8) clamp(1.25rem, 3vw, 1.9rem) var(--space-6);
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color: var(--gp-ink);
  box-shadow: 0 28px 60px -26px rgba(20,22,40,.4), 0 6px 16px -8px rgba(20,22,40,.12);
  animation: gmh-print .6s ease both;
}
@keyframes gmh-print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
/* alt kenar: gerçek fiş hissi için barkod */
.gmh-fis::after {
  content: ""; display: block; height: 42px; margin-top: var(--space-5);
  background: repeating-linear-gradient(90deg, var(--gp-ink) 0 2px, #fffdf9 2px 4px, var(--gp-ink) 4px 5px, #fffdf9 5px 9px, var(--gp-ink) 9px 12px, #fffdf9 12px 15px);
  opacity: .88;
}

.gmh-fis__head { text-align: center; display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-6); }
.gmh-fis__head strong { font-size: var(--text-base); font-weight: 800; letter-spacing: .06em; color: var(--gp-primary); }
.gmh-fis__head span { font-size: var(--text-xs); color: var(--gp-mute); letter-spacing: .04em; }
.gmh-fis__meta { margin-top: 4px; color: var(--gp-faint) !important; }

.gmh-fis__sep { border-top: 1.5px dashed var(--gp-line-2, #d9d5cf); margin: var(--space-4) 0; }
.gmh-fis__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); font-size: var(--text-sm); line-height: 1.5; padding: 6px 0; }
.gmh-fis__row span { color: var(--gp-text); }
.gmh-fis__row b { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gmh-fis__row--sub { font-weight: 800; }
.gmh-fis__row--sub span, .gmh-fis__row--sub b { font-size: var(--text-base); color: var(--gp-ink); }

.gmh-fis__total { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-4); padding-top: var(--space-4); border-top: 3px double var(--gp-ink); }
.gmh-fis__total span { font-size: var(--text-base); font-weight: 800; color: var(--gp-ink); }
.gmh-fis__total strong { font-size: var(--text-2xl); font-weight: 900; color: var(--gp-primary); font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) { .gmh-fis { animation: none; } }

/* Negatif tutar (komisyon) + food cost değerlendirme */
.gmh-neg { color: var(--gp-pink) !important; }
.gmh-eval { margin-top: var(--space-3); padding: .6rem .8rem; border-radius: var(--radius); font-size: var(--text-xs); font-weight: 700; line-height: 1.45; }
.gmh-eval--ok { background: var(--gp-teal-soft); color: var(--gp-teal); }
.gmh-eval--warn { background: var(--gp-cyan-soft); color: var(--gp-cyan); }
.gmh-eval--bad { background: var(--gp-pink-soft); color: var(--gp-pink); }

/* Aksiyon + ceza */
.gmh-actions { margin-top: var(--space-4); }
.gmh-ceza { display: flex; gap: var(--space-3); margin-top: var(--space-4); padding: var(--space-4) var(--space-5); background: var(--gp-pink-soft); border: 1px solid transparent; border-left: 3px solid var(--gp-pink); border-radius: var(--radius-lg); }
.gmh-ceza__ico { flex-shrink: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--gp-pink); color: #fff; font-weight: 900; }
.gmh-ceza strong { display: block; font-size: var(--text-sm); font-weight: 800; color: var(--gp-ink); margin-bottom: 3px; }
.gmh-ceza p { font-size: var(--text-xs); color: var(--gp-text); line-height: 1.55; }

/* ── CTA ──────────────────────────────────────────────────── */
.gmh-cta { text-align: center; margin-top: clamp(2.5rem, 5vw, 4rem); padding: clamp(2rem, 5vw, 3.5rem); border-radius: var(--radius-2xl); background: linear-gradient(135deg, var(--gp-primary-soft), var(--gp-gold-soft)); border: 1px solid var(--gp-line); }
.gmh-cta h2 { font-size: clamp(var(--text-xl), 2.6vw, var(--text-3xl)); font-weight: 800; color: var(--gp-ink); max-width: 640px; margin: 0 auto var(--space-3); letter-spacing: -.02em; line-height: 1.25; }
.gmh-cta p { font-size: var(--text-base); color: var(--gp-text); margin-bottom: var(--space-5); }
.gmh-cta__points { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); justify-content: center; margin-top: var(--space-5); font-size: var(--text-sm); font-weight: 600; color: var(--gp-text); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .gp-arac-grid { grid-template-columns: 1fr; }
  .gmh-result { position: static; max-width: 460px; margin-inline: auto; width: 100%; }
}

/* ── Açılış bütçesi: geniş sayı girişi ────────────────────── */
.gmh-num--wide input { width: 104px; text-align: right; }
.gab-subhead { font-size: var(--text-sm); font-weight: 800; color: var(--gp-ink); margin: var(--space-5) 0 var(--space-2); }

/* ── Menü mühendisliği tablosu ────────────────────────────── */
.gmm-card { padding: clamp(1rem, 3vw, 1.75rem); }
.gmm-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gmm-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.gmm-table th { text-align: left; font-size: var(--text-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--gp-mute); padding: 0 .6rem var(--space-3); border-bottom: 1.5px solid var(--gp-line); }
.gmm-table td { padding: .5rem .6rem; border-bottom: 1px solid var(--gp-line); vertical-align: middle; }
.gmm-table input { width: 100%; border: 1.5px solid var(--gp-line); border-radius: var(--radius); padding: .5rem .6rem; font-size: var(--text-sm); font-weight: 600; color: var(--gp-ink); background: var(--gp-bg-soft); outline: none; }
.gmm-table input:focus { border-color: var(--gp-primary); background: #fff; }
.gmm-table .gmm-name { min-width: 130px; }
.gmm-table .gmm-c, .gmm-table .gmm-p, .gmm-table .gmm-q { width: 88px; text-align: right; font-variant-numeric: tabular-nums; }
.gmm-profit { font-weight: 800; color: var(--gp-primary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gmm-del { width: 30px; height: 30px; border-radius: var(--radius); background: var(--gp-bg-soft); color: var(--gp-faint); font-size: 20px; line-height: 1; transition: all var(--transition-fast); }
.gmm-del:hover { background: var(--gp-pink-soft); color: var(--gp-pink); }
.gmm-add { margin-top: var(--space-4); }

.gmm-badge { display: inline-block; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: var(--radius-full); background: var(--gp-bg-soft); color: var(--gp-mute); white-space: nowrap; }
.gmm-badge--yildiz  { background: var(--gp-teal-soft); color: var(--gp-teal); }
.gmm-badge--inek    { background: var(--gp-blue-soft); color: var(--gp-blue); }
.gmm-badge--bilmece { background: var(--gp-cyan-soft); color: var(--gp-cyan); }
.gmm-badge--kopek   { background: var(--gp-pink-soft); color: var(--gp-pink); }

/* Sınıf açıklamaları */
.gmm-legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-top: var(--space-6); }
.gmm-leg { background: #fff; border: 1px solid var(--gp-line); border-radius: var(--radius-lg); padding: var(--space-4); border-top: 3px solid var(--gp-line-2); }
.gmm-leg__tag { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 3px 9px; border-radius: var(--radius-full); margin-bottom: var(--space-2); }
.gmm-leg strong { display: block; font-size: var(--text-sm); font-weight: 800; color: var(--gp-ink); margin-bottom: 4px; line-height: 1.3; }
.gmm-leg p { font-size: var(--text-xs); color: var(--gp-mute); line-height: 1.55; }
.gmm-leg--yildiz  { border-top-color: var(--gp-teal); } .gmm-leg--yildiz .gmm-leg__tag  { background: var(--gp-teal-soft); color: var(--gp-teal); }
.gmm-leg--inek    { border-top-color: var(--gp-blue); } .gmm-leg--inek .gmm-leg__tag    { background: var(--gp-blue-soft); color: var(--gp-blue); }
.gmm-leg--bilmece { border-top-color: var(--gp-cyan); } .gmm-leg--bilmece .gmm-leg__tag { background: var(--gp-cyan-soft); color: var(--gp-cyan); }
.gmm-leg--kopek   { border-top-color: var(--gp-pink); } .gmm-leg--kopek .gmm-leg__tag   { background: var(--gp-pink-soft); color: var(--gp-pink); }

@media (max-width: 900px) { .gmm-legend { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gmm-legend { grid-template-columns: 1fr; } }
