/*
 * HL Akademi — sunum demosu, ortak stiller.
 *
 * Bu klasör GERÇEK UYGULAMA DEĞİL: pazartesi sunumu için tıklanabilir statik
 * prototip. Veritabanı, oturum ve Instagram bağlantısı yok; içerik demo.
 *
 * Renkler Randevu şablonunun "Canlı ve Renkli" görünümünden birebir alındı
 * (src/styles/themes.css → [data-gorunum='canli']). Gerçek panel aynı
 * token'ları kullanacağı için prototipten koda geçiş görünümü bozmaz.
 */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --sunken: #f4f2ee;

  --text: #1c1b1a;
  --text-2: #4a4742;
  --muted: #5b5853;

  --border: #eceae4;
  --border-strong: #d9d5cc;

  --accent: #4338ca;
  --accent-hover: #3730a3;
  --accent-deep: #312e81;
  --accent-soft: #eef0ff;
  --accent-ring: #c7cbff;
  --accent-ring-soft: #e0e2ff;

  --success: #15803d;
  --success-soft: #dcfce7;
  --success-deep: #14532d;
  --warning: #a16207;
  --warning-soft: #fef9c3;
  --warning-deep: #713f12;
  --danger: #b91c1c;
  --danger-soft: #fee2e2;
  --danger-deep: #7f1d1d;
  --info: #1d4ed8;
  --info-soft: #dbeafe;
  --info-deep: #1e3a8a;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;

  --shadow-md: 0 4px 12px rgb(28 27 26 / 0.08), 0 1px 3px rgb(28 27 26 / 0.08);
  --shadow-lg: 0 12px 32px rgb(28 27 26 / 0.1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }

/* ---------- Demo şeridi: bunun prototip olduğu hiç gizlenmiyor ---------- */

.demo-serit {
  background: var(--accent-deep);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  padding: 7px 16px;
}

/* ---------- Üst çubuk ---------- */

