/*
 * Page-scoped styles for /<locale>/pistrotalari — "Pist Rota Planlayıcı".
 * Ported 1:1 from the standalone "Nasıl Giderim? — Lift Rota Planlayıcı"
 * design bundle. The live piste-map column was intentionally removed
 * (Burak isteği) and the route-directions ("Yol Tarifi") column now spans
 * the full width (.ng-grid → single column).
 *
 * Hero uses the shared .cmphero (styles.css). Buttons reuse .btn/.btn-yellow/
 * .btn-primary. Mounted from apps/web/src/app/layout.tsx.
 */

.ng-wrap { max-width: 1320px; margin: 0 auto; padding: 0 40px; }

.ng-planner {
  position: relative; z-index: 6; margin-top: -56px;
  background: #fff; border: 2px solid var(--u-black);
  border-radius: var(--u-radius-lg);
  box-shadow: 0 4px 0 var(--u-black), 0 22px 44px -22px rgba(10,10,10,0.4);
  overflow: hidden;
}
.ng-planner-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 24px; border-bottom: 2px solid var(--u-black); background: var(--u-black); color: #fff;
}
.ng-planner-head .t {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Mark Pro'; font-weight: 900; font-style: italic;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--u-yellow);
}
.ng-planner-head .t .sq { width: 9px; height: 9px; background: var(--u-fuchsia); }
.ng-planner-head .hint { font-family: 'Gotham'; font-size: 12.5px; color: rgba(255,255,255,0.7); }

.ng-picker-row { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: stretch; gap: 0; }
.ng-pick { display: flex; align-items: center; gap: 16px; padding: 22px 26px; position: relative; }
.ng-pick .ic {
  width: 52px; height: 52px; border-radius: 999px; flex-shrink: 0;
  display: grid; place-items: center; border: 2px solid var(--u-black);
  box-shadow: 0 3px 0 var(--u-black);
}
.ng-pick.from .ic { background: var(--u-fuchsia); color: #fff; }
.ng-pick.to   .ic { background: var(--u-green);   color: #fff; }
.ng-pick .body { flex: 1; min-width: 0; }
.ng-pick .lbl {
  font-family: 'Mark Pro'; font-weight: 700; font-size: 10px; color: var(--u-muted);
  letter-spacing: 0.18em; text-transform: uppercase;
}
.ng-pick .sel { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 6px; cursor: pointer; }
.ng-pick .sel .code {
  font-family: 'Mark Pro'; font-weight: 900; font-size: 13px; color: var(--u-yellow);
  background: var(--u-black); padding: 4px 9px; border-radius: 6px; letter-spacing: 0.06em; flex-shrink: 0;
}
.ng-pick .sel .nm {
  font-family: 'Mark Pro'; font-weight: 700; font-size: 22px; color: var(--u-black);
  line-height: 1; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ng-pick .sel .chev { color: var(--u-muted); flex-shrink: 0; }
.ng-pick .zone { font-family: 'Gotham'; font-size: 12.5px; color: var(--u-muted); margin-top: 5px; }
.ng-pick select {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font: inherit;
}
.ng-pick.from { border-right: 1px dashed var(--u-line); }

.ng-swap-col { display: grid; place-items: center; position: relative; }
.ng-swap {
  width: 52px; height: 52px; border-radius: 999px;
  background: var(--u-yellow); border: 2px solid var(--u-black);
  display: grid; place-items: center; box-shadow: 0 3px 0 var(--u-black);
  transition: transform 200ms cubic-bezier(.5,0,.2,1), background 160ms ease;
}
.ng-swap:hover { background: #fff; }
.ng-swap:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--u-black); }
.ng-swap.spin { transform: rotate(180deg); }
/* Bug Report 04.06 — desktop picker yatay (from | swap | to) → yukarı/aşağı
   ok yerine sağ/sol ok için ikonu 90° döndür. */
.ng-swap svg { transform: rotate(90deg); }

.ng-summary {
  display: flex; align-items: center; gap: 28px;
  padding: 18px 26px; border-top: 2px solid var(--u-black); background: #FAFCFE; flex-wrap: wrap;
}
.ng-stat { display: flex; flex-direction: column; gap: 3px; }
.ng-stat .k {
  font-family: 'Mark Pro'; font-weight: 700; font-size: 10px; color: var(--u-muted);
  letter-spacing: 0.16em; text-transform: uppercase;
}
.ng-stat .v {
  font-family: 'Mark Pro'; font-weight: 900; font-size: 26px; color: var(--u-black); line-height: 1; letter-spacing: -0.02em;
}
.ng-stat .v small { font-family: 'Gotham'; font-weight: 400; font-size: 13px; color: var(--u-muted); margin-left: 2px; }
.ng-stat.diff .v { color: var(--u-fuchsia); font-size: 18px; }
.ng-stat .v .chip { display: inline-flex; align-items: center; gap: 7px; }
.ng-stat .v .chip .dot { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--u-black); background: var(--u-fuchsia); }
.ng-sep { width: 2px; align-self: stretch; background: var(--u-line); opacity: 0.12; }
.ng-summary .grow { flex: 1; }
.ng-summary .btn { padding: 14px 24px; }

/* Map column removed → directions span full width. */
.ng-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; margin-top: 28px; }

