/* ikasappstore — tasarım sistemi
   Renkler token olarak tanımlanır; koyu tema hem OS ayarını hem de kullanıcı seçimini (data-theme) izler. */

:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #eef2f6;
  --surface-3: #e3e8ef;
  --text: #121926;
  --text-2: #364152;
  --muted: #5d6879;
  --border: #e3e8ef;
  --border-strong: #cdd5df;
  --brand: #3034ff;
  --brand-hover: #2326d9;
  --brand-text: #ffffff;
  --brand-soft: #eceeff;
  --link: #3034ff;
  --grad-a: #3034ff;
  --grad-b: #6e87ff;
  --logo-bg: #3034ff;
  --logo-fg: #ffffff;
  --star: #f59e0b;
  --star-empty: #d8dee7;
  --success: #067647;
  --success-soft: #e7f6ee;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --warning-soft: #fff6e0;
  --shadow-sm: 0 1px 2px rgb(16 24 40 / 6%);
  --shadow-md: 0 6px 24px -8px rgb(16 24 40 / 14%), 0 2px 6px -2px rgb(16 24 40 / 6%);
  /* Grafik (dataviz referans paleti, doğrulanmış) */
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-4: #eda100;
  --grid: #e3e8ef;
  --area-opacity: 0.1;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  /* Lucide ikonlarından CSS maskeleri (yıldız şeridi, ok bağlantıları) */
  --icon-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' stroke='black' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z' /%3E%3C/svg%3E");
  --icon-arrow-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14' /%3E%3Cpath d='m12 5 7 7-7 7' /%3E%3C/svg%3E");
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0f1a;
    --surface: #121926;
    --surface-2: #1a2232;
    --surface-3: #202939;
    --text: #f8fafc;
    --text-2: #cdd5df;
    --muted: #9aa4b2;
    --border: #202939;
    --border-strong: #364152;
    --brand: #8f93ff;
    --brand-hover: #b0b3ff;
    --brand-text: #0b0f1a;
    --brand-soft: #1b1f4a;
    --link: #8f93ff;
    --grad-a: #7c80ff;
    --grad-b: #6e87ff;
    --star-empty: #364152;
    --success: #3ccb7f;
    --success-soft: #0f2a1d;
    --danger: #f97066;
    --danger-soft: #3a1512;
    --warning-soft: #33280f;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 30%);
    --shadow-md: 0 8px 28px -10px rgb(0 0 0 / 60%);
    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --series-4: #c98500;
    --grid: #202939;
    --area-opacity: 0.14;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0f1a;
  --surface: #121926;
  --surface-2: #1a2232;
  --surface-3: #202939;
  --text: #f8fafc;
  --text-2: #cdd5df;
  --muted: #9aa4b2;
  --border: #202939;
  --border-strong: #364152;
  --brand: #8f93ff;
  --brand-hover: #b0b3ff;
  --brand-text: #0b0f1a;
  --brand-soft: #1b1f4a;
  --link: #8f93ff;
  --grad-a: #7c80ff;
  --grad-b: #6e87ff;
  --star-empty: #364152;
  --success: #3ccb7f;
  --success-soft: #0f2a1d;
  --danger: #f97066;
  --danger-soft: #3a1512;
  --warning-soft: #33280f;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 30%);
  --shadow-md: 0 8px 28px -10px rgb(0 0 0 / 60%);
  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --series-4: #c98500;
  --grid: #202939;
  --area-opacity: 0.14;
}

