/* ============================================================
   İngilizce Bitmiştir — Konuşma Pratiği · shared styles (light)
   ingilizcebitmistir.com stiliyle uyumlu: Bricolage Grotesque,
   açık zemin, canlı aksanlar.
   ============================================================ */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f4f6f8;
  --bg-tertiary: #f0f2f4;
  --text-primary: #101214;
  --text-secondary: #5b6573;
  --text-tertiary: #aab2bd;
  --primary: #00bb7f;        /* marka yeşili */
  --accent-green: #00bb7f;
  --accent-blue: #00a5ef;
  --accent-purple: #8d54ff;
  --accent-orange: #f99c00;
  --accent-pink: #f6339a;
  --accent-red: #ff2357;
  --border: #e5e8ec;

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.hidden { display: none !important; }
.mono { font-family: 'JetBrains Mono', monospace; }

/* Layout helpers ---------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-secondary); }
.center { text-align: center; }

/* Navbar ------------------------------------------------------------------ */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-email { color: var(--text-secondary); font-size: 14px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Logo -------------------------------------------------------------------- */
.logo-text { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -0.5px; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Bricolage Grotesque', sans-serif; font-size: 15px; font-weight: 600;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: all 0.18s ease; white-space: nowrap; user-select: none;
}
.btn:disabled { cursor: not-allowed; opacity: 0.5; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(0,187,127,.6); }

.btn-secondary { background: #fff; border-color: var(--border); color: var(--text-primary); }
.btn-secondary:hover:not(:disabled) { border-color: var(--text-primary); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--text-secondary); padding: 8px 12px; }
.btn-ghost:hover:not(:disabled) { color: var(--text-primary); }

.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 14px; }

.btn.loading { position: relative; color: transparent; }
.btn.loading::after {
  content: ''; position: absolute; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.5); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Cards ------------------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  box-shadow: 0 1px 2px rgba(16,18,20,.04);
}

/* Forms ------------------------------------------------------------------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; background: var(--bg-secondary); border: 1px solid var(--border);
  color: var(--text-primary); border-radius: var(--radius-sm); padding: 12px 16px;
  font-family: 'Bricolage Grotesque', sans-serif; font-size: 15px; transition: border-color 0.2s ease;
}
input::placeholder, textarea::placeholder { color: var(--text-tertiary); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); }
select { cursor: pointer; }
.form-error { color: var(--accent-red); font-size: 13px; margin-top: 4px; }
.form-success { color: var(--accent-green); font-size: 13px; margin-top: 4px; }

/* Tabs -------------------------------------------------------------------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  background: #fff; border: 1px solid var(--border); color: var(--text-secondary);
  padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500;
  font-family: 'Bricolage Grotesque', sans-serif; cursor: pointer; transition: all 0.2s ease;
}
.tab:hover { color: var(--text-primary); }
.tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Seviye rozeti ----------------------------------------------------------- */
.badge { display: inline-block; font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 12px; padding: 3px 10px; border-radius: 6px; color: #fff; }

/* Progress bar ------------------------------------------------------------ */
.progress { width: 100%; height: 6px; background: var(--bg-tertiary); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-green), var(--accent-blue)); border-radius: 999px; transition: width 0.4s ease; }

/* Grid -------------------------------------------------------------------- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .grid { grid-template-columns: 1fr; } }

/* Table ------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); }
th { color: var(--text-secondary); font-weight: 600; font-size: 13px; }
tr:last-child td { border-bottom: none; }
td .muted { font-size: 13px; }

/* Empty / loading states -------------------------------------------------- */
.state { text-align: center; color: var(--text-secondary); padding: 64px 24px; }

/* Toggle switch ----------------------------------------------------------- */
.switch { position: relative; display: inline-block; width: 40px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; cursor: pointer; background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: 999px; transition: 0.2s; }
.switch .slider::before { content: ''; position: absolute; height: 16px; width: 16px; left: 2px; top: 2px; background: #fff; border: 1px solid var(--border); border-radius: 50%; transition: 0.2s; }
.switch input:checked + .slider { background: var(--accent-green); border-color: var(--accent-green); }
.switch input:checked + .slider::before { transform: translateX(18px); background: #fff; border-color: var(--accent-green); }

/* Misc -------------------------------------------------------------------- */
.section { padding: 84px 0; }
.section-title { font-size: 34px; margin-bottom: 12px; }
.section-sub { color: var(--text-secondary); margin-bottom: 40px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 12px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .section-title { font-size: 27px; }
  .nav-email { display: none; }
}
