/* =========================================================
   TEMA RENKLERİ — markanıza göre buradan değiştirin.
   ========================================================= */
:root {
  --accent: #ff3d57;
  --accent-hover: #e62e48;
  --accent-soft: rgba(255, 61, 87, .1);
  --accent-contrast: #fff;

  --header-bg: #16181d;
  --header-text: #e9ebef;
  --header-muted: #9aa1ad;

  --bg: #f3f4f6;
  --surface: #fff;
  --surface-2: #f8f9fb;
  --text: #1c1f26;
  --text-muted: #6b7280;
  --border: #e4e6eb;
  --success: #16a34a;
  --success-soft: rgba(22, 163, 74, .1);
  --info: #2563eb;
  --info-soft: rgba(37, 99, 235, .1);
  --warning: #b45309;
  --warning-soft: rgba(217, 119, 6, .12);

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .07);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .16);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Hiragino Sans", "Microsoft YaHei", sans-serif;
  --container: 1240px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115; --surface: #181b21; --surface-2: #1f232b; --text: #e8eaed; --text-muted: #9aa0a6; --border: #2a2f38;
    --header-bg: #0b0c0f; --accent-soft: rgba(255, 61, 87, .16); --success-soft: rgba(22, 163, 74, .18); --info-soft: rgba(37, 99, 235, .2); --warning-soft: rgba(217, 119, 6, .2);
    --warning: #f59e0b; --shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-lg: 0 12px 32px rgba(0, 0, 0, .55); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1115; --surface: #181b21; --surface-2: #1f232b; --text: #e8eaed; --text-muted: #9aa0a6; --border: #2a2f38;
  --header-bg: #0b0c0f; --accent-soft: rgba(255, 61, 87, .16); --success-soft: rgba(22, 163, 74, .18); --info-soft: rgba(37, 99, 235, .2); --warning-soft: rgba(217, 119, 6, .2);
  --warning: #f59e0b; --shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-lg: 0 12px 32px rgba(0, 0, 0, .55); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(24px, 3.2vw, 32px); letter-spacing: -.01em; }
h2 { font-size: 20px; }
p { margin: 0 0 1em; }
.muted { color: var(--text-muted); }
.small { font-size: 13px; }
[hidden] { display: none !important; }
.ic { flex: none; vertical-align: middle; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .05s; line-height: 1.2; }
.btn:hover { border-color: var(--text-muted); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: transparent; }
.btn-lg { padding: 14px 22px; font-size: 16px; border-radius: 10px; }
.btn-sm { padding: 6px 10px; font-size: 13px; }
.btn-block { width: 100%; }
.btn small { display: block; font-weight: 500; font-size: 12px; opacity: .85; }
.btn span { text-align: left; }

/* ---------- header ---------- */
.site-header { background: var(--header-bg); color: var(--header-text); position: sticky; top: 0; z-index: 40; }
.hdr { display: flex; align-items: center; gap: 14px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: none; }
.logo img { display: block; height: 34px; width: auto; }
.logo-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: #fff; font-weight: 800; font-size: 18px; }
.logo-text { font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.main-nav { display: flex; flex: 1; min-width: 0; overflow: hidden; gap: 2px; }
.main-nav a { padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--header-text); font-weight: 600; font-size: 14px; white-space: nowrap; }
.main-nav a:hover { background: rgba(255, 255, 255, .08); }
.hsearch { display: flex; align-items: center; background: rgba(255, 255, 255, .08); border-radius: 10px; padding: 0 4px 0 12px; width: 260px; flex: none; }
.hsearch input { flex: 1; min-width: 0; width: 100%; background: transparent; border: 0; color: var(--header-text); height: 38px; font: inherit; font-size: 14px; outline: none; }
.hsearch input::placeholder { color: var(--header-muted); }
.hsearch button { background: none; border: 0; color: var(--header-muted); padding: 6px; cursor: pointer; display: grid; }
.iconbtn { background: none; border: 0; color: var(--header-text); padding: 8px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.iconbtn:hover { background: rgba(255, 255, 255, .08); }
.navbtn { display: none; }
.langmenu { position: relative; flex: none; }
.langmenu summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-weight: 700; font-size: 13px; }
.langmenu summary::-webkit-details-marker { display: none; }
.langmenu summary:hover { background: rgba(255, 255, 255, .08); }
.langmenu ul { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow-lg); list-style: none; margin: 0; padding: 6px; min-width: 190px; z-index: 50; }
.langmenu li a { display: flex; gap: 10px; padding: 8px 10px; border-radius: 6px; text-decoration: none; font-size: 14px; }
.langmenu li a b { width: 24px; color: var(--text-muted); font-size: 12px; }
.langmenu li a:hover, .langmenu li a[aria-current] { background: var(--surface-2); }
.langmenu li a[aria-current] { font-weight: 700; }
.mobile-nav { border-top: 1px solid rgba(255, 255, 255, .08); padding: 8px 0 14px; }
.mobile-nav .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mobile-nav a { padding: 10px 12px; border-radius: 8px; color: var(--header-text); text-decoration: none; font-weight: 600; }
.mobile-nav a:hover { background: rgba(255, 255, 255, .08); }