/* ---------------------------------------------------------------- temel */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
/* Lucide satır içi ikonları */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  vertical-align: -0.125em;
}
.icon--filled {
  fill: currentColor;
}
a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem);
  letter-spacing: -0.025em;
}
h2 {
  font-size: 1.25rem;
}
h3 {
  font-size: 1.05rem;
}
p {
  margin: 0 0 1em;
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}
::selection {
  background: color-mix(in srgb, var(--brand) 25%, transparent);
}
code,
pre {
  font-family: var(--mono);
  font-size: 0.9em;
}
pre {
  background: var(--surface-2);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.85rem;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--brand);
  color: var(--brand-text);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 720px) {
  .container {
    padding: 0 24px;
  }
}
.page-narrow {
  max-width: 820px;
}
.section {
  padding-block: 28px;
}
@media (min-width: 720px) {
  .section {
    padding-block: 40px;
  }
}
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.6em;
}
.page-head {
  margin-bottom: 20px;
}
.page-head p {
  max-width: 70ch;
}
.page-head--center {
  text-align: center;
  margin-inline: auto;
  max-width: 760px;
}
.page-head--center p {
  margin-inline: auto;
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.logo:hover {
  text-decoration: none;
}
.logo__mark {
  width: 30px;
  height: 30px;
}
.logo__bg {
  fill: var(--logo-bg);
}
.logo__tile {
  fill: var(--logo-fg);
}
.logo__tile--soft {
  fill-opacity: 0.6;
}
.logo__text {
  font-weight: 600;
  letter-spacing: -0.025em;
}
.logo__text b {
  font-weight: 800;
}
.site-nav {
  display: none;
  gap: 4px;
}
.site-nav a {
  color: var(--text-2);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  font-weight: 500;
  white-space: nowrap;
}
.site-nav a:hover {
  background: var(--surface-2);
  text-decoration: none;
  color: var(--text);
}
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-2);
}
.header-search {
  position: relative;
  flex: 1;
  max-width: 340px;
  margin-left: auto;
}
.header-search input {
  width: 100%;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0 40px 0 38px;
  font: inherit;
  font-size: 0.93rem;
}
.header-search input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent);
}
.header-search__icon {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.header-search__kbd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font: 600 0.72rem var(--mono);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  flex-shrink: 0;
  list-style: none;
}
.icon-btn::-webkit-details-marker {
  display: none;
}
.icon-btn svg {
  width: 18px;
  height: 18px;
}
.icon-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}
.theme-toggle .icon-sun {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}
:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: block;
  }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: none;
  }
}
.mobile-nav {
  position: relative;
}
.mobile-nav__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 8px;
  display: grid;
  min-width: 220px;
}
.mobile-nav__panel a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
}
.mobile-nav__panel a:hover {
  background: var(--surface-2);
  text-decoration: none;
}
@media (max-width: 560px) {
  .header-search {
    display: none;
  }
  .site-header__inner {
    justify-content: space-between;
  }
  .theme-toggle {
    margin-left: auto;
  }
}
@media (min-width: 1040px) {
  .site-nav {
    display: flex;
  }
  .mobile-nav {
    display: none;
  }
}

/* ---------------------------------------------------------------- arama önerileri */
.suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 6px;
  z-index: 60;
  max-height: 420px;
  overflow-y: auto;
}
.suggest a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text);
}
.suggest a:hover,
.suggest a[aria-selected="true"] {
  background: var(--surface-2);
  text-decoration: none;
}
.suggest img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.suggest small {
  display: block;
  color: var(--muted);
}
.suggest__all {
  font-weight: 600;
  justify-content: center;
}

