/* Temel yerleşim: sayfa zemini, başlık, sekmeler, genişlik sınırı */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* display:flex/grid verilen öğelerde de hidden çalışsın */
[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--metin);
  background-color: var(--bg);
  background-image: radial-gradient(120% 70% at 50% -10%, var(--bg-ust) 0%, transparent 62%);
  background-repeat: no-repeat;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
  margin: 0;
}

button,
textarea,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.muted {
  color: var(--metin-soluk);
}

:focus-visible {
  outline: 2px solid var(--vurgu);
  outline-offset: 3px;
}

/* Üst bar: aşağı kaydırınca sabit kalır, arkası hafif bulanık */
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: max(10px, env(safe-area-inset-top));
  padding-bottom: 10px;
  padding-inline: max(16px, calc((100% - 900px) / 2));
  background: var(--bg-saydam);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--vurgu), var(--kat-p));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

h1 {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 11.5px;
  color: var(--metin-soluk);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tema düğmesindeki iki ikondan sadece aktif tema görünür */
.header-aksiyonlar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ikon-gunes {
  display: none;
}

[data-theme="dark"] .ikon-gunes {
  display: block;
}

[data-theme="dark"] .ikon-ay {
  display: none;
}

.tabs {
  display: flex;
  gap: 4px;
  width: min(100% - 32px, 900px);
  margin: 2px auto 0;
  padding: 4px;
  background: var(--kart-2);
  border: 1px solid var(--cizgi);
  border-radius: 999px;
}

.tab {
  flex: 1;
  padding: 8px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--metin-soluk);
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.18s, color 0.18s;
}

.tab--aktif {
  background: var(--kart);
  color: var(--metin);
  box-shadow: var(--golge-1);
}

main {
  width: min(100% - 32px, 900px);
  margin: 14px auto 0;
}

@media (min-width: 700px) {
  body {
    font-size: 15.5px;
  }
}