@media (max-width: 1100px) { .main-nav { display: none; } .navbtn { display: grid; } .hsearch { flex: 1 1 auto; width: auto; min-width: 0; } }
@media (max-width: 640px) {
  .hdr { gap: 6px; height: 58px; }
  .logo-text { display: none; }
  .langmenu summary span { display: none; }
  .hsearch { padding-left: 10px; min-width: 0; }
  .logo img { max-width: 96px; height: auto; max-height: 30px; }
  .iconbtn { padding: 6px; }
  .langmenu summary { padding: 8px 6px; }
}

/* ---------- layout ---------- */
.main { padding-top: 20px; padding-bottom: 48px; min-height: 60vh; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr); } }
.content, .prog, .prog-title, .pform-main { min-width: 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 24px; }
.block { margin-bottom: 28px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.block-head h2 { margin: 0; }
.more { color: var(--accent); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }

/* breadcrumbs */
.crumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 13px; color: var(--text-muted); }
.crumbs li + li::before { content: "›"; margin-right: 4px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* hero */
.hero { text-align: center; padding: 28px 0 24px; }
.hero h1 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 8px; }
.hero > p { color: var(--text-muted); font-size: 17px; max-width: 640px; margin: 0 auto 20px; }
.bigsearch { display: flex; gap: 8px; max-width: 640px; margin: 0 auto 18px; }
.bigsearch.left { margin-left: 0; }
.bigsearch input { flex: 1; min-width: 0; height: 50px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); padding: 0 16px; font: inherit; font-size: 16px; color: var(--text); box-shadow: var(--shadow); }
.bigsearch input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.bigsearch .btn { height: 50px; border-radius: 12px; }
.catchips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.catchips.left { justify-content: flex-start; margin-top: 12px; }
.catchips a { padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; font-size: 14px; font-weight: 600; }
.catchips a:hover { border-color: var(--accent); color: var(--accent); }
.catchips small { color: var(--text-muted); font-weight: 500; }

/* program grid / cards */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pgrid-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .pgrid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .pgrid, .pgrid-wide { grid-template-columns: 1fr; } }
.pcard { display: flex; gap: 14px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; box-shadow: var(--shadow); transition: border-color .15s, transform .15s, box-shadow .15s; min-width: 0; }
.pcard:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.pcard-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pcard-title { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-desc { color: var(--text-muted); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ver { color: var(--text-muted); font-weight: 500; }
.picon { border-radius: 12px; background: #fff; flex: none; object-fit: contain; box-shadow: 0 0 0 1px var(--border); }
.picon-ph { display: inline-grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 20px; border-radius: 12px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--success-soft); color: var(--success); }
.tag-open_source { background: var(--info-soft); color: var(--info); }
.tag-free_trial, .tag-freemium { background: var(--warning-soft); color: var(--warning); }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11.5px; font-weight: 700; }

/* sidebar */
.sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }
@media (max-width: 960px) { .sidebar { position: static; } }
.side-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.side-box h2 { font-size: 16px; margin-bottom: 12px; }
.toplist, .catlist, .minilist { list-style: none; margin: 0; padding: 0; }
.toplist li a, .minilist li a { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14px; min-width: 0; }
.toplist li a:hover, .minilist li a:hover { background: var(--surface-2); }
.toplist small, .minilist small { display: block; color: var(--text-muted); font-weight: 400; font-size: 12px; }
.toplist span:last-child, .minilist span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rank { width: 20px; text-align: center; color: var(--text-muted); font-weight: 800; font-size: 13px; flex: none; }
.catlist li a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 4px; border-radius: 8px; text-decoration: none; font-size: 14px; }
.catlist li a:hover { background: var(--surface-2); color: var(--accent); }
.catlist small { color: var(--text-muted); }

/* page head */
.page-head { margin-bottom: 20px; }
.lead { font-size: 16px; color: var(--text-muted); max-width: 820px; }

