/* chrome-extensions.icin.tr ortak stil */

:root {
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --surface: #ffffff;
  --text: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eff6ff;
  --code-bg: #f3f4f6;
  --warning-bg: #fef3c7;
  --warning-border: #fde68a;
  --warning-text: #92400e;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --bg-soft: #0f152a;
    --surface: #151a2e;
    --text: #e5e7eb;
    --text-muted: #9ca3af;
    --border: #1f2937;
    --accent: #60a5fa;
    --accent-hover: #93c5fd;
    --accent-soft: #1e293b;
    --code-bg: #1f2937;
    --warning-bg: #3b2f1a;
    --warning-border: #92400e;
    --warning-text: #fde68a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  color: var(--text);
  line-height: 1.3;
  margin-top: 2em;
  margin-bottom: 0.5em;
  font-weight: 700;
}

h1 { font-size: 2rem; margin-top: 0; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }

p {
  margin: 0 0 1rem;
}

ul, ol {
  padding-left: 1.5rem;
  margin: 0 0 1rem;
}

li {
  margin-bottom: 0.3rem;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--code-bg);
  padding: 0.12em 0.4em;
  border-radius: 3px;
  word-break: break-word;
}

pre {
  background: var(--code-bg);
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.9em;
  line-height: 1.5;
}

pre code {
  background: none;
  padding: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

th, td {
  padding: 0.6rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-weight: 600;
  background: var(--bg-soft);
}

/* Site iskeleti */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(8px);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
}

.site-header__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__brand {
  font-weight: 700;
  color: var(--text);
  border-bottom: none;
  font-size: 1rem;
}

.site-header__brand:hover {
  color: var(--accent);
  border-bottom: none;
}

.site-nav {
  display: flex;
  gap: 1.2rem;
  font-size: 0.92rem;
}

.site-nav a {
  color: var(--text-muted);
  border-bottom: none;
}

.site-nav a:hover {
  color: var(--accent);
  border-bottom: none;
}

main {
  max-width: 768px;
  margin: 0 auto;
  padding: 2.5rem 1.2rem 3rem;
}

.hub-main {
  max-width: 960px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: var(--bg-soft);
}

.site-footer p {
  margin: 0.3rem 0;
}

.site-footer a {
  color: var(--text-muted);
}

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

/* Bileşenler */

.page-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  vertical-align: middle;
}

.callout {
  padding: 1rem 1.2rem;
  border-radius: 6px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  margin: 1.5rem 0;
}

.callout--warning {
  border-left-color: var(--warning-text);
  background: var(--warning-bg);
  color: var(--warning-text);
}

.callout--warning a {
  color: var(--warning-text);
  text-decoration: underline;
}

.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }

.toc {
  margin: 1.5rem 0 2.5rem;
  padding: 1rem 1.2rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
}

.toc strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.toc ul {
  margin: 0;
  padding-left: 1.2rem;
}

.toc li {
  margin-bottom: 0.2rem;
}

/* Hub kartları */

.hub-hero {
  text-align: center;
  padding: 2rem 0 3rem;
}

.hub-hero h1 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.hub-hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.card {
  display: block;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow);
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
}

.card__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 0.8rem;
}

.card__meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.card__meta span {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
}

.extension-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.extension-header__title {
  margin: 0;
  font-size: 1.8rem;
}

.extension-header__version {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.sub-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.sub-nav a {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  background: var(--surface);
}

.sub-nav a:hover,
.sub-nav a[aria-current="page"] {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Responsive */

@media (max-width: 540px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }
  main { padding: 1.5rem 1rem 2rem; }
  .hub-hero h1 { font-size: 1.9rem; }
  .site-header__inner { padding: 0.8rem 1rem; }
  .site-nav { gap: 0.8rem; font-size: 0.88rem; }
}
