﻿/* =========================================================
   Batuge68 — Site Teması
   Koyu (varsayılan) ve açık tema, CSS değişkenleri ile.
   ========================================================= */
:root, [data-theme="dark"] {
  --bg: #0a0c11;
  --bg-2: #0f1218;
  --surface: #141821;
  --surface-2: #1a1f2b;
  --border: #242b3a;
  --text: #e7eaf1;
  --muted: #8d96a9;
  --accent: #ff3d3d;
  --accent-2: #ff8a1f;
  --accent-soft: rgba(255, 61, 61, .12);
  --link: #ff6b5a;
  --ok: #2ecc71;
  --warn: #f5b041;
  --err: #ff5a5a;
  --code-bg: #0d1017;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 16px;
  --radius-sm: 10px;
  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-2: #eef0f6;
  --surface: #ffffff;
  --surface-2: #f3f5fa;
  --border: #e1e5ee;
  --text: #151821;
  --muted: #5d6578;
  --accent: #e52d27;
  --accent-2: #ff7a00;
  --accent-soft: rgba(229, 45, 39, .08);
  --link: #d1281f;
  --code-bg: #0f131b;
  --shadow: 0 10px 30px rgba(20,30,60,.08);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
code, pre, kbd { font-family: "JetBrains Mono", Consolas, monospace; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: .85rem; margin: .3em 0 1em; }
.center { text-align: center; }
.mt0 { margin-top: 0 !important; }
.hidden { display: none !important; }

/* ---------------- Butonlar ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.2em; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font: inherit; font-weight: 600; font-size: .95rem;
  cursor: pointer; transition: transform .15s, background .2s, border-color .2s, box-shadow .2s; text-decoration: none !important;
  white-space: nowrap;
}
.btn:hover { border-color: var(--muted); transform: translateY(-1px); }
.btn-primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 22px rgba(255,61,61,.28); }
.btn-primary:hover { box-shadow: 0 10px 28px rgba(255,61,61,.4); border-color: transparent; }
.btn-yt { background: #ff0000; border-color: #ff0000; color: #fff; }
.btn-ghost { background: transparent; }
.btn-sm { padding: .42em .85em; font-size: .85rem; }
.btn-danger { color: var(--err); }
.btn-danger:hover { background: rgba(255,90,90,.1); border-color: var(--err); }
.btn-block { width: 100%; }
.row-btns { display: flex; gap: .6rem; flex-wrap: wrap; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text); cursor: pointer; font-size: 1rem;
}
.icon-btn:hover { border-color: var(--muted); }

/* ---------------- Navigasyon ---------------- */
.nav {
  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);
}
.nav-in { display: flex; align-items: center; gap: 1.2rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 800; font-size: 1.15rem; text-decoration: none !important; }
.brand img, .brand .brand-ic { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.brand .brand-ic { display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 1rem; }
.nav-links { display: flex; gap: .2rem; margin: 0 auto 0 .5rem; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: .95rem; padding: .45em .8em; border-radius: 999px; text-decoration: none; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.on { color: var(--text); background: var(--accent-soft); }
.nav-right { display: flex; align-items: center; gap: .5rem; }
.nav-search { position: relative; }
.nav-search input {
  width: 180px; padding: .55em 1em .55em 2.3em; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; font-size: .9rem; transition: width .25s;
}
.nav-search input:focus { width: 240px; outline: none; border-color: var(--accent); }
.nav-search i { position: absolute; left: .95em; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .85rem; }
.nav-toggle { display: none; }
.user-menu { position: relative; }
.user-menu > button { display: flex; align-items: center; gap: .5em; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); padding: .35em .8em .35em .35em; border-radius: 999px; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
.avatar-mini { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: .85rem; font-weight: 800; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow); padding: .4rem; display: none;
}
.user-menu.open .dropdown { display: block; }
.dropdown a { display: flex; gap: .7em; align-items: center; padding: .6em .8em; border-radius: 10px; color: var(--text); font-size: .92rem; text-decoration: none; }
.dropdown a:hover { background: var(--surface-2); }
.dropdown a i { width: 18px; color: var(--muted); }
.dropdown hr { border: 0; border-top: 1px solid var(--border); margin: .3rem 0; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-grid; }
  .nav-links {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; background: var(--bg); padding: 1rem 20px 1.5rem;
    border-bottom: 1px solid var(--border); margin: 0; display: none;
  }
  .nav-links a { padding: .8em 1em; font-size: 1.05rem; }
  body.nav-open .nav-links { display: flex; }
  .nav-search { display: none; }
  .nav-right .btn-yt span { display: none; }
}

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; filter: saturate(1.1); }
.hero-bg.no-img { background: radial-gradient(1200px 500px at 15% -10%, rgba(255,61,61,.35), transparent 60%), radial-gradient(900px 500px at 100% 0%, rgba(255,138,31,.25), transparent 60%); opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, var(--bg) 92%); }
.hero-in { position: relative; z-index: 2; padding: 90px 0 70px; display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; }
.hero-avatar { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 4px solid var(--bg); box-shadow: 0 0 0 3px var(--accent), var(--shadow); }
.hero-avatar.ph { display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 3.4rem; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: .3em .9em; border-radius: 999px; font-size: .85rem; margin-bottom: .8rem; }
.hero h1 { margin-bottom: .3em; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 640px; }
.stats { display: flex; gap: .7rem; flex-wrap: wrap; margin: 1.2rem 0 1.5rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: .6rem 1rem; min-width: 120px; }
.stat b { display: block; font-size: 1.35rem; font-weight: 800; }
.stat span { color: var(--muted); font-size: .82rem; }
@media (max-width: 720px) {
  .hero-in { grid-template-columns: 1fr; text-align: center; padding: 60px 0 40px; }
  .hero-avatar { margin: 0 auto; width: 120px; height: 120px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .stats, .hero .row-btns { justify-content: center; }
}

/* ---------------- Bölümler ---------------- */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.sec-head h2 { margin: 0; display: flex; align-items: center; gap: .5em; }
.sec-head h2 i { color: var(--accent); }
.sec-head p { margin: .3em 0 0; color: var(--muted); }
.page-head { padding: 54px 0 30px; border-bottom: 1px solid var(--border); background: radial-gradient(800px 300px at 0% 0%, var(--accent-soft), transparent 70%); }
.page-head p { color: var(--muted); max-width: 720px; margin: 0; }
.crumb { color: var(--muted); font-size: .88rem; margin-bottom: .6rem; display: flex; gap: .5em; flex-wrap: wrap; }
.crumb a { color: var(--muted); }

/* ---------------- Kart Izgaraları ---------------- */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid.g4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.vcard { display: block; color: var(--text); text-decoration: none !important; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.vcard:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); box-shadow: var(--shadow); }
.thumb { position: relative; aspect-ratio: 16/9; background: var(--surface-2); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.vcard:hover .thumb img { transform: scale(1.05); }
.dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.82); color: #fff; font-size: .78rem; font-weight: 700; padding: .1em .5em; border-radius: 6px; }
.tag-short { position: absolute; left: 8px; top: 8px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; padding: .15em .55em; border-radius: 6px; }
.play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .2s; background: rgba(0,0,0,.25); }
.play i { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 1.1rem; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.vcard:hover .play { opacity: 1; }
.vbody { padding: 14px 16px 16px; }
.vbody h3 { font-size: 1rem; margin: 0 0 .5em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; gap: 1em; flex-wrap: wrap; color: var(--muted); font-size: .83rem; }
.meta i { margin-right: .25em; }

.pcard { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.pcard:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); box-shadow: var(--shadow); }
.pcard-img { position: relative; display: block; aspect-ratio: 16/9; background: var(--surface-2); overflow: hidden; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pcard:hover .pcard-img img { transform: scale(1.05); }
.pcard-ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2.4rem; color: #fff; background: var(--grad); opacity: .85; }
.badge-vid { position: absolute; left: 10px; top: 10px; background: rgba(0,0,0,.75); color: #fff; font-size: .75rem; font-weight: 700; padding: .2em .65em; border-radius: 999px; }
.badge-vid i { color: #ff3b3b; }
.pcard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.pcard-body h3 { margin: .35em 0 .4em; }
.pcard-body h3 a { color: var(--text); }
.pcard-body p { color: var(--muted); font-size: .93rem; flex: 1; }
.chip { display: inline-block; align-self: flex-start; font-size: .75rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: .2em .7em; border-radius: 999px; text-decoration: none !important; }
.tech { display: flex; flex-wrap: wrap; gap: .4em; }
.tech span, .tags a, .tags span { font-size: .78rem; background: var(--surface-2); border: 1px solid var(--border); padding: .2em .7em; border-radius: 999px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: .45em; margin: 1.2rem 0; }
.tags a:hover { color: var(--text); text-decoration: none; border-color: var(--muted); }

/* Öne çıkan son video */
.feature { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 22px; }
.feature h3 { font-size: 1.5rem; }
.feature .label { color: var(--accent); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

/* Hafif YouTube oynatıcı */
.yt-lite { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #000 center/cover no-repeat; cursor: pointer; margin: 1.2em 0; }
.yt-lite::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45), transparent 40%, rgba(0,0,0,.25)); }
.yt-lite .yt-title { position: absolute; left: 16px; top: 12px; right: 16px; color: #fff; font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.yt-lite .yt-play { position: absolute; left: 50%; top: 50%; width: 72px; height: 50px; transform: translate(-50%,-50%); background: #ff0000; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 1.4rem; transition: transform .2s; }
.yt-lite:hover .yt-play { transform: translate(-50%,-50%) scale(1.08); }
.yt-lite iframe, .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.feature .yt-lite { margin: 0; }
.embed { position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: #000; }

/* CTA */
.cta { text-align: center; padding: 56px 24px; border-radius: 24px; background: radial-gradient(600px 220px at 50% 0%, rgba(255,61,61,.25), transparent 70%), var(--surface); border: 1px solid var(--border); }
.cta p { color: var(--muted); max-width: 560px; margin: 0 auto 1.4rem; }

/* ---------------- Yerleşim (içerik + yan panel) ---------------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; padding: 40px 0 70px; }
@media (max-width: 980px) { .layout { grid-template-columns: 1fr; } }
.side { display: flex; flex-direction: column; gap: 22px; }
.side-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.side-box h4 { font-size: .95rem; margin-bottom: .8em; display: flex; align-items: center; gap: .5em; }
.side-box h4 i { color: var(--accent); }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li + li { border-top: 1px solid var(--border); }
.side-list a { display: flex; justify-content: space-between; gap: 1em; padding: .55em 0; color: var(--text); font-size: .93rem; }
.side-list a span { color: var(--muted); font-size: .82rem; }
.side-list a.on { color: var(--accent); font-weight: 700; }
.mini-v { display: grid; grid-template-columns: 120px 1fr; gap: 10px; color: var(--text); text-decoration: none !important; padding: 6px 0; }
.mini-v img { width: 120px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }
.mini-v b { font-size: .85rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; }
.mini-v small { color: var(--muted); font-size: .76rem; }
.sub-card { text-align: center; }
.sub-card img { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto .6rem; object-fit: cover; }
.social { display: flex; gap: .5rem; flex-wrap: wrap; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); text-decoration: none; transition: .2s; }
.social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.sub-card .social { justify-content: center; margin-top: .8rem; }

/* ---------------- Makale ---------------- */
.article-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.article-meta { display: flex; gap: 1.1em; flex-wrap: wrap; color: var(--muted); font-size: .9rem; margin-bottom: 1.4rem; align-items: center; }
.cover { border-radius: 18px; overflow: hidden; margin-bottom: 1.6rem; border: 1px solid var(--border); }
.cover img { width: 100%; max-height: 460px; object-fit: cover; }
.summary-lead { font-size: 1.13rem; color: var(--muted); border-left: 3px solid var(--accent); padding-left: 1em; margin-bottom: 1.6rem; }
.prose { font-size: 1.04rem; line-height: 1.8; word-wrap: break-word; }
.prose h2 { margin-top: 1.8em; font-size: 1.55rem; }
.prose h3 { margin-top: 1.5em; font-size: 1.22rem; }
.prose img { border-radius: 12px; margin: 1.2em auto; border: 1px solid var(--border); cursor: zoom-in; height: auto; }
.prose blockquote { margin: 1.4em 0; padding: .8em 1.2em; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; color: var(--muted); }
.prose blockquote p:last-child { margin: 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .3em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: .6em .8em; text-align: left; }
.prose th { background: var(--surface-2); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.prose :not(pre) > code { background: var(--surface-2); border: 1px solid var(--border); padding: .12em .4em; border-radius: 6px; font-size: .88em; color: var(--accent-2); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.code-wrap { position: relative; margin: 1.4em 0; border-radius: 14px; overflow: hidden; border: 1px solid #222a38; background: var(--code-bg); }
.code-bar { display: flex; justify-content: space-between; align-items: center; padding: .45em .9em; background: #161b26; color: #9aa4b8; font-size: .78rem; font-family: "JetBrains Mono", monospace; }
.code-bar .dots { display: flex; gap: 6px; }
.code-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; display: block; }
.code-bar .dots i:nth-child(2) { background: #febc2e; }
.code-bar .dots i:nth-child(3) { background: #28c840; }
.copy-btn { background: transparent; border: 1px solid #2c3446; color: #c8d0e0; border-radius: 6px; font: inherit; font-size: .75rem; padding: .2em .65em; cursor: pointer; }
.copy-btn:hover { background: #222a38; }
.prose pre { margin: 0; padding: 1em 1.1em; overflow-x: auto; font-size: .88rem; line-height: 1.6; background: transparent !important; }
.prose pre code.hljs { background: transparent; padding: 0; }
.share { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: 1.8rem 0; padding: 1rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.share b { margin-right: .4rem; font-size: .9rem; }
.share a, .share button { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); cursor: pointer; font-size: .95rem; text-decoration: none; }
.share a:hover, .share button:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.video-link-box { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.2rem; border-radius: 14px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); margin: 1.4rem 0; }
.video-link-box i.big { font-size: 1.8rem; color: var(--accent); }
.video-link-box div { flex: 1; }
.video-link-box b { display: block; }

/* Yorumlar */
.comments { margin-top: 2.4rem; }
.comment { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.comment .avatar-mini { width: 42px; height: 42px; font-size: 1rem; }
.comment b { font-size: .95rem; }
.comment small { color: var(--muted); margin-left: .5em; }
.comment p { margin: .3em 0 0; white-space: pre-wrap; }
.comment.pending { opacity: .65; }

/* ---------------- Formlar ---------------- */
.fld { display: block; margin-bottom: 1rem; }
.fld > span { display: block; font-size: .86rem; font-weight: 600; margin-bottom: .35em; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=search], input:not([type]), textarea, select {
  width: 100%; padding: .75em 1em; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-2);
  color: var(--text); font: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.check { display: inline-flex; align-items: center; gap: .55em; cursor: pointer; font-size: .93rem; margin: .2rem 1.2rem .8rem 0; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 1rem; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card + .card { margin-top: 20px; }
.fs-title { font-size: 1rem; margin: 1.4rem 0 .8rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }

.alert { display: flex; gap: .7em; align-items: flex-start; padding: .85em 1.1em; border-radius: 12px; margin-bottom: 1.2rem; font-size: .95rem; border: 1px solid; }
.alert i { margin-top: .25em; }
.alert-ok { background: rgba(46,204,113,.1); border-color: rgba(46,204,113,.35); color: var(--ok); }
.alert-err { background: rgba(255,90,90,.1); border-color: rgba(255,90,90,.35); color: var(--err); }
.alert-info { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); color: var(--text); }

/* Giriş / Kayıt */
.auth-wrap { min-height: calc(100vh - 68px - 200px); display: grid; place-items: center; padding: 50px 20px; }
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 30px 16px; background: radial-gradient(900px 400px at 50% -10%, rgba(255,61,61,.2), transparent 70%), var(--bg); }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); }
.auth-card.wide { max-width: 680px; }
.auth-card h1 { font-size: 1.6rem; }
.auth-logo { display: flex; align-items: center; gap: .5em; font-weight: 800; font-size: 1.2rem; margin-bottom: 1.2rem; }
.auth-logo i { color: #ff0000; font-size: 1.6rem; }
.auth-alt { text-align: center; margin-top: 1.2rem; color: var(--muted); font-size: .93rem; }
.err-pre { white-space: pre-wrap; background: var(--bg-2); border: 1px solid var(--border); padding: 1em; border-radius: 10px; font-size: .82rem; color: var(--err); }
.steps li { margin-bottom: .5em; }

/* Videolar filtre çubuğu */
.filterbar { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.6rem; }
.filterbar .search { flex: 1; min-width: 220px; position: relative; }
.filterbar .search i { position: absolute; left: 1em; top: 50%; transform: translateY(-50%); color: var(--muted); }
.filterbar .search input { padding-left: 2.6em; border-radius: 999px; }
.filterbar select { width: auto; border-radius: 999px; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: .88rem; padding: .45em 1em; border-radius: 999px; cursor: pointer; }
.seg button.on { background: var(--accent); color: #fff; }
.count-info { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius); }
.empty i { font-size: 2.4rem; margin-bottom: .6rem; display: block; color: var(--accent); }

/* Video detay */
.vtitle { font-size: clamp(1.35rem, 3vw, 1.9rem); margin: 1.1rem 0 .6rem; }
.vstats { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.vstats .meta { font-size: .92rem; }
.desc-box { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.2rem; margin-top: 1.2rem; font-size: .95rem; position: relative; }
.desc-box.collapsed { max-height: 220px; overflow: hidden; }
.desc-box.collapsed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(transparent, var(--surface)); }
.hashtag { color: var(--link); }

/* Sayfalama */
.pager { display: flex; gap: .4rem; justify-content: center; margin-top: 2.4rem; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 .6em; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; text-decoration: none; }
.pager .on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager .dots { border: 0; background: none; }

/* Hakkımda */
.about { display: grid; grid-template-columns: 300px 1fr; gap: 40px; padding: 50px 0 70px; }
.about-side { text-align: center; }
.about-side img, .about-side .ph { width: 200px; height: 200px; border-radius: 50%; margin: 0 auto 1rem; object-fit: cover; box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px var(--accent); }
.about-side .ph { display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 4rem; }
.about-side .social { justify-content: center; margin: 1rem 0; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* İletişim */
.contact { display: grid; grid-template-columns: 1fr 340px; gap: 30px; padding: 40px 0 70px; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.ci { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.ci i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 1.1rem; }
.ci small { display: block; color: var(--muted); font-size: .8rem; }
.ci b { font-size: .95rem; word-break: break-all; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* Footer */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 50px 0 24px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
.footer h4 { font-size: .95rem; margin-bottom: 1em; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: .45em 0; }
.footer li a { color: var(--muted); font-size: .93rem; }
.footer li a:hover { color: var(--text); }
.foot-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: grid; place-items: center; z-index: 200; cursor: zoom-out; padding: 20px; }
.lightbox img { max-width: 95vw; max-height: 92vh; border-radius: 10px; }

.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; opacity: 0; pointer-events: none; transition: .25s; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* =========================================================
   ADMIN PANELİ
   ========================================================= */
.adm { display: grid; grid-template-columns: 250px minmax(0,1fr); min-height: 100vh; }
.adm-side { background: var(--bg-2); border-right: 1px solid var(--border); padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.adm-side .brand { margin: 4px 8px 22px; }
.adm-nav a { display: flex; align-items: center; gap: .8em; padding: .65em .9em; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .93rem; text-decoration: none; margin-bottom: 2px; }
.adm-nav a i { width: 18px; text-align: center; }
.adm-nav a:hover { background: var(--surface-2); color: var(--text); }
.adm-nav a.on { background: var(--accent-soft); color: var(--accent); }
.adm-nav .badge { margin-left: auto; background: var(--accent); color: #fff; border-radius: 999px; font-size: .72rem; padding: .05em .55em; }
.adm-nav .sep { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 1.2em .9em .5em; opacity: .7; }
.adm-main { padding: 0 0 50px; min-width: 0; }
.adm-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 14px 28px; border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.adm-top h1 { font-size: 1.3rem; margin: 0; }
.adm-body { padding: 26px 28px; }
.adm-menu-btn { display: none; }
@media (max-width: 900px) {
  .adm { grid-template-columns: 1fr; }
  .adm-side { position: fixed; left: -270px; width: 260px; z-index: 60; transition: left .25s; }
  body.adm-open .adm-side { left: 0; box-shadow: var(--shadow); }
  .adm-menu-btn { display: inline-grid; }
  .adm-body, .adm-top { padding-left: 16px; padding-right: 16px; }
}
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin-bottom: 24px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; display: flex; gap: 14px; align-items: center; color: var(--text); text-decoration: none !important; }
.kpi i { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 1.15rem; }
.kpi b { font-size: 1.5rem; display: block; line-height: 1.1; }
.kpi span { color: var(--muted); font-size: .84rem; }
.tbl-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th, .tbl td { padding: .8em 1em; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.tbl th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.unread td { font-weight: 700; }
.tbl .acts { display: flex; gap: .35rem; justify-content: flex-end; flex-wrap: wrap; }
.tbl img.tiny { width: 72px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; }
.pill { display: inline-block; font-size: .74rem; font-weight: 700; padding: .15em .65em; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.pill.ok { color: var(--ok); border-color: rgba(46,204,113,.4); background: rgba(46,204,113,.08); }
.pill.warn { color: var(--warn); border-color: rgba(245,176,65,.4); background: rgba(245,176,65,.08); }
.pill.red { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: var(--accent-soft); }
.toolbar { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.toolbar .search { position: relative; min-width: 240px; }
.toolbar .search input { padding-left: 2.4em; border-radius: 999px; }
.toolbar .search i { position: absolute; left: 1em; top: 50%; transform: translateY(-50%); color: var(--muted); }
.edit-grid { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 22px; align-items: start; }
@media (max-width: 1100px) { .edit-grid { grid-template-columns: 1fr; } }
.md-toolbar { display: flex; gap: 4px; flex-wrap: wrap; padding: 6px; border: 1px solid var(--border); border-bottom: 0; border-radius: 12px 12px 0 0; background: var(--surface-2); }
.md-toolbar button { background: transparent; border: 0; color: var(--text); width: 34px; height: 32px; border-radius: 8px; cursor: pointer; font-size: .9rem; }
.md-toolbar button:hover { background: var(--surface); }
.md-toolbar .sp { flex: 1; }
.md-toolbar .tab { width: auto; padding: 0 .8em; font-weight: 600; font-size: .82rem; color: var(--muted); }
.md-toolbar .tab.on { background: var(--surface); color: var(--text); }
textarea.editor { border-radius: 0 0 12px 12px; min-height: 520px; font-family: "JetBrains Mono", Consolas, monospace; font-size: .9rem; line-height: 1.6; tab-size: 4; }
textarea.editor.drag { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.preview { border: 1px solid var(--border); border-radius: 0 0 12px 12px; padding: 20px 24px; min-height: 520px; background: var(--bg-2); }
.img-prev { margin-top: .6rem; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.img-prev img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.inline-in { display: flex; gap: .5rem; }
.inline-in input { flex: 1; }
.msg-body { white-space: pre-wrap; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.2rem; margin: 1rem 0; }
.upl-status { font-size: .85rem; color: var(--muted); margin-left: .6rem; }
