/* PingPaket — editorial theme. Light by default, dark via [data-theme] or system preference. */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --text: #0d1117;
  --text-2: #2b3340;
  --muted: #5d6676;
  --line: #e2e6ec;
  --accent: #0069c2;
  --accent-soft: rgba(0, 105, 194, 0.08);
  --cat-guvenlik: #d93a42;
  --cat-linux: #b7791f;
  --cat-ag: #11924a;
  --cat-mikrotik: #0069c2;
  --shadow: 0 1px 2px rgba(13, 17, 23, 0.04), 0 8px 24px rgba(13, 17, 23, 0.06);
  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0e14;
  --surface: #121722;
  --surface-2: #182031;
  --text: #e9eef5;
  --text-2: #c7d0dc;
  --muted: #8d9aac;
  --line: #222b3a;
  --accent: #4cc2ff;
  --accent-soft: rgba(76, 194, 255, 0.1);
  --cat-guvenlik: #ff6b6f;
  --cat-linux: #f2c14e;
  --cat-ag: #3ddc84;
  --cat-mikrotik: #4cc2ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0e14; --surface: #121722; --surface-2: #182031; --text: #e9eef5; --text-2: #c7d0dc;
    --muted: #8d9aac; --line: #222b3a; --accent: #4cc2ff; --accent-soft: rgba(76, 194, 255, 0.1);
    --cat-guvenlik: #ff6b6f; --cat-linux: #f2c14e; --cat-ag: #3ddc84; --cat-mikrotik: #4cc2ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.4px; flex-shrink: 0; }
.logo b { color: var(--accent); font-weight: 800; }
.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a { padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 15px; color: var(--text-2); }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--surface-2); color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); cursor: pointer; }
.icon-btn:hover { color: var(--text); border-color: var(--muted); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 10px; background: var(--text); color: var(--bg); }
.btn:hover { opacity: 0.88; }
.btn svg { width: 16px; height: 16px; }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { list-style: none; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu nav { position: absolute; right: 0; top: 46px; width: 220px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); display: grid; }
.mobile-menu nav a { padding: 10px 12px; border-radius: 8px; font-weight: 600; }
.mobile-menu nav a:hover { background: var(--surface-2); }

/* Shared bits */
/* No text-transform: in lang="tr" uppercase turns Linux into LİNUX. */
.cat { font: 700 12.5px/1 var(--mono); letter-spacing: 0.2px; color: var(--cat-ag); }
.cat-guvenlik { color: var(--cat-guvenlik); }
.cat-linux { color: var(--cat-linux); }
.cat-ag { color: var(--cat-ag); }
.cat-mikrotik { color: var(--cat-mikrotik); }
.meta { color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, var(--surface-2), var(--line)); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.media.placeholder::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 40%, var(--accent-soft), transparent 60%); }
a:hover .media img { transform: scale(1.03); }
a:hover h2, a:hover h3 { color: var(--accent); }
h1, h2, h3 { letter-spacing: -0.02em; text-wrap: balance; }