/* ---------------------------------------------------------------- butonlar, çipler */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
.btn:hover {
  background: var(--surface-2);
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-text);
}
.btn--primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}
.btn--light {
  background: #fff;
  border-color: #fff;
  color: #121926;
}
.btn--light:hover {
  background: #eceeff;
}
.btn--ghost {
  border-color: transparent;
  background: transparent;
  color: var(--text-2);
}
.btn--sm {
  height: 32px;
  padding: 0 12px;
  font-size: 0.85rem;
}
.btn--lg {
  height: 48px;
  padding: 0 22px;
  font-size: 1rem;
}
.btn--block {
  width: 100%;
  margin-top: 12px;
}
.btn__icon {
  width: 16px;
  height: 16px;
}
.btn.is-voted {
  color: var(--brand);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  white-space: nowrap;
}
.chip--free {
  background: var(--success-soft);
  color: var(--success);
}
.chip--freemium {
  background: var(--brand-soft);
  color: var(--link);
}
.chip__extra {
  font-weight: 500;
  opacity: 0.85;
}
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.badge--accent {
  background: var(--brand-soft);
  color: var(--link);
  border-color: transparent;
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
}
.tag-chip:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  text-decoration: none;
}
.tag-chip.is-active {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.tag-chip__count {
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-cloud--compact {
  margin: 4px 0 20px;
}
.tag-cloud--compact .tag-chip {
  padding: 4px 10px;
  font-size: 0.82rem;
}
.link-arrow {
  font-weight: 600;
  font-size: 0.93rem;
}
.link-arrow::after {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 0.25em;
  vertical-align: -0.15em;
  background: currentColor;
  -webkit-mask: var(--icon-arrow-right) center / contain no-repeat;
  mask: var(--icon-arrow-right) center / contain no-repeat;
  transition: transform 0.15s;
}
.link-arrow:hover::after {
  transform: translateX(2px);
}
.link-quiet {
  color: var(--muted);
  font-size: 0.88rem;
}
.dot-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-strong);
}

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(60rem 26rem at 85% -10%, color-mix(in srgb, var(--grad-b) 16%, transparent), transparent 60%),
    radial-gradient(50rem 24rem at 10% -20%, color-mix(in srgb, var(--grad-a) 18%, transparent), transparent 60%);
}
.hero__inner {
  padding-block: 48px 40px;
  text-align: center;
}
@media (min-width: 720px) {
  .hero__inner {
    padding-block: 80px 56px;
  }
}
.hero h1 {
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.4rem);
  max-width: 16ch;
  margin-inline: auto;
}
.grad {
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 60ch;
  margin: 0 auto 28px;
}
.big-search {
  display: flex;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto 18px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.big-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  padding: 0 16px;
}
.big-search input:focus {
  outline: none;
}
.big-search .btn {
  height: 44px;
  padding: 0 22px;
}
.quick-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  max-width: 760px;
  margin: 0 auto;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 640px) {
  .hero__stats {
    grid-template-columns: repeat(4, 1fr);
  }
}
.hero__stats div {
  background: var(--surface);
  padding: 14px 12px;
}
.hero__stats dt {
  font-size: 0.8rem;
  color: var(--muted);
}
.hero__stats dd {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ---------------------------------------------------------------- bölüm başlıkları */
.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 16px;
}
.section-header > div {
  min-width: 0;
  flex: 1 1 260px;
}
.section-header h2 {
  margin: 0;
  font-size: 1.3rem;
}
.section-header p {
  margin: 4px 0 0;
  font-size: 0.92rem;
}
.section + .section {
  padding-top: 8px;
}

/* ---------------------------------------------------------------- uygulama kartları */
.app-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
}
.app-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  min-width: 0;
}
.app-card:hover {
  text-decoration: none;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.app-card__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.app-card__title {
  flex: 1;
  min-width: 0;
}
.app-card__badge {
  align-self: flex-start;
  margin-bottom: -2px;
}
.app-card__title h3 {
  font-size: 1rem;
  margin: 2px 0 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.app-card__title p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-card__sub {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
  max-height: calc(2 * 1.45em);
}
.app-card__meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-2);
}
.app-card__meta .chip {
  margin-left: auto;
}
.app-icon {
  width: var(--size);
  height: var(--size);
  flex-shrink: 0;
  border-radius: 22%;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 6%);
  display: inline-grid;
  place-items: center;
}
.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.app-icon__fallback {
  font-weight: 700;
  font-size: calc(var(--size) * 0.42);
  color: var(--link);
}
.rating-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.rating-inline__star {
  color: var(--star);
}

