/* VTAF topluluk sitesi. Tasarım dili: "Group and Community Social Media UI Kit" (koyu tema, Poppins + Roboto) */
:root {
  --bg: #13131a;
  --surface: #1c1c24;
  --surface-2: #292932;
  --surface-3: #34343f;
  --border: #292932;
  --text: #fafafb;
  --text-2: #d5d5dc;
  --muted: #92929d;
  --subtle: #b5b5be;
  --primary: #0062ff;
  --primary-hover: #0050d4;
  --primary-soft: rgba(0, 98, 255, .16);
  --red: #fc5a5a;
  --red-soft: rgba(252, 90, 90, .15);
  --green: #82c43c;
  --green-soft: rgba(130, 196, 60, .15);
  --orange: #ff974a;
  --orange-soft: rgba(255, 151, 74, .15);
  --purple: #7959ff;
  --purple-soft: rgba(121, 89, 255, .16);
  --radius: 15px;
  --radius-sm: 10px;
  --top-h: 80px;
  --left-w: 250px;
  --right-w: 300px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: Roboto, "Segoe UI", system-ui, sans-serif; font-size: 15px; line-height: 1.55;
}
h1, h2, h3, .brand, .btn, .nav-link, .tab, .stat-n, .card-title { font-family: Poppins, "Segoe UI", system-ui, sans-serif; }
h1 { font-size: 1.5rem; margin: 0 0 4px; font-weight: 600; line-height: 1.3; }
h2 { font-size: 1rem; margin: 0; font-weight: 500; }
h3 { font-size: .95rem; margin: 0; font-weight: 500; }
p { margin: 0 0 8px; }
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
.link { color: #4d94ff; }
.link:hover { text-decoration: underline; color: #6aa6ff; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.xs { font-size: .75rem; }
.grow { flex: 1; min-width: 0; }
.nowrap { white-space: nowrap; }
.icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: -4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Üst çubuk ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--top-h);
  display: flex; align-items: center; gap: 24px; padding: 0 24px;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 12px; width: calc(var(--left-w) - 24px); font-size: 1.3rem; font-weight: 600; flex-shrink: 0; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.top-search { flex: 1; min-width: 0; max-width: 500px; position: relative; }
.top-search input { width: 100%; height: 50px; padding: 0 48px 0 18px; border-radius: var(--radius-sm); border: 0; background: var(--surface-2); color: var(--text); font: inherit; }
.top-search .icon { position: absolute; right: 16px; top: 15px; color: var(--muted); pointer-events: none; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.top-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.topbar .menu-btn { display: none; }

/* ---------- Düzen ---------- */
.shell { display: grid; grid-template-columns: var(--left-w) minmax(0, 1fr) var(--right-w); min-height: calc(100vh - var(--top-h)); }
.shell-bare { display: block; }
.left, .right { background: var(--surface); padding: 20px 10px; position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); overflow-y: auto; }
.left { border-right: 1px solid var(--border); }
.right { border-left: 1px solid var(--border); padding: 24px 20px; }
.main { padding: 30px 30px 60px; min-width: 0; }
.main-narrow { max-width: 760px; margin: 0 auto; }

.me-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 24px; border: 1px solid var(--surface-3); border-radius: var(--radius-sm); background: var(--surface-2); }
.me-card img { width: 40px; height: 40px; border-radius: 50%; }
.me-card strong { display: block; font-family: Poppins, sans-serif; font-weight: 500; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-link { display: flex; align-items: center; gap: 16px; padding: 12px 14px; border-radius: var(--radius-sm); color: var(--subtle); font-size: .95rem; }
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.nav-link.active { background: var(--primary-soft); color: #fff; }
.nav-link.active .icon { color: #4d94ff; }
.nav-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--red); color: #fff; font-size: .75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.nav-title { color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 24px 14px 10px; }
.nav-sep { height: 1px; background: var(--border); margin: 14px 8px; }

/* Sağ sütun */
.side-block { margin-bottom: 28px; }
.side-title { color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 14px; display: flex; justify-content: space-between; align-items: center; }
.side-title a { letter-spacing: 0; text-transform: none; font-weight: 500; }
.person { display: flex; align-items: center; gap: 12px; padding: 7px 0; }
.person img, .person .avatar-text { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.person-name { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot-online { width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.voice-room { margin-bottom: 12px; }
.voice-room-name { font-size: .8rem; color: var(--subtle); margin-bottom: 6px; display: flex; gap: 6px; align-items: center; }
.avatar-row { display: flex; flex-wrap: wrap; gap: 6px; }
.avatar-row img { width: 30px; height: 30px; border-radius: 50%; }

/* ---------- Kartlar ---------- */
.card { background: var(--surface); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.card-flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h2 { font-size: 1rem; }
.card-title { font-weight: 500; font-size: 1rem; }
.see-all { font-family: Poppins, sans-serif; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text); }
.see-all:hover { color: #4d94ff; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 14px; }
.section-title h2 { font-size: 1.1rem; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head p { color: var(--muted); max-width: 70ch; margin: 0; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.empty { text-align: center; color: var(--muted); padding: 30px 16px; }
.empty .icon { width: 36px; height: 36px; color: var(--surface-3); margin-bottom: 8px; }

/* ---------- Düğmeler ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px;
  border: 0; border-radius: var(--radius-sm); font-size: .85rem; font-weight: 500; cursor: pointer; white-space: nowrap;
  background: var(--surface-3); color: var(--text);
}
.btn:hover { filter: brightness(1.15); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); filter: none; }
.btn-ghost { background: transparent; border: 1px solid var(--surface-3); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger-ghost { background: transparent; border: 1px solid rgba(252, 90, 90, .5); color: var(--red); }
.btn-success { background: var(--green); color: #fff; }
.btn-sm { height: 32px; padding: 0 12px; font-size: .8rem; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-discord { background: #5865f2; color: #fff; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--subtle); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: #fff; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; margin: 0; }

/* ---------- Etiketler ---------- */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 500; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.pill-blue { background: var(--primary-soft); color: #6aa6ff; }
.pill-green { background: var(--green-soft); color: var(--green); }
.pill-red { background: var(--red-soft); color: var(--red); }
.pill-orange { background: var(--orange-soft); color: var(--orange); }
.pill-purple { background: var(--purple-soft); color: #a590ff; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.class-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 8px; background: var(--surface-2); font-size: .8rem; }
.class-chip.need { background: var(--orange-soft); color: var(--orange); }
.class-chip.full { background: var(--green-soft); color: var(--green); }
.game-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; font-size: 22px; flex-shrink: 0; background: var(--surface-2); }
.game-icon-sm { width: 28px; height: 28px; border-radius: 8px; font-size: 14px; }
.game-icon-lg { width: 96px; height: 96px; border-radius: 24px; font-size: 48px; }
.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-32 { width: 32px; height: 32px; }
.avatar-40 { width: 40px; height: 40px; }
.avatar-48 { width: 48px; height: 48px; }

/* ---------- Karşılama (giriş yapmamış) ---------- */
.landing { max-width: 1100px; margin: 0 auto; padding: 60px 24px; }
.landing-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; margin-bottom: 60px; }
.landing-hero h1 { font-size: 2.6rem; line-height: 1.15; margin-bottom: 16px; }
.landing-hero h1 span { color: #4d94ff; }
.landing-hero p { font-size: 1.05rem; color: var(--subtle); margin-bottom: 28px; }
.landing-art { background: linear-gradient(135deg, #0062ff 0%, #7959ff 55%, #fc5a5a 100%); border-radius: 24px; padding: 28px; min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; }
.landing-art img { position: absolute; top: 28px; left: 28px; width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.landing-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.landing-stats div { background: rgba(0, 0, 0, .28); border-radius: 12px; padding: 12px; text-align: center; }
.landing-stats strong { display: block; font-family: Poppins, sans-serif; font-size: 1.3rem; }
.landing-stats span { font-size: .75rem; color: rgba(255, 255, 255, .8); }
.feature-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: var(--surface); border-radius: var(--radius); padding: 24px; }
.feature-card .icon { width: 28px; height: 28px; color: #4d94ff; margin-bottom: 12px; }
.feature-card h3 { margin-bottom: 6px; font-size: 1.05rem; }
.feature-card p { color: var(--muted); margin: 0; font-size: .92rem; }

/* ---------- Durum ekranları (başvuru, bekleme) ---------- */
.status-box { max-width: 560px; margin: 40px auto; text-align: center; }
.status-box .big-icon { width: 80px; height: 80px; border-radius: 24px; display: inline-flex; align-items: center; justify-content: center; font-size: 40px; background: var(--surface-2); margin-bottom: 18px; }

/* ---------- Kapak ve başlık (ekip, oyun, profil) ---------- */
.cover { height: 200px; border-radius: var(--radius); background: linear-gradient(135deg, var(--c1, #0062ff), var(--c2, #7959ff)); position: relative; margin-bottom: 70px; }
.cover-avatar { position: absolute; left: 30px; bottom: -56px; width: 124px; height: 124px; border-radius: 30px; border: 6px solid var(--bg); background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 56px; overflow: hidden; }
.cover-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
/* Yüklenen kapak kırpıldığı oranda (3:1) gösterilir: kırpma penceresinde görülen alan aynen görünür */
.cover.has-img { height: auto; aspect-ratio: 3 / 1; }
.profile-cover-field { margin-bottom: 20px; }
.profile-cover-field .image-field { max-width: 720px; }
.game-icon.has-img { overflow: hidden; background: var(--surface-2); }
.game-icon img { width: 100%; height: 100%; object-fit: cover; }
.cover-avatar.round { border-radius: 50%; }
.cover-actions { position: absolute; right: 20px; top: 20px; display: flex; gap: 8px; }
.cover-actions .btn-ghost { border-color: rgba(255, 255, 255, .7); background: rgba(0, 0, 0, .15); }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: -50px 0 24px 170px; min-height: 50px; }
.head-row h1 { margin: 0; }
.stats-row { display: flex; gap: 30px; }
.stat { text-align: center; }
.stat-n { display: block; font-size: 1.1rem; font-weight: 600; }
.stat-l { font-size: .8rem; color: var(--muted); }
.two-col { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 20px; align-items: start; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; margin: 0; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.about { white-space: pre-wrap; color: var(--text-2); overflow-wrap: anywhere; }
.account-chip { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: .88rem; min-width: 0; }
.account-chip .mark { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; color: #fff; flex-shrink: 0; }
.account-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.accounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }

/* ---------- Listeler ---------- */
.row-list { display: flex; flex-direction: column; }
.row-item { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--border); }
.row-item:first-child { border-top: 0; }
.row-item:hover { background: rgba(255, 255, 255, .02); }
.row-main { flex: 1; min-width: 0; }
.row-main strong { font-family: Poppins, sans-serif; font-weight: 500; }
.row-sub { color: var(--muted); font-size: .82rem; }
.tile { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border-radius: var(--radius); padding: 20px; border: 1px solid transparent; }
a.tile:hover { border-color: var(--surface-3); color: inherit; }
.tile-head { display: flex; align-items: center; gap: 14px; }
.tile-head strong { font-family: Poppins, sans-serif; font-weight: 500; font-size: 1rem; display: block; }
.tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 14px; }
.member-card { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--surface); border-radius: var(--radius-sm); }
.member-card:hover { background: var(--surface-2); color: inherit; }
.member-card > img { width: 48px; height: 48px; border-radius: 50%; }
/* Üye kartında oynadığı oyunlar: ikon (ya da emoji) + ad */
.game-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 2px 8px 2px 2px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-icon-xs { width: 18px; height: 18px; border-radius: 50%; font-size: 10px; }
.faces { display: flex; }
.faces img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--surface); margin-left: -8px; }
.faces img:first-child { margin-left: 0; }

/* İlan kartı */
.post { background: var(--surface); border-radius: var(--radius); padding: 18px 20px; border-left: 4px solid var(--primary); }
.post.kind-ekip { border-left-color: var(--purple); }
.post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--subtle); font-size: .85rem; margin: 10px 0; }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-meta .icon { width: 16px; height: 16px; color: var(--muted); }
.post-note { background: var(--surface-2); border-radius: 8px; padding: 8px 12px; font-size: .9rem; color: var(--text-2); overflow-wrap: anywhere; }
.post-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.post.closed { opacity: .6; }
.responses { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 10px; }
.responses .person { gap: 10px; }

/* ---------- Sekmeler ---------- */
/* Dar ekranda yana kayar, kaydırma çubuğu gizli. Alt çizgi gölgeyle çizilir: sekmenin mavi çizgisi onun üstüne biner
   ama kutudan taşmaz (taşınca sağda gereksiz dikey kaydırma çubuğu çıkıyordu). */
.tabs { display: flex; gap: 6px; box-shadow: inset 0 -1px 0 var(--border); margin-bottom: 20px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font-size: .92rem; font-weight: 500; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"], .tab.active { color: #fff; border-bottom-color: var(--primary); }
.tab-count { background: var(--surface-2); border-radius: 999px; padding: 0 8px; font-size: .72rem; }
.tab[aria-selected="true"] .tab-count { background: var(--primary); }
.tab-panel[hidden] { display: none !important; }
.chips-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--surface); color: var(--subtle); font-size: .85rem; border: 1px solid var(--surface-2); }
.chip-link:hover { color: #fff; border-color: var(--surface-3); }
.chip-link.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Formlar ---------- */
.form label { display: block; font-size: .88rem; font-weight: 500; margin-bottom: 16px; color: var(--text-2); }
.form label > input, .form label > select, .form label > textarea { margin-top: 6px; }
input[type="text"], input[type="search"], input[type="number"], input[type="url"], select, textarea {
  display: block; width: 100%; padding: 11px 14px; background: var(--surface-2); color: var(--text);
  border: 1px solid transparent; border-radius: var(--radius-sm); font: inherit; font-size: .92rem;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); }
textarea { resize: vertical; min-height: 90px; }
input[type="color"] { display: block; width: 56px; height: 44px; padding: 4px; margin-top: 6px; border: 0; border-radius: var(--radius-sm); background: var(--surface-2); cursor: pointer; }
.hint { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; margin-top: 6px; }
/* Üstten hizalı: bir alanın altındaki açıklama (hint) yanındaki alanları aşağı itmez */
.row { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.row > label { flex: 1; min-width: 160px; }
.row > label.fixed { flex: 0 0 auto; min-width: 0; }

/* ---------- Emoji seçici ve görsel yükleme (panel.js; style.css'te de aynısı) ---------- */
.emoji-source { display: none !important; }
.emoji-label { flex: 0 0 auto !important; min-width: 0 !important; }
.emoji-btn { display: flex; align-items: center; justify-content: center; width: 56px; height: 44px; margin-top: 6px; border: 1px solid transparent; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.emoji-btn:hover, .emoji-btn[aria-expanded="true"] { border-color: var(--primary); }
.emoji-btn .emoji-empty { font-size: 15px; font-family: Roboto, sans-serif; }
.emoji-picker { position: fixed; z-index: 1000; width: 324px; max-width: calc(100vw - 16px); padding: 8px; background: var(--surface); border: 1px solid var(--surface-3); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.emoji-tabs { display: flex; gap: 2px; padding-bottom: 6px; border-bottom: 1px solid var(--surface-3); }
.emoji-tab { flex: 1; padding: 5px 0; border: 0; border-radius: 8px; background: none; font-size: 18px; cursor: pointer; opacity: .5; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.emoji-tab.active, .emoji-tab:hover { opacity: 1; background: var(--surface-2); }
.emoji-set-title { margin: 8px 4px 4px; color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; max-height: 212px; overflow-y: auto; }
.emoji-cell { padding: 6px 0; border: 0; border-radius: 8px; background: none; font-size: 22px; line-height: 1.1; cursor: pointer; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.emoji-cell:hover, .emoji-cell:focus-visible, .emoji-cell.current { background: var(--surface-2); }
.emoji-cell.current { outline: 2px solid var(--primary); outline-offset: -2px; }
.emoji-foot { display: flex; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--surface-3); }
.emoji-foot input { flex: 1; min-width: 0; margin: 0 !important; padding: 7px 10px; }
.emoji-tip { margin: 6px 4px 0; color: var(--muted); font-size: .72rem; }

.image-fields { display: grid; grid-template-columns: 184px minmax(0, 1fr); gap: 20px; margin: 4px 0 18px; }
.image-field { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.image-field-wide { align-items: stretch; }
.image-field-label { font-size: .88rem; font-weight: 500; }
.image-preview { display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--surface-3); }
.image-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.image-preview-icon { width: 128px; height: 128px; border-radius: 26px; font-size: 56px; }
.image-preview-cover { width: 100%; aspect-ratio: 3 / 1; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--c1, #0062ff), #1c1c24); }
.image-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.form label.file-btn, .file-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; margin: 0; overflow: hidden; cursor: pointer; }
.file-btn input[type="file"] { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.image-field .hint { margin: 0; }
@media (max-width: 640px) { .image-fields { grid-template-columns: 1fr; } }
/* Görsel kırpma penceresi (panel.js cropImage) */
.crop-dialog { width: min(760px, calc(100vw - 24px)); max-width: none; max-height: calc(100vh - 24px); padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); overflow: auto; }
.crop-dialog::backdrop { background: rgba(0, 0, 0, .7); }
.crop-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.crop-head h2 { margin: 0; font-size: 1.1rem; }
.crop-x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }
.crop-view { position: relative; width: 100%; margin: 0 auto; overflow: hidden; border-radius: var(--radius-sm); background: #000 repeating-conic-gradient(#1b1b1f 0% 25%, #111114 0% 50%) 50% / 20px 20px; cursor: grab; touch-action: none; user-select: none; outline: none; }
.crop-view.crop-square { width: min(380px, 100%); }
.crop-view:focus-visible { box-shadow: 0 0 0 2px var(--primary); }
.crop-view.dragging { cursor: grabbing; }
.crop-view img { position: absolute; top: 0; left: 0; max-width: none; max-height: none; transform-origin: 0 0; pointer-events: none; }
.crop-grid { position: absolute; inset: 0; pointer-events: none; border: 2px solid rgba(255, 255, 255, .85); border-radius: inherit;
  background:
    linear-gradient(to right, transparent calc(33.33% - .5px), rgba(255, 255, 255, .35) calc(33.33% - .5px), rgba(255, 255, 255, .35) calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255, 255, 255, .35) calc(66.66% - .5px), rgba(255, 255, 255, .35) calc(66.66% + .5px), transparent calc(66.66% + .5px)),
    linear-gradient(to bottom, transparent calc(33.33% - .5px), rgba(255, 255, 255, .35) calc(33.33% - .5px), rgba(255, 255, 255, .35) calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255, 255, 255, .35) calc(66.66% - .5px), rgba(255, 255, 255, .35) calc(66.66% + .5px), transparent calc(66.66% + .5px)); }
.crop-zoom { display: flex; align-items: center; gap: 10px; max-width: 420px; margin: 14px auto 0; }
.crop-zoom input[type="range"] { flex: 1; accent-color: var(--primary); }
.crop-zoom-btn { width: 32px; height: 32px; flex-shrink: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--surface-2); color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; }
.crop-hint { margin: 10px 0 0; color: var(--muted); font-size: .8rem; text-align: center; }
.crop-actions { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.crop-actions .grow { flex: 1; }
.check { display: flex !important; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 400 !important; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-bottom: 16px; }
.check-tile { display: flex !important; align-items: center; gap: 10px; padding: 10px 12px; margin: 0 !important; border-radius: var(--radius-sm); background: var(--surface-2); cursor: pointer; border: 1px solid transparent; font-weight: 400 !important; }
.check-tile:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.check-tile input { accent-color: var(--primary); }
.form .count-item, .form .check-tile, .form .check { margin-bottom: 0; }
.form .count-item { display: flex; }
.form .count-item input, .form .check-tile input, .form .check input { margin-top: 0; }
.form label.check { margin-bottom: 16px; }
@media (max-width: 860px) { .hide-sm { display: none; } }
.count-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 6px 0 16px; }
.count-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 6px 12px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: .88rem; }
.count-item input { width: 58px; padding: 6px 8px; text-align: center; background: var(--surface-3); }
fieldset.plain { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
fieldset.plain legend { font-size: .88rem; font-weight: 500; color: var(--text-2); padding: 0; margin-bottom: 6px; }
.form-foot { display: flex; gap: 10px; justify-content: flex-end; align-items: center; padding-top: 16px; border-top: 1px solid var(--border); margin-top: 8px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.filters select, .filters input[type="search"] { width: auto; min-width: 170px; padding: 9px 12px; }
.filters .grow input { width: 100%; }

/* ---------- Pencereler ---------- */
dialog.dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; padding: 24px; border: 1px solid var(--surface-3); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
dialog.dialog-lg { width: min(760px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(10, 10, 14, .75); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dialog-head h2 { font-size: 1.15rem; }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; margin-top: 8px; }

/* ---------- Bildirimler ---------- */
.flash { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .92rem; }
.flash-success { background: var(--green-soft); color: #b5e38a; }
.flash-error { background: var(--red-soft); color: #ffb0b0; }
.flash-close { background: none; border: 0; color: inherit; font-size: 1.2rem; cursor: pointer; }
.notice { background: var(--orange-soft); color: #ffc79d; border-radius: var(--radius-sm); padding: 12px 16px; font-size: .9rem; margin-bottom: 16px; }

/* ---------- Gönderiler (Keşfet akışı) ---------- */
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; color: var(--muted); font-size: .88rem; }
.back-link:hover { color: var(--text); }
.back-link .icon { width: 16px; height: 16px; }
.avatar-24 { width: 24px; height: 24px; }
.feed-filters { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.feed-filters .chips { display: flex; gap: 8px; flex-wrap: wrap; }
.feed-game-filter select { width: auto; min-width: 170px; padding: 8px 12px; }
.notice-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -6px 0 16px; color: var(--subtle); font-size: .9rem; }
.feed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 20px; }
.feed-grid-sm { grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }
.feed-card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid transparent; border-radius: var(--radius); color: inherit; transition: border-color .15s, transform .15s; }
.feed-card:hover { border-color: var(--surface-3); color: inherit; transform: translateY(-2px); }
.feed-card.pinned { border-color: rgba(255, 151, 74, .45); }
.feed-card-img { aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.feed-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.feed-card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 16px 18px; min-width: 0; }
.feed-card-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.feed-card-title { margin: 0; font-size: 1.02rem; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feed-card-text { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feed-card.no-img .feed-card-text { -webkit-line-clamp: 5; }
.feed-card-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); min-width: 0; }
.feed-card-author { font-size: .85rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-card-count { display: inline-flex; align-items: center; gap: 4px; }
.feed-card-count .icon { width: 15px; height: 15px; }
.tag-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 500; white-space: nowrap; background: color-mix(in srgb, var(--tag) 18%, transparent); color: color-mix(in srgb, var(--tag) 70%, #fff); }
a.tag-pill:hover, a.game-chip:hover { filter: brightness(1.2); }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 24px 0 0; }

.post-article { padding: 26px 28px; }
.post-article.pinned { box-shadow: inset 0 3px 0 var(--orange); }
.post-title { margin: 12px 0 16px; font-size: 1.6rem; line-height: 1.25; overflow-wrap: anywhere; }
.post-byline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
/* Gönderi görseli sınırlı boyutta (en fazla 640×360); tıklayınca tam boyutu yeni sekmede açılır */
.post-image-link { display: block; width: 100%; max-width: 640px; margin-bottom: 20px; }
.post-image { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-2); cursor: zoom-in; }
.post-admin { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 24px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); }
.post-admin-label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-right: 4px; }
.post-admin-label .icon { width: 16px; height: 16px; }
.prose { color: var(--text-2); line-height: 1.7; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p { margin: 0 0 14px; }
.prose h2, .prose h3, .prose h4 { color: var(--text); margin: 22px 0 10px; line-height: 1.3; }
.prose h2 { font-size: 1.3rem; }
.prose h3 { font-size: 1.12rem; }
.prose h4 { font-size: 1rem; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose blockquote { margin: 0 0 14px; padding: 8px 14px; border-left: 3px solid var(--surface-3); color: var(--subtle); background: rgba(255, 255, 255, .02); border-radius: 0 8px 8px 0; }
.prose code { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); font-family: Consolas, "Cascadia Mono", monospace; font-size: .88em; }
.prose pre { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: #0e0e13; overflow-x: auto; }
.prose pre code { padding: 0; background: none; font-size: .85rem; }
.prose a { color: #4d94ff; text-decoration: underline; text-underline-offset: 2px; }
.prose-sm { font-size: .92rem; line-height: 1.6; }
.prose-sm p { margin-bottom: 8px; }

.comments { display: flex; flex-direction: column; }
.comment { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); }
.comment:first-child { border-top: 0; padding-top: 0; }
.comment-main { min-width: 0; }
.comment-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.comment-del { margin-left: auto; }
.comment-del .icon-btn { width: 30px; height: 30px; }
.comment-del .icon { width: 15px; height: 15px; }
.comment-form { display: flex; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.comment-form textarea { margin: 0; min-height: 70px; }

.compose fieldset.compose-tags { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.compose-tags legend { font-size: .88rem; font-weight: 500; color: var(--text-2); padding: 0; margin-bottom: 8px; }
.compose-tags .check-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: 0; }
.tag-tile:has(input:checked) { border-color: var(--tag); background: color-mix(in srgb, var(--tag) 16%, transparent); }
.tag-tile input { accent-color: var(--tag); }
/* Zengin metin editörü (Quill "snow" teması, koyu renklere uyarlanmış) */
.rich-editor { margin-bottom: 18px; }
.field-label { display: block; font-size: .88rem; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.rich-editor .ql-toolbar.ql-snow { position: sticky; top: var(--top-h); z-index: 5; display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; border: 1px solid var(--surface-3); border-bottom: 0; border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: var(--surface-2); font-family: inherit; }
.rich-editor .ql-toolbar.ql-snow .ql-formats { margin-right: 6px; padding-right: 6px; border-right: 1px solid var(--surface-3); }
.rich-editor .ql-toolbar.ql-snow .ql-formats:last-child { border-right: 0; }
.rich-editor .ql-snow .ql-stroke { stroke: var(--subtle); }
.rich-editor .ql-snow .ql-fill, .rich-editor .ql-snow .ql-stroke.ql-fill { fill: var(--subtle); }
.rich-editor .ql-snow .ql-picker { color: var(--subtle); }
.rich-editor .ql-snow.ql-toolbar button { border-radius: 6px; }
.rich-editor .ql-snow.ql-toolbar button:hover, .rich-editor .ql-snow.ql-toolbar button.ql-active, .rich-editor .ql-snow.ql-toolbar .ql-picker-label:hover, .rich-editor .ql-snow.ql-toolbar .ql-picker-label.ql-active { background: var(--surface-3); }
.rich-editor .ql-snow.ql-toolbar button:hover .ql-stroke, .rich-editor .ql-snow.ql-toolbar button.ql-active .ql-stroke, .rich-editor .ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke, .rich-editor .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke { stroke: #4d94ff; }
.rich-editor .ql-snow.ql-toolbar button:hover .ql-fill, .rich-editor .ql-snow.ql-toolbar button.ql-active .ql-fill { fill: #4d94ff; }
.rich-editor .ql-snow.ql-toolbar .ql-picker-label:hover, .rich-editor .ql-snow.ql-toolbar .ql-picker-label.ql-active, .rich-editor .ql-snow.ql-toolbar .ql-picker-item:hover, .rich-editor .ql-snow.ql-toolbar .ql-picker-item.ql-selected { color: #4d94ff; }
.rich-editor .ql-snow .ql-picker-options { background: var(--surface); border: 1px solid var(--surface-3) !important; border-radius: 8px; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.rich-editor .ql-snow .ql-color-picker .ql-picker-item { border: 1px solid var(--surface-3); border-radius: 4px; width: 20px; height: 20px; }
.rich-editor .ql-snow .ql-color-picker .ql-picker-options { width: 172px; }
.rich-editor .ql-snow .ql-picker.ql-header { width: 110px; }
.rich-editor .ql-snow .ql-picker.ql-header .ql-picker-label::before, .rich-editor .ql-snow .ql-picker.ql-header .ql-picker-item::before { content: 'Metin'; }
.rich-editor .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before, .rich-editor .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before { content: 'Başlık'; }
.rich-editor .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before, .rich-editor .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before { content: 'Alt başlık'; }
.rich-editor .ql-container.ql-snow { border: 1px solid var(--surface-3); border-radius: 0 0 var(--radius-sm) var(--radius-sm); background: var(--surface-2); font-family: inherit; font-size: .95rem; }
.rich-editor .ql-editor { min-height: 300px; max-height: 70vh; overflow-y: auto; padding: 16px 18px; color: var(--text-2); line-height: 1.7; }
.rich-editor .ql-editor.ql-blank::before { color: var(--muted); font-style: normal; left: 18px; right: 18px; }
.rich-editor .ql-editor h2 { font-size: 1.3rem; color: var(--text); margin: 14px 0 8px; }
.rich-editor .ql-editor h3 { font-size: 1.12rem; color: var(--text); margin: 12px 0 6px; }
.rich-editor .ql-editor img { max-width: 100%; max-height: 360px; border-radius: 8px; margin: 6px 0; }
.rich-editor .ql-editor blockquote { border-left: 3px solid var(--surface-3); padding-left: 12px; color: var(--subtle); }
.rich-editor .ql-editor pre.ql-syntax, .rich-editor .ql-editor .ql-code-block-container { background: #0e0e13; color: var(--text-2); border-radius: 8px; padding: 10px 12px; font-family: Consolas, "Cascadia Mono", monospace; font-size: .85rem; }
.rich-editor .ql-editor a { color: #4d94ff; }
.rich-editor .ql-editor .ql-video { display: block; width: 100%; max-width: 560px; aspect-ratio: 16 / 9; height: auto; border-radius: 8px; margin: 6px 0; }
.rich-editor .ql-snow .ql-tooltip { z-index: 6; background: var(--surface); color: var(--text); border: 1px solid var(--surface-3); border-radius: 8px; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.rich-editor .ql-snow .ql-tooltip input[type="text"] { width: 240px; height: 30px; padding: 4px 8px; margin: 0 6px; background: var(--surface-2); color: var(--text); border: 1px solid var(--surface-3); border-radius: 6px; }
.rich-editor .ql-snow .ql-tooltip::before { content: 'Adres:'; color: var(--muted); }
.rich-editor .ql-snow .ql-tooltip[data-mode="link"]::before { content: 'Bağlantı:'; }
.rich-editor .ql-snow .ql-tooltip[data-mode="video"]::before { content: 'YouTube adresi:'; }
.rich-editor .ql-snow .ql-tooltip a.ql-action::after { content: 'Düzenle'; color: #4d94ff; }
.rich-editor .ql-snow .ql-tooltip a.ql-remove::before { content: 'Kaldır'; color: var(--red); }
.rich-editor .ql-snow .ql-tooltip.ql-editing a.ql-action::after { content: 'Kaydet'; }
.rich-editor .ql-snow .ql-tooltip a.ql-preview { color: #4d94ff; max-width: 220px; }
.rich-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.rich-foot .hint { margin: 0; }
.error-text { color: var(--red) !important; }
.link-btn { padding: 0; border: 0; background: none; color: #4d94ff; font: inherit; cursor: pointer; text-decoration: underline; }

/* Yazı tipleri (editörde ve gösterimde aynı) */
.ql-font-poppins { font-family: Poppins, sans-serif; }
.ql-font-serif { font-family: Georgia, "Times New Roman", serif; }
.ql-font-monospace { font-family: Consolas, "Cascadia Mono", monospace; }
.rich-editor .ql-snow .ql-picker.ql-font { width: 118px; }
.rich-editor .ql-snow .ql-picker.ql-font .ql-picker-label::before, .rich-editor .ql-snow .ql-picker.ql-font .ql-picker-item::before { content: 'Normal yazı'; }
.rich-editor .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="poppins"]::before, .rich-editor .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="poppins"]::before { content: 'Başlık yazısı'; font-family: Poppins, sans-serif; }
.rich-editor .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="serif"]::before, .rich-editor .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="serif"]::before { content: 'Tırnaklı'; font-family: Georgia, serif; }
.rich-editor .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="monospace"]::before, .rich-editor .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="monospace"]::before { content: 'Daktilo'; font-family: Consolas, monospace; }

/* Yorum editörü: daha küçük, araç çubuğu yapışkan değil */
.rich-compact .ql-toolbar.ql-snow { position: static; }
.rich-compact .ql-editor { min-height: 90px; max-height: 50vh; padding: 12px 14px; }
.rich-compact .ql-editor img { max-height: 220px; }
.rich-compact .rich-foot .btn { margin-left: auto; }
.comment-form { align-items: flex-start; }
.comment-form .rich-editor { margin: 0; min-width: 0; }
/* Quill kutuya %100 yükseklik verir; esnek satırda kartın dışına taşmasın diye içeriğe göre uzasın */
.rich-editor .ql-container { height: auto; }

.prose.prose-sm img { max-height: 280px; }

/* Zengin metin gösterimi (gönderi sayfası) */
.prose-rich p { white-space: pre-wrap; }
.prose-rich p:empty, .prose-rich p:has(> br:only-child) { margin-bottom: 6px; }
.prose-rich img { display: block; max-width: 100%; max-height: 480px; border-radius: var(--radius-sm); margin: 6px 0; cursor: zoom-in; }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-justify { text-align: justify; }
.prose .ql-align-center img { margin-left: auto; margin-right: auto; }
.prose li.ql-indent-1 { margin-left: 1.5em; }
.prose li.ql-indent-2 { margin-left: 3em; }
.prose li.ql-indent-3 { margin-left: 4.5em; }
.prose u { text-underline-offset: 2px; }
.video-embed { position: relative; width: 100%; max-width: 640px; aspect-ratio: 16 / 9; margin: 8px 0 14px; border-radius: var(--radius-sm); overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.compose-image { margin-bottom: 18px; }
.compose-image .image-field { max-width: 400px; }

/* ---------- Ekipler (oyun içi ekip rozetleri) ---------- */
.team-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.team-badges-sm { gap: 4px; margin-top: 6px; }
.team-badge { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 10px 3px 3px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--team) 45%, transparent); background: color-mix(in srgb, var(--team) 14%, var(--surface)); color: color-mix(in srgb, var(--team) 60%, #fff); font-size: .78rem; font-weight: 500; white-space: nowrap; }
a.team-badge:hover { background: color-mix(in srgb, var(--team) 24%, var(--surface)); color: #fff; }
.team-badge-text { overflow: hidden; text-overflow: ellipsis; }
.team-badge-icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: color-mix(in srgb, var(--team) 32%, transparent); font-size: .72rem; }
.team-badge-lead { font-size: .75rem; }
/* Yüklenmiş rozet görseli (emoji yerine) */
.team-badge-icon, .team-hero-icon { overflow: hidden; }
.team-badge-icon img, .team-hero-icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
.team-badge-icon.has-img { background: var(--surface-2); }
.team-badge.clan { border-width: 1.5px; }
.team-badges-sm .team-badge { gap: 4px; padding: 1px 8px 1px 1px; font-size: .7rem; }
.team-badges-sm .team-badge-icon { width: 17px; height: 17px; font-size: .6rem; }
.team-tile { border-top: 3px solid var(--team); }
.team-icon { background: color-mix(in srgb, var(--team) 28%, var(--surface-2)); }
.game-title { display: flex; align-items: center; gap: 10px; }
.team-hero { display: flex; align-items: center; gap: 20px; padding: 24px; margin-bottom: 16px; border-radius: var(--radius); background: linear-gradient(135deg, color-mix(in srgb, var(--team) 26%, var(--surface)), var(--surface) 70%); border: 1px solid color-mix(in srgb, var(--team) 30%, transparent); }
.team-hero h1 { margin: 8px 0 0; font-size: 1.6rem; }
.team-hero-icon { display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px; flex-shrink: 0; border-radius: 24px; background: color-mix(in srgb, var(--team) 35%, var(--surface-2)); font-size: 42px; }
.team-hero-text { margin: 6px 0 0; color: var(--subtle); max-width: 70ch; }
.team-members { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 10px; }
.team-member { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); min-width: 0; }
.team-member.lead { box-shadow: inset 3px 0 0 var(--orange); }
.team-member .person-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-member-actions { display: flex; gap: 2px; }
.team-member-actions .icon-btn { width: 30px; height: 30px; font-size: .85rem; }
.team-member-actions .muted-icon { filter: grayscale(1); opacity: .45; }
.team-member-actions .muted-icon:hover { filter: none; opacity: 1; }
.pick-list { max-height: 50vh; overflow-y: auto; margin: 10px 0; border: 1px solid var(--surface-3); border-radius: var(--radius-sm); }
.pick-title { position: sticky; top: 0; z-index: 1; padding: 8px 12px; background: var(--surface); color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.form label.pick-item, .pick-item { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 12px; border-top: 1px solid var(--border); cursor: pointer; font-weight: 400; }
.pick-item:hover { background: var(--surface-2); }
.pick-item:has(input:checked) { background: var(--primary-soft); }
.pick-item[hidden] { display: none; }
.pick-item input { width: 16px; height: 16px; margin: 0 !important; accent-color: var(--primary); }
.side-team { margin-bottom: 14px; }
.side-team-head { display: flex; align-items: center; gap: 8px; padding: 4px 0; --team: inherit; }
.side-team-head:hover .person-name { color: #fff; }
.side-team-mates { margin: 6px 0 0 30px; }
.side-team-mates img.lead { box-shadow: 0 0 0 2px var(--orange); }
.side-team-mates .more { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: .72rem; }

/* VTAF üyesi (Discord'daki VTAF rolü): avatarda ince halka, adın yanında küçük işaret */
.profile-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vtaf-mark { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--vtaf) 55%, transparent); background: color-mix(in srgb, var(--vtaf) 12%, transparent); color: color-mix(in srgb, var(--vtaf) 75%, #fff); font-family: Poppins, sans-serif; font-size: .78rem; font-weight: 600; letter-spacing: .06em; line-height: 1.2; }
.vtaf-mark img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.profile-edit-btn { margin: -6px 0 20px; }
.cover-avatar.vtaf-ring { box-shadow: 0 0 0 3px var(--vtaf); }

/* ---------- Mobil ---------- */
@media (max-width: 1280px) {
  .shell { grid-template-columns: var(--left-w) minmax(0, 1fr); }
  .right { display: none; }
}
@media (max-width: 1000px) {
  .two-col, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .landing-hero { grid-template-columns: 1fr; }
  .feature-cards { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  :root { --top-h: 64px; }
  .topbar { padding: 0 12px; gap: 10px; }
  .brand { width: auto; font-size: 1.1rem; }
  .brand span { display: none; }
  .top-search input { height: 42px; padding-right: 38px; }
  .top-search .icon { right: 12px; top: 11px; }
  .top-actions { gap: 4px; }
  .top-avatar { width: 34px; height: 34px; }
  .topbar .menu-btn { display: inline-flex; }
  .page-head .actions { width: 100%; }
  .post-foot > * { max-width: 100%; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .left { position: fixed; left: 0; top: var(--top-h); bottom: 0; width: 270px; z-index: 25; transform: translateX(-100%); transition: transform .2s; height: auto; box-shadow: 10px 0 40px rgba(0, 0, 0, .5); }
  body.nav-open .left { transform: none; }
  .main { padding: 18px 16px 40px; }
  .cover { height: 140px; margin-bottom: 60px; }
  .cover-avatar { width: 96px; height: 96px; left: 50%; transform: translateX(-50%); bottom: -48px; font-size: 44px; }
  .head-row { margin: 0 0 20px; justify-content: center; text-align: center; flex-direction: column; align-items: center; }
  .stats-row { gap: 20px; }
  .landing-hero h1 { font-size: 2rem; }
  .landing-stats { grid-template-columns: repeat(2, 1fr); }
  .filters select, .filters input[type="search"] { min-width: 0; width: 100%; }
  .filters > * { flex: 1 1 100%; }
  .row-item { padding: 12px 14px; flex-wrap: wrap; }
  .post-article { padding: 18px 16px; }
  .post-title { font-size: 1.3rem; }
  .feed-game-filter, .feed-game-filter select { width: 100%; }
  .profile-name { justify-content: center; }
  .team-hero { flex-wrap: wrap; padding: 18px; }
  .team-hero-icon { width: 64px; height: 64px; font-size: 32px; border-radius: 18px; }
}

/* ---------- Rol önizleme ("farklı görüntüle"; panel ve sitede aynı) ---------- */
.viewas { position: relative; }
.viewas-toggle { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; white-space: nowrap; user-select: none; }
.viewas-toggle::-webkit-details-marker { display: none; }
.viewas-toggle:hover { background: rgba(255, 255, 255, .08); }
.viewas[open] .viewas-toggle { border-color: #f0b232; }
.viewas-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 300px; max-width: calc(100vw - 32px); padding: 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12); background: #1e1f24; color: #e3e5e8; box-shadow: 0 12px 32px rgba(0, 0, 0, .45); }
.viewas-hint { margin: 0 0 8px; font-size: .78rem; line-height: 1.4; color: #a4a8b0; }
.viewas-filter { width: 100%; box-sizing: border-box; margin-bottom: 8px; padding: 7px 10px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, .14); background: #111214; color: inherit; font: inherit; font-size: .85rem; }
.viewas-list { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.viewas-item { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 6px; font-size: .86rem; cursor: pointer; }
.viewas-item:hover { background: rgba(255, 255, 255, .06); }
.viewas-item input { margin: 0; }
.viewas-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.viewas-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.viewas-btn { width: 100%; margin-top: 6px; padding: 7px 12px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); color: inherit; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.viewas-primary { margin-top: 0; border-color: #5865f2; background: #5865f2; color: #fff; }
.viewas-bar { position: sticky; top: 0; z-index: 55; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 14px; padding: 8px 16px; background: #f0b232; color: #1e1f24; font-size: .88rem; }
.viewas-bar form { margin: 0; }
.viewas-bar button { padding: 4px 12px; border-radius: 6px; border: 0; background: #1e1f24; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 640px) { .viewas-label { display: none; } }
.viewas-item[hidden] { display: none; }

/* Rol önizleme: şerit akışta kalır (açılan liste üstünde görünsün) */
.viewas-bar { position: relative; z-index: 1; }

/* Topluluk sitesi ↔ yönetim paneli geçişi (style.css'te aynısı): logonun hemen yanında */
.panel-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); flex-shrink: 0; }
.panel-switch a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 7px; color: var(--muted); font-size: .85rem; font-weight: 600; white-space: nowrap; }
.panel-switch a:hover { color: var(--text); text-decoration: none; }
.panel-switch a.active { background: var(--primary); color: #fff; }
.panel-switch .icon { width: 16px; height: 16px; }
@media (max-width: 640px) { .panel-switch-label { display: none; } .panel-switch a { padding: 6px 9px; } }