/* Home: lead story */
.lead { display: grid; grid-template-columns: 1.65fr 1fr; gap: 32px; padding: 32px 0 8px; }
.lead-main h1 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; margin: 14px 0 12px; font-weight: 800; transition: color 0.2s; }
.lead-main p { color: var(--text-2); font-size: 18px; margin: 0 0 14px; max-width: 62ch; }
.lead-main .cat { display: inline-block; margin-top: 18px; }
.lead-side { display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line); padding-left: 28px; }
.lead-side h2.label { font: 700 13px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.8px; color: var(--muted); margin: 4px 0 10px; }
.side-item { display: grid; grid-template-columns: 1fr 112px; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.side-item:last-child { border-bottom: 0; }
.side-item h3 { font-size: 16px; line-height: 1.3; margin: 6px 0 6px; font-weight: 700; transition: color 0.2s; }
.side-item .media { border-radius: 10px; }

/* Sections */
.section { padding: 40px 0 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 2px solid var(--text); padding-top: 14px; margin-bottom: 22px; }
.section-head h2 { margin: 0; font-size: 22px; font-weight: 800; }
.section-head a { color: var(--accent); font-weight: 600; font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }
.card h3 { font-size: 19px; line-height: 1.3; margin: 12px 0 8px; font-weight: 700; transition: color 0.2s; }
.card .cat { display: inline-block; margin-top: 16px; }
.card p { color: var(--muted); font-size: 15px; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* MikroTik promo band (home) */
.band { margin: 48px 0 8px; padding: 32px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
.band h2 { font-size: 28px; margin: 8px 0 10px; font-weight: 800; }
.band p { color: var(--text-2); margin: 0 0 18px; }
.band-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.band-stats div { background: var(--surface-2); border-radius: 12px; padding: 16px; }
.band-stats b { display: block; font: 800 24px/1.1 var(--font); }
.band-stats span { color: var(--muted); font-size: 13px; }

/* Article */
.article { display: grid; grid-template-columns: minmax(0, 720px) 300px; gap: 56px; padding: 28px 0 40px; justify-content: center; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--accent); }
.article h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; margin: 10px 0 16px; font-weight: 800; }
.article .lead-text { font-size: 20px; line-height: 1.55; color: var(--text-2); margin: 0 0 18px; }
.byline { padding: 14px 0; border-block: 1px solid var(--line); margin-bottom: 26px; }
.byline a { color: var(--accent); }
.figure { margin: 0 0 28px; }
.figure .media { border-radius: 16px; }
.prose { font-size: 18px; line-height: 1.75; color: var(--text-2); }
.prose p { margin: 0 0 20px; overflow-wrap: anywhere; }
.prose h2 { font-size: 24px; color: var(--text); margin: 36px 0 12px; font-weight: 800; }
.short { width: min(340px, 100%); aspect-ratio: 9 / 16; margin: 8px auto 32px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.short iframe { width: 100%; height: 100%; border: 0; }
.source-box { margin-top: 32px; padding: 18px 20px; border-radius: 12px; background: var(--surface-2); font-size: 15px; color: var(--text-2); }
.source-box a { color: var(--accent); font-weight: 600; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags span { font: 500 13px/1 var(--mono); color: var(--muted); padding: 7px 10px; border-radius: 8px; background: var(--surface-2); }
.aside { position: sticky; top: 88px; align-self: start; display: grid; gap: 18px; }
.aside-box { padding: 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.aside-box h2 { font: 700 13px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.8px; color: var(--muted); margin: 0 0 14px; }
.aside-box p { margin: 0 0 14px; font-size: 15px; color: var(--text-2); }
.mini { display: block; padding: 10px 0; border-top: 1px solid var(--line); }
.mini:first-of-type { border-top: 0; padding-top: 0; }
.mini h3 { font-size: 15px; line-height: 1.35; margin: 6px 0 0; font-weight: 700; transition: color 0.2s; }
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); transform-origin: left; transform: scaleX(0); z-index: 40; }

/* Category and generic page headers */
.page-head { padding: 40px 0 8px; max-width: 760px; }
.page-head h1 { font-size: clamp(32px, 4.5vw, 52px); line-height: 1.05; margin: 10px 0 12px; font-weight: 800; }
.page-head p { color: var(--text-2); font-size: 19px; margin: 0; }
.empty { color: var(--muted); }

/* MikroTik hub */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.jump a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; }
.jump a:hover { border-color: var(--accent); color: var(--accent); }
.family { margin: 34px 0 6px; font-size: 20px; font-weight: 800; }
.family + p { color: var(--muted); margin: 0 0 16px; }
.devices { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.device { padding: 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.device-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.device h3 { margin: 0; font-size: 20px; font-weight: 800; }
.device code { font: 500 12px/1.4 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.price { font: 800 18px/1 var(--font); white-space: nowrap; }
.price small { display: block; font: 500 11px/1.4 var(--font); color: var(--muted); text-align: right; }
.device .for { margin: 0; color: var(--text-2); font-size: 15px; }
.specs { margin: 0; display: grid; grid-template-columns: 96px 1fr; gap: 6px 12px; font-size: 14px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; color: var(--text-2); overflow-wrap: anywhere; }
.device .official { margin-top: auto; color: var(--accent); font-weight: 600; font-size: 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 700 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
.note { color: var(--muted); font-size: 13px; margin-top: 12px; }

/* Buttons: secondary */
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }

/* Search */
.home-search { padding: 22px 0 0; }
.search-inline { display: flex; gap: 8px; margin-top: 18px; max-width: 720px; }
.search-inline input { flex: 1; min-width: 0; font: 500 16px var(--font); padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.search-inline input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.search-inline button { font: 700 15px var(--font); padding: 0 20px; border-radius: 12px; border: 0; background: var(--text); color: var(--bg); cursor: pointer; }
.search-inline.big input { font-size: 18px; padding: 15px 18px; }
.home-search .search-inline { margin-top: 0; max-width: none; }
.suggest { margin-top: 10px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 12px; }
.suggest a { color: var(--accent); font-weight: 600; }
.search-status { color: var(--muted); margin: 24px 0 8px; }
.results { display: grid; gap: 12px; max-width: 820px; }
.result { display: block; padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.result:hover { border-color: var(--accent); }
.result h3 { margin: 6px 0 6px; font-size: 18px; line-height: 1.3; }
.result p { margin: 0; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Guides */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guide-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.guide-card:hover { border-color: var(--accent); }
.guide-card h3 { margin: 0; font-size: 18px; line-height: 1.3; transition: color 0.2s; }
.guide-card p { margin: 0; color: var(--muted); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.answer { margin: 0 0 28px; padding: 20px 22px; border-radius: 14px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.answer h2 { font: 700 13px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.8px; color: var(--accent); margin: 0 0 10px; }
.answer p { margin: 0 0 8px; font-size: 17px; line-height: 1.6; color: var(--text); }
.answer p:last-child { margin-bottom: 0; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 12px; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 8px 52px; scroll-margin-top: 90px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 800 15px/1 var(--font); background: var(--text); color: var(--bg); }
.steps h3 { margin: 4px 0 6px; font-size: 19px; color: var(--text); }
.steps p { margin: 0 0 12px; }
.code { margin: 0 0 16px; padding: 14px 16px; border-radius: 12px; background: #0d1117; color: #e6edf3; font: 500 14px/1.6 var(--mono); overflow-x: auto; white-space: pre; }
.faq { border-top: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--text); font-size: 17px; }
.faq p { margin: 10px 0 0; }
.toc { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; color: var(--text-2); }
.toc a:hover { color: var(--accent); }
.guide-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* Device hub */
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.brand-tile { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.brand-tile:hover { border-color: var(--accent); }
.brand-tile h2 { margin: 0; font-size: 22px; font-weight: 800; }
.brand-tile p { margin: 0; color: var(--text-2); font-size: 15px; flex: 1; }
.brand-tile span { color: var(--accent); font-weight: 700; font-size: 14px; }
.brand-tile.accent { background: var(--accent-soft); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badges span { font: 600 12px/1 var(--mono); padding: 6px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); }
.specs.wide { grid-template-columns: 200px 1fr; font-size: 15px; gap: 10px 16px; }
.specs.wide dt { color: var(--text); font-weight: 700; }
.notice { margin: 20px 0 0; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-size: 15px; color: var(--text-2); }
td small { color: var(--muted); }

/* Footer */
.site-footer { margin-top: 64px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 40px 0 28px; }
.footer-grid h2 { font: 700 13px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.8px; color: var(--muted); margin: 0 0 14px; }
.footer-grid p { color: var(--text-2); margin: 10px 0 0; font-size: 15px; max-width: 42ch; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid li a { color: var(--text-2); }
.footer-grid li a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding: 18px 0 28px; color: var(--muted); font-size: 13px; }

/* Consent */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 520px; margin: 0 auto; padding: 18px 20px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); z-index: 50; font-size: 15px; }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 14px; color: var(--text-2); }
.consent div { display: flex; gap: 10px; justify-content: flex-end; }
.consent button { font: 700 14px var(--font); padding: 9px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.consent button.primary { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Responsive */
@media (max-width: 1100px) {
  .main-nav, .header-actions .btn { display: none; }
  .mobile-menu { display: block; }
  .header-row { justify-content: space-between; }
}
@media (max-width: 1000px) {
  .lead { grid-template-columns: 1fr; }
  .guide-grid, .brand-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .lead-side { border-left: 0; padding-left: 0; }
  .article { grid-template-columns: 1fr; gap: 24px; }
  .aside { position: static; }
  .band { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .main-nav, .header-actions .btn { display: none; }
  .mobile-menu { display: block; }
  .header-row { justify-content: space-between; }
  .grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid, .guide-grid, .brand-grid, .footer-grid { grid-template-columns: 1fr; }
  .specs.wide { grid-template-columns: 1fr; gap: 2px 0; }
  .specs.wide dd { margin-bottom: 10px; }
  .steps > li { padding-left: 44px; }
  .search-inline button { padding: 0 14px; }
  .side-item { grid-template-columns: 1fr 96px; }
  .prose { font-size: 17px; }
  .band { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .media img, .card h3, .lead-main h1 { transition: none; }
}