/* 5 yıldızlık şerit: Lucide "star" maskesi yatayda tekrarlanır, dolgu oranı --rating ile çizilir */
.stars {
  display: inline-block;
  font-size: 0.95rem;
  width: 5.5em;
  height: 1em;
  vertical-align: -0.12em;
  background: linear-gradient(90deg, var(--star) calc(var(--rating) / 5 * 100%), var(--star-empty) calc(var(--rating) / 5 * 100%));
  -webkit-mask: var(--icon-star) 0 0 / 1.1em 1em repeat-x;
  mask: var(--icon-star) 0 0 / 1.1em 1em repeat-x;
}
.stars--md {
  font-size: 1.15rem;
}
.stars--lg {
  font-size: 1.5rem;
}

/* ---------------------------------------------------------------- sıralama listesi */
.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rank-list a {
  display: grid;
  grid-template-columns: 24px auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  color: var(--text);
}
.rank-list a:hover {
  background: var(--surface-2);
  text-decoration: none;
}
.rank-list__n {
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.rank-list__name {
  min-width: 0;
  display: grid;
}
.rank-list__name strong,
.rank-list__name span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-list__name span {
  font-size: 0.82rem;
}
.rank-list__metric {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
}
.delta-up {
  color: var(--success);
}

/* ---------------------------------------------------------------- paneller, kartlar */
.split {
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}
.panel,
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.card h2 {
  font-size: 1.1rem;
}
.card + .card {
  margin-top: 16px;
}
.card__title-sm {
  font-size: 0.95rem !important;
  color: var(--text-2);
}
.panel .section-header h2 {
  font-size: 1.1rem;
}
.panel__note {
  font-size: 0.8rem;
  margin: 12px 0 0;
}

.category-tiles {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  margin-bottom: 28px;
}
.category-tile {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  color: var(--text);
}
.category-tile strong {
  font-size: 1.05rem;
}
.category-tile span {
  font-size: 0.85rem;
}
.category-tile:hover {
  border-color: var(--brand);
  text-decoration: none;
}
.collection-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.collection-card {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}
.collection-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.collection-card__icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.35rem;
}
.collection-card span.muted {
  font-size: 0.88rem;
}
.collection-card__count {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--link);
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #1a1c8f, #3034ff 50%, #4f6bff);
  color: #fff;
}
.cta-band h2 {
  color: #fff;
  margin-bottom: 6px;
}
.cta-band p {
  margin: 0;
  color: rgb(255 255 255 / 85%);
  max-width: 60ch;
}

/* ---------------------------------------------------------------- stat kutuları */
.stat-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  margin-bottom: 20px;
}
.stat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  min-width: 0;
}
.stat-tile__label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.stat-tile__value {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.stat-tile__value a {
  color: inherit;
}
.stat-tile__sub {
  font-size: 0.8rem;
  color: var(--text-2);
  margin-top: 4px;
}
.stat-row--hero .stat-tile:first-child {
  grid-column: 1 / -1;
}
@media (min-width: 900px) {
  .stat-row--hero {
    grid-template-columns: 2fr repeat(4, 1fr);
  }
  .stat-row--hero .stat-tile:first-child {
    grid-column: auto;
  }
}
.hero-figure {
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem);
  letter-spacing: -0.03em;
}

/* ---------------------------------------------------------------- filtreler */
.filters {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.filters .field--search {
  grid-column: 1 / -1;
}
@media (min-width: 900px) {
  .filters {
    grid-template-columns: 2fr repeat(6, minmax(0, 1fr)) auto;
  }
  .filters .field--search {
    grid-column: auto;
  }
}
.field {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}
.field > span,
.field legend {
  font-weight: 600;
  color: var(--text-2);
  padding: 0;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 0.93rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}
.field input,
.field select {
  height: 40px;
}
.field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent);
}
.field.has-error input,
.field.has-error textarea {
  border-color: var(--danger);
}
.field__error {
  color: var(--danger);
  font-size: 0.82rem;
  margin: 0;
}
.filters__submit {
  height: 40px;
}
.js .filters__submit {
  display: none;
}
.results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.results-bar p {
  margin: 0;
}
.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.filter-pill {
  display: inline-flex;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--link);
  font-size: 0.85rem;
  font-weight: 500;
}
.promoted {
  margin-bottom: 18px;
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
}
.promoted__label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 10px;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
}
.pagination a,
.pagination span {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  font-size: 0.92rem;
}
.pagination a:hover {
  background: var(--surface-2);
  text-decoration: none;
}
.pagination .is-current {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-text);
}
.pagination .is-disabled {
  color: var(--muted);
  opacity: 0.6;
}
.pagination__gap {
  border: 0 !important;
  background: transparent !important;
}
.empty-state {
  text-align: center;
  padding: 48px 16px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}