.ng-steps-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ng-steps-head .ttl { font-family: 'Mark Pro'; font-weight: 900; font-size: 30px; color: var(--u-black); letter-spacing: -0.02em; }
.ng-steps-head .ttl .accent { color: var(--u-fuchsia); }
.ng-steps-head .count {
  font-family: 'Mark Pro'; font-weight: 700; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--u-muted); background: #fff; border: 2px solid var(--u-black); padding: 7px 13px; border-radius: 999px; white-space: nowrap;
}
.ng-timeline { position: relative; }
.ng-timeline::before {
  content: ''; position: absolute; left: 25px; top: 26px; bottom: 26px; width: 2px;
  background: repeating-linear-gradient(180deg, var(--u-line) 0 6px, transparent 6px 12px); opacity: 0.4; z-index: 0;
}
.ng-step { position: relative; z-index: 1; display: flex; gap: 18px; align-items: flex-start; margin-bottom: 14px; }
.ng-step .node {
  width: 52px; height: 52px; border-radius: 999px; flex-shrink: 0;
  display: grid; place-items: center; border: 2px solid var(--u-black); box-shadow: 0 3px 0 var(--u-black);
}
.ng-step .card {
  flex: 1; background: #fff; border: 2px solid var(--u-black); border-radius: 14px;
  padding: 16px 20px; transition: transform 160ms ease, box-shadow 160ms ease;
}
.ng-step:hover .card { transform: translateX(3px); box-shadow: -3px 3px 0 var(--u-black); }
.ng-step .k { font-family: 'Mark Pro'; font-weight: 700; font-size: 10px; color: var(--u-muted); letter-spacing: 0.16em; text-transform: uppercase; }
.ng-step .tx { font-family: 'Mark Pro'; font-weight: 700; font-size: 17px; color: var(--u-black); line-height: 1.3; margin-top: 4px; }
.ng-step .tx b { color: var(--u-fuchsia); }
.ng-empty {
  border: 2px dashed var(--u-line); border-radius: 14px; padding: 28px; text-align: center;
  font-family: 'Mark Pro'; font-weight: 700; color: var(--u-muted);
}

.ng-cta { margin-top: 6px; display: flex; gap: 12px; }
.ng-cta .btn { flex: 1; justify-content: center; padding: 16px; font-size: 15px; }

.ng-tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.ng-tip { background: #fff; border: 2px solid var(--u-black); border-radius: 16px; padding: 20px 22px; display: flex; flex-direction: column; gap: 9px; }
.ng-tip .ti { width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--u-black); display: grid; place-items: center; box-shadow: 0 3px 0 var(--u-black); }
.ng-tip.a .ti { background: var(--u-yellow); }
.ng-tip.b .ti { background: var(--u-blue); color: #fff; }
.ng-tip.c .ti { background: var(--u-teal); color: #fff; }
.ng-tip h3 { font-family: 'Mark Pro'; font-weight: 700; font-size: 17px; color: var(--u-black); }
.ng-tip p { margin: 0; font-family: 'Gotham'; font-size: 13px; color: var(--u-slate); line-height: 1.5; }
.ng-tip .lk { font-family: 'Mark Pro'; font-weight: 700; font-size: 12px; color: var(--u-fuchsia); letter-spacing: 0.04em; margin-top: 2px; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .ng-wrap { padding: 0 20px; }
  .ng-picker-row { grid-template-columns: 1fr; }
  .ng-pick.from { border-right: 0; border-bottom: 1px dashed var(--u-line); }
  .ng-swap-col { padding: 8px 0; }
  .ng-swap.spin { transform: rotate(90deg); }
  /* Mobilde picker dikey stack → ok yukarı/aşağı doğru; ikon dönüşünü sıfırla. */
  .ng-swap svg { transform: none; }
  .ng-summary { gap: 16px; }
  .ng-summary .ng-sep { display: none; }
  .ng-steps-head .ttl { font-size: 24px; }
  .ng-tips { grid-template-columns: 1fr; }
}
