/* Hocam PWA — ortak bileşen stilleri (DESIGN-TOKENS ile BİREBİR). */

/* ---- Ekran çatısı ---- */
.screen { display: flex; flex-direction: column; min-height: 100dvh; background: var(--bg); }
.screen-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.screen-scroll::-webkit-scrollbar { display: none; }
.section { padding-left: var(--section-h); padding-right: var(--section-h); }

/* Üst bar (⚙ … +) — 38pt yuvarlak butonlar */
.topbar { display: flex; align-items: center; justify-content: space-between;
  padding: 8px 20px 0; padding-top: calc(8px + env(safe-area-inset-top, 0px)); }
.navcircle { width: 38px; height: 38px; border-radius: 50%; background: var(--surface2);
  display: inline-flex; align-items: center; justify-content: center; }

/* Geri barı ("< Hocam") */
.backbar { display: flex; align-items: center; padding: 6px 12px 0;
  padding-top: calc(6px + env(safe-area-inset-top, 0px)); }
.back-btn { display: inline-flex; align-items: center; gap: 3px; color: var(--green);
  font-size: 17px; padding: 8px 12px; }

/* Büyük başlıklar */
.big-title { font-size: 34px; font-weight: 800; letter-spacing: -0.6px; color: var(--text); padding: 2px 20px; }
.detail-name { font-size: 32px; font-weight: 800; letter-spacing: -0.5px; color: var(--text); padding: 0 20px; }
.detail-sub { font-size: 14px; color: var(--text2); padding: 2px 20px 0; }
.summary { font-size: 14px; color: var(--text2); padding: 2px 20px 6px; }

/* ---- Butonlar ---- */
.btn { width: 100%; height: 50px; border-radius: var(--r-button); font-size: 17px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-primary { background: var(--green); color: var(--green-ink); }
.btn-tint { background: var(--green-dim); color: var(--green); height: 44px; }
.btn-gray { background: var(--surface2); color: var(--text); }
.btn-destructive { background: var(--red-dim); color: var(--red); }
.btn-disabled { opacity: .5; }

/* ---- Kart + ayraç ---- */
.card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-card); overflow: hidden; }
.row-divider i { display: block; height: 1px; background: var(--sep); }

/* ---- Bölüm başlıkları ---- */
.section-header { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.sh-title { font-size: 13px; font-weight: 600; letter-spacing: .3px; color: var(--text2); }
.sh-trailing { font-size: 13px; font-weight: 600; color: var(--text2); }
.sheet-section-header { font-size: 13px; font-weight: 600; letter-spacing: .3px; color: var(--text3); padding: 0 18px; }

/* ---- Rozet ---- */
.badge { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: var(--r-pill); }
.badge-green { background: var(--green-dim); color: var(--green); }
.badge-orange { background: var(--orange-dim); color: var(--orange); }
.badge-red { background: var(--red-dim); color: var(--red); }
.badge-blue { background: var(--blue-dim); color: var(--blue); }
.badge-gray { background: var(--surface2); color: var(--text2); }

/* ---- CheckCircle (30pt) ---- */
.checkcircle { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--sep);
  display: inline-flex; align-items: center; justify-content: center; flex: none; }
.checkcircle.on { background: var(--green); border-color: var(--green); }

/* ---- Avatar ---- */
.avatar { border-radius: 50%; background: var(--green-dim); color: var(--green);
  font-size: 17px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }

/* ---- Segmented ---- */
.segmented { display: flex; background: var(--surface2); border-radius: var(--r-seg-container); padding: 3px; margin: 0 20px; }
.seg-item { flex: 1; padding: 9px 0; border-radius: var(--r-seg-item); font-size: 15px; font-weight: 600;
  color: var(--text2); text-align: center; transition: background .15s, color .15s; }
.seg-item.sel { background: var(--green); color: var(--green-ink); }

/* ---- Stepper ---- */
.stepper { display: inline-flex; align-items: center; gap: 14px; }
.step-btn { width: 30px; height: 30px; border-radius: 50%; background: var(--surface); border: 1px solid var(--hair);
  display: inline-flex; align-items: center; justify-content: center; color: var(--text); }
.step-btn.dim { color: var(--text3); }
.step-val { font-size: 17px; font-weight: 700; min-width: 20px; text-align: center; color: var(--text); }

/* ---- Boş durum ---- */
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 0 20px; }
.empty-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--green-dim); display: flex; align-items: center; justify-content: center; }
.empty-texts { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty-title { font-size: 20px; font-weight: 700; color: var(--text); }
.empty-msg { font-size: 15px; color: var(--text2); text-align: center; max-width: 250px; line-height: 1.35; }

/* ---- Form grubu / satır ---- */
.field-group { background: var(--surface2); border-radius: var(--r-fgrp); overflow: hidden; }
.field-row { display: flex; align-items: center; gap: 12px; padding: 13px 15px; min-height: 50px; }
.fr-label { font-size: 16px; color: var(--text2); flex: none; }
.fr-trailing { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 17px; color: var(--text); }
.fr-trailing input { text-align: right; font-size: 17px; color: var(--text); width: 100%; caret-color: var(--green); background: none; }
.field-caption { font-size: 13px; color: var(--text3); padding: 0 4px; }

/* ---- Sheet ---- */
.sheet-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0); display: flex; align-items: flex-end; z-index: 50; transition: background .22s ease; }
.sheet-overlay.open { background: rgba(0,0,0,.45); }
.sheet-panel { width: 100%; max-height: 94dvh; background: var(--surface);
  border-top-left-radius: var(--r-sheet); border-top-right-radius: var(--r-sheet);
  transform: translateY(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column; overflow: hidden; }
.sheet-overlay.open .sheet-panel { transform: translateY(0); }
@media (min-width: 460px) { .sheet-overlay { max-width: 393px; left: 50%; margin: 0 auto; } }

.sheet-grabber { width: 38px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.22); margin: 8px auto 0; flex: none; }
.sheet-header { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
.sh-cancel { font-size: 17px; color: var(--text2); }
.sh-title-c { position: absolute; left: 0; right: 0; text-align: center; font-size: 17px; font-weight: 700; color: var(--text); pointer-events: none; }
.sh-save { font-size: 17px; font-weight: 700; color: var(--green); }
.sh-save.disabled { color: var(--text3); }
.sheet-body { overflow-y: auto; padding: 8px 18px 24px; display: flex; flex-direction: column; gap: 20px; }
.sheet-body::-webkit-scrollbar { display: none; }

.pinrow { display: inline-flex; align-items: center; gap: 4px; }