/* program page */
.prog-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; padding: 24px; margin-bottom: 24px; align-items: center; }
.prog-head .picon { border-radius: 20px; }
.prog-title h1 { margin-bottom: 6px; }
.prog-title .lead { margin-bottom: 10px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--border); }
.chips li.tag { border-color: transparent; }
.prog-dl { display: flex; flex-direction: column; gap: 8px; min-width: 240px; }
.prog-dl .btn { justify-content: flex-start; }
.safe { display: flex; align-items: center; gap: 6px; justify-content: center; font-size: 12.5px; color: var(--success); margin: 2px 0 0; }
@media (max-width: 860px) {
  .prog-head { grid-template-columns: auto minmax(0, 1fr); }
  .prog-dl { grid-column: 1 / -1; min-width: 0; }
}
@media (max-width: 520px) {
  .prog-head { grid-template-columns: 1fr; padding: 18px; gap: 14px; }
  .prog-head .picon { width: 72px; height: 72px; }
}
.shots { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.shot { flex: 0 0 auto; width: min(420px, 82%); scroll-snap-align: start; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: #fff; display: block; }
.shot img { display: block; width: 100%; height: auto; }
.prose { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); overflow-wrap: anywhere; }
.prose h2 { margin-top: 0; }
.prose h3 { font-size: 17px; margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose a { color: var(--accent); }
.prose table { border-collapse: collapse; width: 100%; }
.prose th, .prose td { border: 1px solid var(--border); padding: 6px 10px; }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }
.features li { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px 10px 36px; position: relative; font-size: 14px; }
.features li::before { content: ""; position: absolute; left: 14px; top: 16px; width: 10px; height: 6px; border-left: 2px solid var(--success); border-bottom: 2px solid var(--success); transform: rotate(-45deg); }
.table-wrap { overflow-x: auto; }
.vtable, .ltable { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); font-size: 14px; }
.vtable th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); background: var(--surface-2); padding: 10px 14px; }
.vtable td { padding: 10px 14px; border-top: 1px solid var(--border); white-space: nowrap; }
.vtable td:first-child { white-space: normal; }
.vtable a { text-decoration: none; font-weight: 600; }
.vtable a:hover { color: var(--accent); }
.vtable .btn { font-weight: 600; }
.vtable tr.is-current td { background: var(--accent-soft); }
.info { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; margin: 0 0 14px; font-size: 14px; }
.info dt { color: var(--text-muted); }
.info dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.info dd a { color: var(--accent); text-decoration: none; }

/* latest table */
.ltable { border: 0; }
.ltable td { padding: 10px 14px; border-top: 1px solid var(--border); }
.ltable tr:first-child td { border-top: 0; }
.ltitle a { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.ltitle small { display: block; color: var(--text-muted); font-size: 13px; }
.ltitle a:hover strong { color: var(--accent); }
.ldate { white-space: nowrap; color: var(--text-muted); font-size: 13px; text-align: right; }

/* pager */
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 24px 0; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); text-decoration: none; font-weight: 600; font-size: 14px; }
.pager a:hover { border-color: var(--accent); color: var(--accent); }
.pager .cur { background: var(--accent); color: #fff; border-color: var(--accent); }
.pager .gap { border: 0; background: none; }

/* download page */
.dlbox { max-width: 620px; margin: 10px auto; text-align: center; padding: 32px 24px; display: flex; flex-direction: column; align-items: center; }
.dlbox h1 { font-size: 24px; margin-top: 14px; }
.countdown { margin: 8px 0 18px; }
.ring { width: 76px; height: 76px; border-radius: 50%; border: 4px solid var(--accent-soft); border-top-color: var(--accent); display: grid; place-items: center; margin: 0 auto 10px; font-size: 26px; font-weight: 800; animation: spin 1s linear infinite; }
.ring span { animation: spin 1s linear infinite reverse; }
.countdown.done .ring { animation: none; border-color: var(--success); }
.countdown.done .ring span { animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ring, .ring span { animation: none; } }
.others { width: 100%; text-align: left; border-top: 1px solid var(--border); margin-top: 10px; padding-top: 14px; }
.others h2 { font-size: 15px; }
.others ul { margin: 0 0 12px; padding-left: 18px; }
.others a { color: var(--accent); }

/* 404 / empty */
.empty { text-align: center; padding: 40px 0; }
.big404 { font-size: 72px; font-weight: 900; color: var(--accent); margin: 0; line-height: 1; }

/* footer */
.site-footer { background: var(--header-bg); color: var(--header-muted); padding: 40px 0 20px; font-size: 14px; }
.fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .fgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fgrid { grid-template-columns: 1fr; } }
.site-footer h2 { color: var(--header-text); font-size: 14px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; color: var(--header-muted); }
.site-footer a:hover { color: #fff; }
.fabout .logo { color: var(--header-text); margin-bottom: 12px; }
.flangs { grid-template-columns: 1fr 1fr; }
.fbottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 28px; padding-top: 16px; font-size: 13px; }

/* language suggestion bar */
.langbar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin: 0 auto; background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-lg); padding: 12px 12px 12px 16px; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.langbar p { margin: 0; flex: 1; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .88); display: flex; align-items: center; justify-content: center; padding: 48px 56px; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; background: #fff; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 28px; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255, 255, 255, .24); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox { padding: 56px 8px; } .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; } }
.page-content { max-width: 860px; }
.contact-list { list-style: none; padding: 0 !important; margin: 0 0 1em; display: grid; gap: 8px; }
.contact-list li { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 10px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; }
.contact-list li span { color: var(--text-muted); font-weight: 600; }
@media (max-width: 520px) { .contact-list li { grid-template-columns: 1fr; gap: 2px; } }