.empty-page {
  padding-block: 64px;
  text-align: center;
}
.empty-page .big-search {
  margin-block: 24px;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0 0 14px;
  font-size: 0.85rem;
  color: var(--muted);
}
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--border-strong);
}
.breadcrumbs a {
  color: var(--muted);
}
.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-2);
  margin-bottom: 14px;
}
.seg a {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 500;
}
.seg a:hover {
  text-decoration: none;
  color: var(--text);
}
.seg a[aria-current="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.notice {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 0.92rem;
  background: var(--surface-2);
}
.notice--success {
  background: var(--success-soft);
  color: var(--success);
}
.notice--error {
  background: var(--danger-soft);
  color: var(--danger);
}

/* ---------------------------------------------------------------- uygulama sayfası */
.app-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 20px;
  align-items: start;
  margin-bottom: 18px;
}
.app-hero h1 {
  margin-bottom: 4px;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
}
.app-hero__main {
  min-width: 0;
}
.app-hero__dev {
  margin: 0 0 8px;
  color: var(--muted);
}
.app-hero__sub {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 65ch;
}
.app-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.rating-summary:hover {
  text-decoration: none;
}
.app-hero__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
@media (min-width: 900px) {
  .app-hero {
    grid-template-columns: auto 1fr auto;
  }
  .app-hero__actions {
    grid-column: auto;
    flex-direction: column;
    align-items: stretch;
  }
}
@media (max-width: 560px) {
  .app-hero .app-icon {
    --size: 72px !important;
  }
  .app-hero__actions .btn {
    flex: 1;
  }
}
.stat-row--5 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
}
.app-layout {
  display: grid;
  gap: 16px;
}
@media (min-width: 1000px) {
  .app-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }
  .app-layout__side {
    position: sticky;
    top: calc(var(--header-h) + 16px);
  }
}
.app-layout__side .card + .card {
  margin-top: 16px;
}
.gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  overscroll-behavior-x: contain;
}
.gallery a {
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.gallery img {
  height: 220px;
  width: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
}
@media (max-width: 560px) {
  .gallery img {
    height: 170px;
  }
}
.gallery__video {
  display: grid;
  place-items: center;
  width: 200px;
  height: 220px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.prose {
  color: var(--text-2);
  overflow-wrap: anywhere;
}
.prose > :first-child {
  margin-top: 0;
}
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  color: var(--text);
  margin: 1.4em 0 0.5em;
  font-size: 1.05rem;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose li {
  margin-bottom: 0.35em;
}
.prose img {
  height: auto;
  border-radius: var(--radius-sm);
  margin: 12px 0;
}
.prose table {
  border-collapse: collapse;
  width: 100%;
  display: block;
  overflow-x: auto;
}
.prose td,
.prose th {
  border: 1px solid var(--border);
  padding: 6px 10px;
}
.prose blockquote {
  margin: 1em 0;
  padding-left: 14px;
  border-left: 3px solid var(--border-strong);
}
.plans {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  margin-bottom: 12px;
}
.plan {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--surface-2);
}
.plan__head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.plan__price {
  display: grid;
  gap: 2px;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.plan__price small {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}
.plan__yearly {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-2);
}
.plan__trial {
  font-size: 0.85rem;
  color: var(--success);
  font-weight: 600;
  margin-bottom: 6px;
}
.plan p.muted {
  font-size: 0.85rem;
  margin: 0;
}
.info-list {
  margin: 0;
  display: grid;
  gap: 10px;
}
.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}
.info-list div:last-child {
  border-bottom: 0;
}
.info-list dt {
  color: var(--muted);
}
.info-list dd {
  margin: 0;
  text-align: right;
  font-weight: 500;
  min-width: 0;
  overflow-wrap: anywhere;
}
.mini-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: grid;
  gap: 4px;
}
.mini-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: var(--radius-sm);
  color: var(--text);
}
.mini-list a:hover {
  background: var(--surface-2);
  text-decoration: none;
}
.mini-list span {
  display: grid;
  min-width: 0;
  font-size: 0.88rem;
}
.mini-list strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------------------------------------------------------------- yorumlar */
.reviews-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.reviews-head h2 {
  margin: 0;
}
.reviews-head .seg {
  margin: 0;
}
.review-summary {
  display: grid;
  gap: 20px;
  align-items: center;
  padding: 16px;
  background: var(--surface-2);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
@media (min-width: 640px) {
  .review-summary {
    grid-template-columns: 160px 1fr;
  }
}
.review-summary__score {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}
.review-summary__score strong {
  font-size: 2.8rem;
  line-height: 1;
  letter-spacing: -0.03em;
}
.review-list {
  display: grid;
}
.review {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.review__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.review__body {
  white-space: pre-line;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.review__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.85rem;
}
.review__reply {
  margin-top: 10px;
  padding: 12px 14px;
  border-left: 3px solid var(--brand);
  background: var(--surface-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.92rem;
}
.review__reply p {
  margin: 4px 0 0;
  white-space: pre-line;
}
.review-form {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 14px;
}
.review-form h3 {
  margin: 0;
}
.review-form > p {
  margin: 0;
}
.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.review-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.star-input__stars {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
}
.star-input input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.star-input label {
  display: inline-flex;
  font-size: 2rem;
  line-height: 1;
  color: var(--star-empty);
  cursor: pointer;
  padding: 0 2px;
  transition: color 0.1s, transform 0.1s;
}
.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label {
  color: var(--star);
}
.star-input input:focus-visible + label {
  outline: 2px solid var(--brand);
  border-radius: 4px;
}
.star-input.has-error label {
  color: color-mix(in srgb, var(--danger) 35%, var(--star-empty));
}

/* ---------------------------------------------------------------- grafikler */
.bar-list {
  display: grid;
  gap: 10px;
}
.bar-list__row {
  display: grid;
  gap: 4px;
  border-radius: 6px;
  outline-offset: 4px;
}
.bar-list__label {
  font-size: 0.88rem;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar-list__label a {
  color: var(--text);
}
.bar-list__track {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 14px;
}
.bar-list__bar {
  display: block;
  height: 12px;
  width: max(2px, calc((100% - 4.5rem) * var(--p)));
  background: var(--series-1);
  border-radius: 0 4px 4px 0;
  transition: filter 0.15s;
}
.bar-list__value {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bar-list__row:hover .bar-list__bar,
.bar-list__row:focus-visible .bar-list__bar {
  filter: brightness(1.12);
}
.series-1 {
  background: var(--series-1);
}
.series-2 {
  background: var(--series-2);
}
.series-3 {
  background: var(--series-3);
}
.series-4 {
  background: var(--series-4);
}
.stacked {
  margin: 0 0 12px;
}
.stacked__bar {
  display: flex;
  gap: 2px;
  height: 20px;
  margin-bottom: 14px;
}
.stacked__seg {
  min-width: 4px;
  transition: filter 0.15s;
}
.stacked__seg:first-child {
  border-radius: 4px 0 0 4px;
}
.stacked__seg:last-child {
  border-radius: 0 4px 4px 0;
}
.stacked__seg:hover,
.stacked__seg:focus-visible {
  filter: brightness(1.12);
}
.legend {
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
}
.legend__item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.legend__item strong {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.legend__item .muted {
  width: 3.2em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.legend__swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}
.legend__item a {
  color: var(--text);
}
.columns {
  display: grid;
  gap: 6px;
  margin-bottom: 6px;
}
.columns__plot {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 170px;
  padding-top: 20px;
  border-bottom: 1px solid var(--border-strong);
}
.columns__col {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  min-width: 0;
  border-radius: 4px 4px 0 0;
}
.columns__col:hover,
.columns__col:focus-visible {
  background: var(--surface-2);
}
.columns__bar {
  display: block;
  width: min(24px, 70%);
  height: calc(var(--p) * 100%);
  min-height: 1px;
  background: var(--series-1);
  border-radius: 4px 4px 0 0;
}
.columns__cap {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 3px;
  font-variant-numeric: tabular-nums;
}
.columns__axis {
  display: flex;
  gap: 2px;
}
.columns__axis span {
  flex: 1;
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  overflow: visible;
  min-width: 0;
}
.line-chart {
  position: relative;
  margin: 8px 0 4px;
  display: grid;
  grid-template-columns: 52px 1fr 56px;
  grid-template-rows: var(--h, 220px) auto;
}
.line-chart__y {
  position: relative;
  grid-column: 1;
  grid-row: 1;
}
.line-chart__y span {
  position: absolute;
  right: 8px;
  transform: translateY(-50%);
  font-size: 0.72rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.line-chart__plot {
  position: relative;
  grid-column: 2;
  grid-row: 1;
}
.line-chart__plot svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.line-chart .grid {
  stroke: var(--grid);
  stroke-width: 1;
}
.line-chart .area {
  fill: var(--series-1);
  opacity: var(--area-opacity);
}
.line-chart .line {
  fill: none;
  stroke: var(--series-1);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.line-chart .hit rect {
  fill: transparent;
}
.line-chart .hit .crosshair {
  stroke: var(--muted);
  stroke-width: 1;
  opacity: 0;
}
.line-chart .hit:hover .crosshair,
.line-chart .hit:focus .crosshair {
  opacity: 1;
}
.line-chart .hit:focus {
  outline: none;
}
.line-chart__dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--series-1);
  border: 2px solid var(--surface);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.line-chart__mark {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--series-1);
  box-shadow: 0 0 0 2px var(--surface);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.chart-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 6px 0 0;
}
.chart-note__mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--series-1);
  flex-shrink: 0;
}
.line-chart__end {
  position: absolute;
  left: calc(100% + 10px);
  transform: translateY(-50%);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.line-chart__x {
  grid-column: 2;
  grid-row: 2;
  position: relative;
  height: 22px;
}
.line-chart__x span {
  position: absolute;
  top: 6px;
  transform: translateX(-50%);
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}
.line-chart__x span:first-child {
  transform: none;
}
.line-chart__x span:last-child {
  transform: translateX(-100%);
}
.tooltip {
  position: fixed;
  z-index: 100;
  pointer-events: none;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.82rem;
  max-width: 260px;
}
.tooltip strong {
  display: block;
  font-size: 0.95rem;
}
.tooltip span {
  color: var(--muted);
}
.table-view {
  margin-top: 10px;
  font-size: 0.85rem;
}
.table-view summary {
  cursor: pointer;
  color: var(--muted);
  width: fit-content;
}
.table-view .table-scroll {
  max-height: 320px;
  overflow: auto;
  margin-top: 8px;
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table thead th {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  position: sticky;
  top: 0;
  background: var(--surface);
}
.data-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.data-table--rank {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.data-table tbody tr:hover {
  background: var(--surface-2);
}

/* ---------------------------------------------------------------- pano ızgarası */
.dash-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .dash-grid {
    grid-template-columns: 1fr 1fr;
  }
  .card--wide {
    grid-column: 1 / -1;
  }
}
.dash-grid .card + .card {
  margin-top: 0;
}
.dash-grid .card h2 {
  margin-bottom: 14px;
}

/* ---------------------------------------------------------------- karşılaştırma */
.compare-form {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  align-items: end;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.compare-scroll {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.compare-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
  font-size: 0.9rem;
}
.compare-table th,
.compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.compare-table tbody th {
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  width: 160px;
}
.compare-table td.is-best {
  background: color-mix(in srgb, var(--success) 8%, transparent);
}
.best-mark {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--success);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.compare-app {
  display: grid;
  gap: 8px;
  color: var(--text);
}
.plain-list {
  margin: 0;
  padding-left: 1.1em;
}
.suggestion-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
.suggestion {
  display: grid;
  gap: 4px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
}
.suggestion:hover {
  border-color: var(--brand);
  text-decoration: none;
}
.suggestion span {
  font-size: 0.85rem;
}

/* ---------------------------------------------------------------- geliştirici sayfası */
.dev-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, color-mix(in srgb, var(--dev-color, var(--grad-a)) 16%, var(--surface)), var(--surface));
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.dev-head h1 {
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}
.dev-head p {
  margin: 0;
}
.dev-head__logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  background: var(--surface);
  flex-shrink: 0;
}
.dev-desc {
  max-width: 80ch;
  color: var(--text-2);
  white-space: pre-line;
}

/* ---------------------------------------------------------------- içerik sayfaları */
.prose-page h2 {
  margin-top: 1.6em;
}
.feature-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  margin: 28px 0;
}
.feature {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.feature h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.feature__icon {
  box-sizing: content-box;
  padding: 8px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.15rem;
}
.feature p {
  margin: 0;
  color: var(--text-2);
}

/* ---------------------------------------------------------------- yönetim */
.admin-nav {
  margin-bottom: 20px;
}
.admin-reviews {
  display: grid;
  gap: 12px;
}
.admin-review + .admin-review {
  margin-top: 0;
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.admin-reply {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.admin-reply .btn {
  justify-self: start;
}
.status {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
}
.status--ok {
  background: var(--success-soft);
  color: var(--success);
}
.status--error {
  background: var(--danger-soft);
  color: var(--danger);
}
.status--running {
  background: var(--warning-soft);
}

/* ---------------------------------------------------------------- geçmiş / değişiklikler */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  border-left: 2px solid var(--border);
  padding-left: 16px;
}
.timeline li {
  position: relative;
  display: grid;
  gap: 2px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--brand);
}
.timeline time {
  font-size: 0.8rem;
  color: var(--muted);
}
.timeline p {
  margin: 2px 0 0;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}
.change-feed {
  display: grid;
  gap: 18px;
}
.change-feed__day {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 8px;
}
.change-feed ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.change-feed li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.change-feed__app {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  min-width: 0;
}
.change-feed__what {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
}
.change-feed__what::before {
  content: "· ";
  color: var(--muted);
}
.change--listed,
.change--relisted {
  color: var(--success);
}
.change--removed {
  color: var(--danger);
}
.change-feed__detail {
  font-size: 0.85rem;
  flex-basis: 100%;
  padding-left: 40px;
  overflow-wrap: anywhere;
}
.app-hero__actions .badge {
  align-self: flex-start;
}
.review-closed {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ---------------------------------------------------------------- footer */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.site-footer__grid {
  display: grid;
  gap: 24px;
  padding-block: 36px 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}
.site-footer__brand p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 34ch;
}
.site-footer h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.site-footer__grid > div:not(.site-footer__brand) {
  display: grid;
  gap: 6px;
  align-content: start;
}
.site-footer__grid a {
  color: var(--text-2);
  font-size: 0.92rem;
}
.site-footer__legal {
  padding-block: 16px 28px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}
.site-footer__legal p {
  margin: 0 0 4px;
  max-width: 100ch;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (forced-colors: active) {
  .bar-list__bar,
  .columns__bar,
  .stacked__seg,
  .legend__swatch {
    forced-color-adjust: none;
    background: CanvasText;
  }
}
