/* ============================================================
   Gorkeu — Handoff Components v1
   Mevcut .btn / .card / .input vb. üzerine inset-stroke +
   yeni radius + motion uygular.
   Class adlarını değiştirmiyoruz — mevcut sayfalar otomatik
   nimet alır.
   ============================================================ */

/* ============ BUTTON ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 0 16px;
  height: 38px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: var(--r-sm);
  border: 0;
  background: var(--surface-3);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-2);
  transition: background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
  white-space: nowrap;
  user-select: none;
  text-decoration: none;
}
.btn:hover { background: var(--surface-4); color: var(--text); }
.btn:active { transform: scale(0.97); }
.btn:disabled, .btn[disabled] { opacity: 0.4; pointer-events: none; }

.btn-sm { height: 30px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn-pill { border-radius: 999px; }

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset, 0 8px 24px -10px var(--accent-glow);
  border-color: transparent;
}
.btn-primary:hover { background: var(--accent-2); color:#fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1) inset, 0 12px 28px -8px var(--accent-glow); }
.btn-primary:active { background: var(--accent-3); transform: scale(0.97); }

.btn-secondary { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-2); }
.btn-secondary:hover { background: var(--surface-4); }

.btn-ghost { background: transparent; color: var(--text-2); box-shadow: none; }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

.btn-danger { background: rgba(255,69,58,0.12); color: var(--danger); box-shadow: inset 0 0 0 1px rgba(255,69,58,0.36); }
.btn-danger:hover { background: rgba(255,69,58,0.20); }

.btn-gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1a1208; font-weight: 600;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1) inset, 0 8px 24px -10px rgba(245,158,11,0.5);
}
.btn-gold:hover { filter: brightness(1.08); color:#1a1208; }

.btn-dark { background: #0e1424; }

/* ============ CARD ============ */
.card {
  background: var(--surface-1);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-1);
  border: 0; /* eski 1px border iptal — inset stroke kullanıyoruz */
}
.card.elev-1 { background: var(--surface-2); box-shadow: 0 0 0 1px var(--border-2), 0 4px 12px -4px rgba(0,0,0,0.6); }
.card.elev-2 { background: var(--surface-2); box-shadow: var(--shadow-2); }

/* ============ INPUT ============ */
.input {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface-2);
  color: var(--text);
  border: 0;
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--border);
  outline: none;
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
  transition: box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.input:hover { box-shadow: inset 0 0 0 1px var(--border-2); }
.input:focus { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px rgba(168,85,247,0.18); background: var(--surface-3); }
.input::placeholder { color: var(--text-4); }

.label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); font-weight: 500; margin-bottom: 6px; }

/* ============ TABLE ============ */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}
.table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-3);
  padding: 14px 16px;
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
  border-top: 0;
}
.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  border-top: 0;
  vertical-align: middle;
}
.table tbody tr { transition: background var(--t-fast) var(--ease); }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }

/* ============ ALERT ============ */
.alert {
  padding: 12px 16px;
  border-radius: var(--r-md);
  border: 0;
  box-shadow: inset 0 0 0 1px var(--border-2);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13.5px;
}
.alert-success { background: var(--success-soft); color: #5ed87f; box-shadow: inset 0 0 0 1px rgba(48,209,88,0.26); }
.alert-danger  { background: var(--danger-soft);  color: #ff6b62; box-shadow: inset 0 0 0 1px rgba(255,69,58,0.26); }
.alert-warn, .alert-warning { background: var(--warning-soft); color: #ffb340; box-shadow: inset 0 0 0 1px rgba(255,159,10,0.26); }
.alert-info { background: var(--info-soft); color: #4ea7ff; box-shadow: inset 0 0 0 1px rgba(10,132,255,0.26); }

/* ============ CHIP / BADGE ============ */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 8px;
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--text-2);
  box-shadow: inset 0 0 0 1px var(--border);
  white-space: nowrap;
}
.chip-success { background: var(--success-soft); color: #5ed87f; box-shadow: inset 0 0 0 1px rgba(48,209,88,0.22); }
.chip-danger  { background: var(--danger-soft);  color: #ff6b62; box-shadow: inset 0 0 0 1px rgba(255,69,58,0.22); }
.chip-warning { background: var(--warning-soft); color: #ffb340; box-shadow: inset 0 0 0 1px rgba(255,159,10,0.22); }
.chip-info    { background: var(--info-soft);    color: #4ea7ff; box-shadow: inset 0 0 0 1px rgba(10,132,255,0.22); }
.chip-accent  { background: var(--accent-soft);  color: #d8b4fe; box-shadow: inset 0 0 0 1px rgba(168,85,247,0.26); }
.chip-gold    { background: var(--brand-gold-soft); color: var(--brand-gold-2); box-shadow: inset 0 0 0 1px rgba(245,158,11,0.30); }
.chip-tag     { background: var(--surface-2); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--border-2); }

/* ============ STATUS (pulsing dot) ============ */
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.status-live::before { background: var(--success); box-shadow: 0 0 0 0 rgba(48,209,88,0.6); animation: gk-pulse 1.6s ease-out infinite; }
.status-warn::before { background: var(--warning); }
.status-off::before  { background: var(--text-4); }
@keyframes gk-pulse { 0% { box-shadow: 0 0 0 0 rgba(48,209,88,0.6); } 100% { box-shadow: 0 0 0 10px rgba(48,209,88,0); } }

/* ============ SEGMENTED ============ */
.seg {
  display: inline-flex;
  padding: 3px;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px var(--border);
}
.seg > button, .seg > a {
  height: 28px; padding: 0 14px;
  font-size: 12.5px; font-weight: 500;
  color: var(--text-3);
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.seg > button:hover, .seg > a:hover { color: var(--text); }
.seg > button.is-on, .seg > a.is-on { background: var(--surface-4); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset; }

/* ============ SWITCH (iOS) ============ */
.gk-switch { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-2); cursor: pointer; user-select: none; }
.gk-switch input { display: none; }
.gk-switch > span {
  width: 36px; height: 22px; border-radius: 999px;
  background: var(--surface-4); position: relative;
  transition: background var(--t-fast) var(--ease);
  display: inline-block;
}
.gk-switch > span::after {
  content: ""; position: absolute; left: 2px; top: 2px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  transition: transform var(--t-base) var(--ease);
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.gk-switch input:checked + span { background: var(--accent); }
.gk-switch input:checked + span::after { transform: translateX(14px); }

/* ============ TYPOGRAPHY ADJUST ============ */
h1, h2, h3, h4, h5, h6 { font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
h1 { font-size: 2rem;   line-height: 1.15; }
h2 { font-size: 1.5rem; line-height: 1.25; }
h3 { font-size: 1.25rem;line-height: 1.3; }

/* ============ LINK COLORS ============ */
a, a:visited { color: var(--text-2); }
a:hover { color: var(--accent-2); text-decoration: none; }

/* ============ FOCUS RING ============ */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }

/* ============ TAILWIND OVERRIDE (mevcut sayfalardaki yellow/zinc kullanımı uyumla) ============ */
/* Tailwind'in `bg-zinc-900` ile karşılaştığında daha tutarlı görünüm */
.bg-zinc-900, .bg-neutral-900 { background-color: var(--surface-1) !important; }
.bg-zinc-800, .bg-neutral-800 { background-color: var(--surface-2) !important; }
.bg-black { background-color: var(--bg) !important; }
.text-white { color: var(--text) !important; }
.text-zinc-400, .text-neutral-400 { color: var(--text-3) !important; }
.text-zinc-300, .text-neutral-300 { color: var(--text-2) !important; }
.border-zinc-800 { border-color: var(--border) !important; }

/* ============ MOBILE TUNING ============ */
@media (max-width: 720px) {
  :root { --topbar-h: 56px; }
}