.ust-cubuk {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.ust-ic {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
}

.marka {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.marka-ikon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex: 0 0 auto;
}

.rozet {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  background: var(--accent-deep);
  padding: 4px 10px;
  border-radius: 999px;
}

.ust-sag {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.kisi {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Rol değiştirici (yalnızca demoda) ---------- */

.rol-degistir {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background: var(--sunken);
  border-radius: 999px;
}

.rol-degistir > span {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  padding: 0 6px;
}

.rol-degistir a {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  text-decoration: none;
  padding: 6px 11px;
  border-radius: 999px;
}

.rol-degistir a:hover { background: #ffffff; color: var(--accent); }

.rol-degistir a[aria-current="page"] {
  background: var(--accent);
  color: #ffffff;
}

/* ---------- Düğmeler ---------- */

.dugme,
.dugme-ikincil {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.dugme { background: var(--accent); color: #ffffff; border: 0; }
.dugme:hover { background: var(--accent-hover); color: #ffffff; }

.dugme-ikincil {
  background: var(--surface);
  color: var(--text-2);
  border: 1px solid var(--border-strong);
}
.dugme-ikincil:hover { background: var(--sunken); color: var(--text); }

.dugme-kucuk {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
}

/* ---------- Kabuk: yan menü + içerik ---------- */

.kabuk {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.yan-menu {
  flex: 0 0 240px;
  padding: 20px 16px;
  border-right: 1px solid var(--border);
  background: var(--surface);
  align-self: stretch;
}

.yan-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.yan-menu a,
.yan-menu .kapali {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  border-radius: var(--r-md);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.yan-menu a[aria-current="page"] {
  background: var(--accent);
  color: #ffffff;
}

/* Sunum demosunda açılmayan bölümler: görünür ama tıklanmaz. */
.yan-menu .kapali {
  color: #8a867f;
  cursor: default;
}

.yan-menu .kapali::after {
  content: "yakında";
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  background: var(--sunken);
  padding: 2px 7px;
  border-radius: 999px;
}

.sayac {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 9px;
  border-radius: 999px;
}

.yan-menu a[aria-current="page"] .sayac {
  background: rgb(255 255 255 / 0.22);
  color: #ffffff;
}

.menu-not {
  margin: 22px 0 0;
  padding: 14px;
  background: var(--sunken);
  border-radius: var(--r-md);
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}

.menu-not.vurgu { background: var(--accent-soft); color: var(--accent-deep); }

.icerik {
  flex: 999 1 560px;
  min-width: 0;
  padding: 24px 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ---------- Kartlar ---------- */

.kart {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 22px;
}

.kart-baslik {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.kart h2 { font-size: 15px; font-weight: 700; }

.alt-metin {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Kimlik şeridi ---------- */

.kimlik {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.kimlik h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }

.kimlik-etiketler {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.kullanici-adi { font-size: 14px; font-weight: 600; color: var(--text-2); }

.sira-kutusu { margin-left: auto; text-align: right; }
.sira-kutusu .etiket { font-size: 11px; font-weight: 700; color: var(--muted); }
.sira-kutusu .deger {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.sira-kutusu .deger small { font-size: 15px; font-weight: 600; color: var(--muted); }

/* ---------- Avatar ---------- */

.avatar {
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex: 0 0 auto;
  overflow: hidden;
}

.avatar.xs { width: 32px; height: 32px; font-size: 11px; }
.avatar.sm { width: 34px; height: 34px; font-size: 12px; box-shadow: 0 0 0 2px var(--accent-ring); }
.avatar.md { width: 44px; height: 44px; font-size: 14px; box-shadow: 0 0 0 2px var(--accent-ring-soft); }
.avatar.lg { width: 68px; height: 68px; font-size: 22px; font-weight: 800; box-shadow: 0 0 0 3px var(--accent-ring); }

.avatar.notr { background: var(--sunken); color: var(--muted); box-shadow: 0 0 0 2px var(--border); }
.avatar.ters { background: var(--accent-deep); color: #ffffff; box-shadow: none; }
.avatar.beyaz { background: #ffffff; box-shadow: 0 0 0 2px var(--accent-ring); }

/* ---------- KPI kutuları ---------- */

.kpi-sira {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.kpi-sira.bes { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.kpi { border-radius: var(--r-lg); padding: 16px; }
.kpi .ad { font-size: 11px; font-weight: 600; }
.kpi .sayi {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 4px;
  color: var(--text);
}
.kpi .sayi small { font-size: 14px; font-weight: 600; color: var(--muted); }
.kpi .fark { font-size: 11px; font-weight: 600; margin-top: 2px; }

.kpi.mor { background: var(--accent-soft); }
.kpi.mor .ad { color: var(--accent-deep); }
.kpi.yesil { background: var(--success-soft); }
.kpi.yesil .ad { color: var(--success-deep); }
.kpi.sari { background: var(--warning-soft); }
.kpi.sari .ad { color: var(--warning-deep); }
.kpi.mavi { background: var(--info-soft); }
.kpi.mavi .ad { color: var(--info-deep); }
.kpi.kirmizi { background: var(--danger-soft); }
.kpi.kirmizi .ad { color: var(--danger-deep); }
.kpi.notr { background: var(--sunken); }
.kpi.notr .ad { color: var(--muted); }

.artis { color: var(--success); }
.azalis { color: var(--danger); }
.sabit { color: var(--muted); }

/* ---------- Durum çipleri ---------- */

.cip {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.cip.yesil { color: var(--success); background: var(--success-soft); }
.cip.sari { color: var(--warning-deep); background: var(--warning-soft); }
.cip.kirmizi { color: var(--danger-deep); background: var(--danger-soft); }
.cip.mor { color: var(--accent-deep); background: var(--accent-soft); }
.cip.notr { color: var(--text-2); background: var(--sunken); }

/* ---------- Uyarı bandı ---------- */

.uyari {
  background: var(--warning-soft);
  border: 1px solid #fde68a;
  border-radius: 18px;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.uyari p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--warning-deep); min-width: 0; }
.uyari svg { flex: 0 0 auto; }
.uyari .dugme-ikincil {
  margin-left: auto;
  min-height: 38px;
  border-color: var(--warning);
  color: var(--warning-deep);
  font-size: 13px;
}

/* ---------- Liderlik sıralaması ---------- */

.siralama { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

.siralama li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border-radius: var(--r-lg);
}

.siralama li.benim { background: var(--accent-soft); }
.siralama li.sorunlu { background: #fffbeb; }

.sira-no {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex: 0 0 auto;
}

.sira-no.ilk { background: var(--accent); color: #ffffff; }
.sira-no.yok { background: var(--sunken); color: var(--muted); }

.sira-kisi { flex: 0 0 160px; min-width: 120px; }
.sira-kisi .ad { display: block; font-size: 14px; font-weight: 700; }
.sira-kisi .alt { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }

.cubuk-yol {
  flex: 999 1 120px;
  min-width: 80px;
  height: 14px;
  background: var(--sunken);
  border-radius: 999px;
  overflow: hidden;
}

.siralama li.benim .cubuk-yol { background: #ffffff; }

.cubuk { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

.sira-deger {
  flex: 0 0 76px;
  text-align: right;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sira-deger.yok { color: var(--muted); }

/* ---------- Yığın çubuk (eğitim durumu) ---------- */

.yigin { display: flex; gap: 2px; height: 16px; margin: 16px 0; }
.yigin > div:first-child { border-radius: 999px 2px 2px 999px; }
.yigin > div:last-child { border-radius: 2px 999px 999px 2px; }

.lejant { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.lejant li { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.lejant .kare { width: 12px; height: 12px; border-radius: 4px; flex: 0 0 auto; }
.lejant .ad { font-weight: 600; }
.lejant strong { margin-left: auto; font-weight: 800; }

/* ---------- Tanım listeleri ---------- */

.satirlar { margin: 0; font-size: 13px; display: flex; flex-direction: column; gap: 10px; }
.satirlar > div { display: flex; justify-content: space-between; gap: 8px; }
.satirlar dt { color: var(--muted); font-weight: 600; }
.satirlar dd { margin: 0; font-weight: 800; }

/* ---------- Izgaralar ---------- */

.ikili { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.uclu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.besli { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.dortlu-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; }

/* ---------- Form alanları ---------- */

label { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }

input[type="text"],
input[type="email"],
input[type="password"],
select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
}

input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

select { padding-right: 8px; }

/* ---------- Kol kartları ---------- */

.kol-kart {
  display: block;
  background: var(--sunken);
  border-radius: var(--r-lg);
  padding: 16px;
  text-decoration: none;
  color: inherit;
}

.kol-kart:hover { background: #efece6; color: inherit; }
.kol-kart .ad { font-size: 13px; font-weight: 700; margin-top: 10px; }
.kol-kart .alt { font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 3px; }
.kol-kart .mini-yol {
  margin-top: 10px;
  height: 6px;
  background: #ffffff;
  border-radius: 999px;
  overflow: hidden;
}
.kol-kart .mini { display: block; height: 100%; border-radius: 999px; }

/* ---------- Kayıt listesi ---------- */

.kayitlar { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.kayitlar li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--border);
}
.kayitlar .zaman { margin-left: auto; color: var(--muted); font-weight: 600; white-space: nowrap; }

/* ---------- Tur çizgisi ---------- */

.tur-cizgi { display: flex; align-items: center; gap: 6px; }
.tur-cizgi > div { flex: 1; height: 8px; border-radius: 999px; }
.tur-saat {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 7px;
}

/* ---------- Eğitim halkası ---------- */

.halka-satir { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.halka { width: 104px; height: 104px; flex: 0 0 auto; }

/* ---------- Tablo ---------- */

.tablo-kutu { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  text-align: left;
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
  padding: 0 12px 8px 0;
}
tbody td { padding: 11px 12px 11px 0; border-top: 1px solid var(--border); }

/* ---------- Giriş ekranı ---------- */

.giris-sayfa {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 20px;
}

.giris-kart {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px 32px;
}

.giris-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.logo-yer {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px dashed var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.giris-ad { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; text-align: center; }
.giris-alt { font-size: 13px; color: var(--muted); margin-top: 4px; text-align: center; }

.giris-form { display: flex; flex-direction: column; gap: 16px; }

.sifre-ust { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.sifre-ust label { margin: 0; }

.unuttum {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dotted #8a867f;
}
.unuttum:hover { color: var(--text-2); }

.giris-dip {
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}

.demo-hesaplar {
  width: 100%;
  max-width: 420px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-ring);
  border-radius: var(--r-lg);
  padding: 18px 20px;
}

.demo-hesaplar h2 { font-size: 13px; font-weight: 700; color: var(--accent-deep); }
.demo-hesaplar p { margin: 6px 0 14px; font-size: 12px; line-height: 1.6; color: var(--accent-deep); }

.rol-dugmeleri { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.rol-dugmeleri a,
.rol-dugmeleri button {
  display: block;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--accent-ring);
  border-radius: var(--r-md);
  padding: 11px 12px;
  text-align: left;
  font-family: inherit;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
}

.rol-dugmeleri a:hover,
.rol-dugmeleri button:hover { border-color: var(--accent); color: var(--text); }
.rol-dugmeleri a:focus-visible,
.rol-dugmeleri button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.rol-dugmeleri .ad { display: block; font-size: 13px; font-weight: 700; }
.rol-dugmeleri .alt { display: block; font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 2px; }

.hata {
  margin: 0;
  padding: 10px 12px;
  background: var(--danger-soft);
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--danger-deep);
}

.bilgi {
  margin: 0 0 18px;
  padding: 10px 12px;
  background: var(--success-soft);
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--success-deep);
}

/* ---------- Alt kredi ---------- */

.dip-serit {
  padding: 18px 20px 28px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Telefon ---------- */

@media (max-width: 900px) {
  .kpi-sira, .kpi-sira.bes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ikili, .besli, .dortlu-form { grid-template-columns: minmax(0, 1fr); }
  .yan-menu {
    flex: 1 1 100%;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .yan-menu ul { flex-direction: row; flex-wrap: wrap; }
  .yan-menu a, .yan-menu .kapali { padding: 9px 12px; }
  .menu-not { margin-top: 14px; }
}

@media (max-width: 560px) {
  .uclu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kimlik h1 { font-size: 21px; }
  .sira-kutusu { margin-left: 0; text-align: left; width: 100%; }
  .siralama li { gap: 10px; }
  .sira-kisi { flex: 1 1 100%; }
  .cubuk-yol { flex: 1 1 auto; }
  .sira-deger { flex: 0 0 auto; }
  .uyari .dugme-ikincil { margin-left: 0; width: 100%; }
  .rol-dugmeleri { grid-template-columns: minmax(0, 1fr); }
  .rol-degistir { width: 100%; justify-content: center; flex-wrap: wrap; }
}
