/* AslanForum — Sarı-Kırmızı tema */
:root {
  --red: #d1102f;
  --red-dark: #8f0a22;
  --yellow: #ffc21a;
  --yellow-soft: #fff3cf;
  --bg: #faf3e8;
  --card: #ffffff;
  --text: #1f1a1c;
  --muted: #7a6f73;
  --border: #e4dbd3;
  --row-alt: #fbf8f5;
  --radius: 8px;
  --link: #c40e2c;
  --ok-bg: #e3f6e8; --ok-text: #17682f; --err-bg: #fde4e8; --err-text: #a90432;
  color-scheme: light;
}
/* Gece modu: sistem ayarı ya da üstteki 🌙 düğmesi */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161214; --card: #221c1f; --text: #f1ebe6; --muted: #a99ca1;
    --border: #3a3034; --row-alt: #1d181a; --yellow-soft: #3a2f12; --link: #ff6b8a;
    --ok-bg: #143322; --ok-text: #7fe0a0; --err-bg: #3d1420; --err-text: #ff8fa6;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #161214; --card: #221c1f; --text: #f1ebe6; --muted: #a99ca1;
  --border: #3a3034; --row-alt: #1d181a; --yellow-soft: #3a2f12; --link: #ff6b8a;
  --ok-bg: #143322; --ok-text: #7fe0a0; --err-bg: #3d1420; --err-text: #ff8fa6;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; font-size: 15px;
  background: var(--bg); color: var(--text); line-height: 1.5; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); font-size: 13px; }
.center { text-align: center; }
h1 { margin: 0 0 4px; font-size: 24px; }

/* Header */
.site-header { background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 60%, #4a0115 100%); color: #fff;
  border-bottom: 4px solid var(--yellow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 28px; }
.logo:hover { text-decoration: none; }
.logo strong { color: var(--yellow); }
.logo small { display: block; font-size: 12px; opacity: .85; letter-spacing: .3px; }
.logo-icon { font-size: 40px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.search input { padding: 9px 14px; border-radius: 20px; border: 0; width: 260px; max-width: 100%; }
.navbar { background: rgba(0,0,0,.25); }
.nav-inner { display: flex; justify-content: space-between; flex-wrap: wrap; }
.navbar a { color: #fff; display: inline-block; padding: 10px 14px; font-weight: 600; font-size: 14px; }
.navbar a:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.nav-cta { background: var(--yellow); color: var(--red-dark) !important; }
.nav-admin { color: var(--yellow) !important; }

main.wrap { padding-top: 20px; padding-bottom: 30px; }
.announcement { background: var(--yellow-soft); border-left: 5px solid var(--yellow); padding: 10px 14px; border-radius: var(--radius); margin-bottom: 16px; }
.flash { padding: 10px 14px; border-radius: var(--radius); margin-bottom: 14px; font-weight: 600; }
.flash.success { background: var(--ok-bg); color: var(--ok-text); }
.flash.error { background: var(--err-bg); color: var(--err-text); }

/* Layout */
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .layout, .grid-2 { grid-template-columns: 1fr; } }

.box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 20px; overflow: hidden; }
.box.narrow { max-width: 440px; margin-left: auto; margin-right: auto; }
.box-head { background: linear-gradient(90deg, var(--red), var(--red-dark)); color: #fff; padding: 10px 16px; font-weight: 700;
  border-bottom: 3px solid var(--yellow); }
.box-body { padding: 16px; }
.box.box-body { padding: 16px; }

.breadcrumb { margin-bottom: 12px; font-size: 14px; color: var(--muted); }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }

/* Tables */
.forum-table { width: 100%; border-collapse: collapse; }
.forum-table th { text-align: left; font-size: 12px; text-transform: uppercase; color: var(--muted); padding: 8px 12px;
  border-bottom: 1px solid var(--border); background: var(--row-alt); }
.forum-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.forum-table tbody tr:hover { background: var(--row-alt); }
.forum-table tr:last-child td { border-bottom: 0; }
.forum-table .icon { width: 50px; font-size: 26px; text-align: center; }
.forum-table .num { width: 90px; text-align: center; }
.forum-table .last { width: 220px; font-size: 14px; }
.forum-name { font-size: 16px; font-weight: 700; }
.topic-title { font-weight: 600; }
tr.pinned { background: var(--yellow-soft); }
.empty { text-align: center; padding: 30px !important; color: var(--muted); }
@media (max-width: 700px) {
  .forum-table .num, .forum-table th.num, .forum-table .last, .forum-table th.last { display: none; }
}

.tag { font-size: 11px; padding: 2px 6px; border-radius: 4px; font-weight: 700; margin-right: 4px; }
.tag-pin { background: var(--yellow); color: var(--red-dark); }
.tag-lock { background: #555; color: #fff; }

/* Sidebar */
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 10px 16px; border-bottom: 1px solid var(--border); }
.list li:last-child { border-bottom: 0; }
.stats { display: flex; justify-content: space-around; text-align: center; }
.stats b { display: block; font-size: 22px; color: var(--red); }
.stats span { font-size: 12px; color: var(--muted); }

/* Badges */
.badge { font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 700; background: #ddd; color: #333; }
.badge.role-admin { background: var(--red); color: var(--yellow); }
.badge.role-moderator { background: var(--yellow); color: var(--red-dark); }
.badge.role-banned { background: #222; color: #fff; }
.role-admin-text { color: var(--red) !important; font-weight: 700; }
.role-moderator-text { color: #c98a00 !important; font-weight: 700; }
.rank { font-size: 12px; color: var(--muted); font-style: italic; }

.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 800; flex-shrink: 0;
  background: linear-gradient(135deg, var(--yellow) 50%, var(--red) 50%); color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }

/* Posts */
.post { display: grid; grid-template-columns: 180px 1fr; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.post-user { background: var(--row-alt); border-right: 1px solid var(--border); padding: 16px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px; }
.post-username { font-weight: 700; font-size: 16px; }
.post-user dl { display: grid; grid-template-columns: auto auto; gap: 2px 6px; margin: 6px 0 0; text-align: left; }
.post-user dt { font-weight: 600; } .post-user dd { margin: 0; }
.post-main { padding: 12px 18px; display: flex; flex-direction: column; min-width: 0; }
.post-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.post-body { padding: 14px 0; flex: 1; overflow-wrap: anywhere; }
.post-body img { max-width: 100%; border-radius: 6px; }
blockquote { margin: 8px 0; padding: 10px 14px; background: var(--row-alt); border-left: 4px solid var(--yellow); border-radius: 4px; }
blockquote cite { display: block; font-weight: 700; font-style: normal; font-size: 13px; color: var(--red); margin-bottom: 4px; }
.signature { border-top: 1px dashed var(--border); padding-top: 8px; font-size: 13px; color: var(--muted); }
.edited { font-size: 12px; font-style: italic; }
.post-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.post-actions form, .mod-tools form { display: inline; }
.mod-tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
@media (max-width: 700px) {
  .post { grid-template-columns: 1fr; }
  .post-user { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--border); text-align: left; padding: 10px; }
  .post-user .avatar { width: 40px !important; height: 40px !important; font-size: 20px !important; }
  .post-user dl { display: none; }
}

.profile-head { display: flex; gap: 20px; align-items: center; }

/* Forms & buttons */
.form label { display: block; margin-bottom: 12px; font-weight: 600; font-size: 14px; }
.form label.check { font-weight: 400; }
input, textarea, select { font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; }
.form input:not([type=checkbox]), .form textarea, .form select { display: block; width: 100%; margin-top: 4px; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--yellow); border-color: var(--yellow); }
.btn { display: inline-block; background: var(--red); color: #fff !important; border: 0; padding: 9px 18px; border-radius: 6px;
  font-weight: 700; cursor: pointer; font-size: 14px; text-decoration: none !important; }
.btn:hover { background: var(--red-dark); }
.btn.block { display: block; width: 100%; text-align: center; margin-bottom: 8px; }
.btn-ghost { background: transparent; color: var(--red) !important; border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--yellow-soft); }
.btn-danger { background: #2b2b2b; }
.btn-danger:hover { background: #000; }
.btn-sm { padding: 4px 10px; font-size: 12px; }

.editor { margin-bottom: 12px; }
.editor-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: var(--row-alt); border: 1px solid var(--border); border-bottom: 0; border-radius: 6px 6px 0 0; }
.editor-bar button { background: var(--card); border: 1px solid var(--border); border-radius: 4px; padding: 4px 8px; cursor: pointer; color: var(--text); }
.editor-bar button:hover { background: var(--yellow-soft); }
.editor textarea { border-radius: 0 0 6px 6px; margin-top: 0 !important; width: 100%; display: block; resize: vertical; }

.pagination { display: flex; gap: 4px; margin: 10px 0 16px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 5px 11px; border: 1px solid var(--border); border-radius: 4px; background: var(--card); font-size: 14px; }
.pagination .current { background: var(--red); color: #fff; border-color: var(--red); }

.site-footer { background: #1a1416; color: #ddd; text-align: center; padding: 20px 0; border-top: 4px solid var(--yellow); font-size: 14px; }
.site-footer p { margin: 4px 0; }

/* ---------- Admin ---------- */
.admin-wrap { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: linear-gradient(180deg, var(--red-dark), #3d0111); padding: 20px 0; border-right: 4px solid var(--yellow); }
.admin-side .logo { padding: 0 20px 20px; font-size: 22px; }
.admin-side .logo-icon { font-size: 30px; }
.admin-side nav a { display: block; color: #fff; padding: 11px 20px; font-weight: 600; font-size: 14px; }
.admin-side nav a:hover, .admin-side nav a.active { background: rgba(255,255,255,.12); text-decoration: none; border-left: 4px solid var(--yellow); padding-left: 16px; }
.admin-main { padding: 24px; min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 16px; }
.stat-card b { display: block; font-size: 28px; color: var(--red); }
.stat-card span { color: var(--muted); font-size: 13px; }
.chart { display: flex; align-items: flex-end; gap: 12px; height: 200px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.bar { width: 100%; max-width: 50px; background: linear-gradient(180deg, var(--yellow), var(--red)); border-radius: 4px 4px 0 0; min-height: 3px; position: relative; }
.bar span { position: absolute; top: -20px; left: 0; right: 0; text-align: center; font-size: 12px; font-weight: 700; }
.bar-col small { margin-top: 6px; color: var(--muted); }
.admin-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.admin-row input { color: var(--text); }
.inline-form { display: flex; gap: 6px; align-items: center; }
.admin-table td { padding: 8px; }
.admin-table td form { display: inline; }
.admin-table input:not([type=checkbox]) { width: 100%; }
.w-xs { width: 70px !important; } .w-lg { min-width: 240px; }
.nowrap { white-space: nowrap; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.banned-row { opacity: .6; }
@media (max-width: 800px) {
  .admin-wrap { grid-template-columns: 1fr; }
  .admin-side { border-right: 0; border-bottom: 4px solid var(--yellow); padding: 12px 0; }
  .admin-side nav { display: flex; flex-wrap: wrap; }
  .admin-side nav a { padding: 8px 12px; }
  .admin-main { padding: 16px; }
  .box { overflow-x: auto; }
}

/* ---------- v2: bildirim, beğeni, mesaj, maç, anket, şikayet ---------- */
.count { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 3px; border-radius: 9px; background: var(--yellow);
  color: var(--red-dark); font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; vertical-align: top; }
.nav-user { display: inline-flex !important; align-items: center; gap: 6px; }
img.avatar { object-fit: cover; background: var(--row-alt); border: 2px solid var(--yellow); }

.like-btn { background: var(--card); color: var(--muted) !important; border: 1px solid var(--border); }
.like-btn:hover:not([disabled]) { background: var(--err-bg); }
.like-btn.liked { background: var(--err-bg); color: var(--err-text) !important; border-color: var(--red); }
.like-btn[disabled] { opacity: .6; cursor: default; }
.post-actions form { display: inline; }

.tabs { display: flex; gap: 4px; margin-bottom: 12px; border-bottom: 2px solid var(--border); }
.tabs a { padding: 8px 16px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a.active { color: var(--red); border-bottom-color: var(--red); }
.tabs a:hover { text-decoration: none; color: var(--red); }
tr.unread td { background: var(--yellow-soft); }

.notif-list li.unread { background: var(--yellow-soft); }
.notif { display: flex; align-items: center; gap: 10px; color: var(--text); }
.notif:hover { text-decoration: none; }
.notif-icon { font-size: 18px; width: 22px; text-align: center; }

.match-box .next-match { padding: 14px 16px; text-align: center; background: linear-gradient(180deg, var(--yellow-soft), transparent); }
.match-box .teams { display: flex; justify-content: center; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; margin: 6px 0; }
.match-box .teams .gs { color: var(--red); }
.match-box .teams b { color: var(--muted); font-size: 12px; }
.match-box .when { font-size: 13px; color: var(--muted); }
.countdown { display: flex; justify-content: center; gap: 6px; margin-top: 10px; font-weight: 700; }
.countdown span { background: var(--red); color: #fff; border-radius: 6px; padding: 4px 8px; font-size: 11px; display: flex; flex-direction: column; min-width: 44px; }
.countdown b { font-size: 18px; color: var(--yellow); }
.small-list { border-top: 1px solid var(--border); font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.result { display: flex; align-items: center; gap: 6px; }
.result .score { margin-left: auto; }
.res { width: 20px; height: 20px; border-radius: 4px; color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.res-w { background: #1e9e4a; } .res-d { background: #888; } .res-l { background: var(--red); }
.match-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.match-form label { display: flex; flex-direction: column; font-size: 13px; font-weight: 600; gap: 4px; }

.poll-row { margin-bottom: 10px; }
.poll-label { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 3px; }
.poll-bar { height: 12px; background: var(--row-alt); border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.poll-bar div { height: 100%; background: linear-gradient(90deg, var(--yellow), var(--red)); }
.poll-row.mine .poll-label { font-weight: 700; color: var(--red); }
.poll-form label { display: block; padding: 6px 0; cursor: pointer; }
.poll-add { margin: 0 0 14px; padding: 10px 14px; border: 1px dashed var(--border); border-radius: 6px; }
.poll-add summary { cursor: pointer; font-weight: 700; margin-bottom: 8px; }

.report-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.report .toolbar form { display: inline; }

/* ---------- v3: rütbe, sohbet kutusu, mobil menü, gece modu ---------- */
.rank-badge { display: inline-block; font-size: 11px; font-weight: 700; font-style: normal; padding: 1px 8px; border: 1px solid; border-radius: 10px; white-space: nowrap; }

.header-tools { display: flex; gap: 6px; align-items: center; }
.icon-btn { background: rgba(255,255,255,.15); border: 0; color: #fff; font-size: 18px; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; position: relative; }
.icon-btn:hover { background: rgba(255,255,255,.25); }
.menu-btn { display: none; }
.menu-btn .dot { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); }

@media (max-width: 760px) {
  .header-inner { padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .logo { font-size: 22px; }
  .logo-icon { font-size: 30px; }
  .logo small { display: none; }
  .search { order: 3; width: 100%; }
  .search input { width: 100%; }
  .menu-btn { display: inline-block; }
  .navbar { display: none; }
  .navbar.open { display: block; }
  .nav-inner, .nav-inner > div { flex-direction: column; display: flex; width: 100%; }
  .navbar a { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-inner > div + div { border-top: 2px solid var(--yellow); }
  main.wrap { padding-top: 12px; }
  h1 { font-size: 20px; }
  .page-head .btn { width: 100%; text-align: center; }
  .forum-table td { padding: 10px 8px; }
  .forum-table .icon { width: 36px; font-size: 20px; }
  .editor-bar .emojis { width: 100%; }
}

.shoutbox .box-head { display: flex; justify-content: space-between; align-items: center; }
.live-dot { color: #7fe0a0 !important; font-size: 11px; }
.shout-list { height: 260px; overflow-y: auto; padding: 8px 12px; display: flex; flex-direction: column; gap: 8px; }
.shout { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.shout .avatar { flex-shrink: 0; }
.shout-user { font-weight: 700; }
.shout-body { overflow-wrap: anywhere; }
.shout-body img { max-width: 160px; max-height: 120px; border-radius: 4px; }
.shout-del { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 11px; opacity: 0; }
.shout:hover .shout-del { opacity: 1; }
.shout-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); }
.shout-form input { flex: 1; min-width: 0; }
@media (hover: none) { .shout-del { opacity: 1; } }

#uploadStatus { min-height: 18px; margin-top: 4px; }
.post-body a img { cursor: zoom-in; }

/* ---------- v4: sohbet yönetimi ---------- */
.shout-pinned { padding: 8px 12px; background: var(--yellow-soft); border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 600; }
.live-dot.off { color: var(--muted) !important; }
.shout-mute { background: none; border: 0; cursor: pointer; font-size: 11px; opacity: 0; padding: 0 2px; }
.shout:hover .shout-mute { opacity: 1; }
@media (hover: none) { .shout-mute { opacity: 1; } }
.admin-table td.shout-body { max-width: 420px; }
.admin-table td.shout-body img { max-width: 120px; max-height: 90px; }

/* ---------- v5: logo + canlı renkler ---------- */
:root { --gold: #f5b82e; --gold-light: #ffe08a; --gold-dark: #b7791f; --crimson: #e3122f; --wine: #5c0014; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Üst bant: parlak kırmızı + ince sarı-kırmızı çapraz desen + altın alt çizgi */
.site-header {
  background:
    repeating-linear-gradient(135deg, rgba(255,194,26,.06) 0 14px, transparent 14px 28px),
    radial-gradient(ellipse at 15% 0%, rgba(255,120,60,.45), transparent 55%),
    linear-gradient(135deg, var(--crimson) 0%, #b80d29 45%, var(--wine) 100%);
  border-bottom: 0; box-shadow: 0 4px 18px rgba(120,0,20,.35); position: relative;
}
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold), var(--gold-light), var(--gold-dark)); }
.header-inner { padding-top: 10px; padding-bottom: 10px; }
.logo-img { display: block; height: 78px; width: auto; filter: drop-shadow(0 3px 8px rgba(0,0,0,.45)); transition: transform .2s; }
.logo:hover .logo-img { transform: scale(1.03); }
.navbar { background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.38)); border-top: 1px solid rgba(255,194,26,.25); }
.navbar a { transition: background .15s, color .15s; }
.navbar a:hover { background: rgba(255,194,26,.16); color: var(--gold-light); }
.nav-cta { background: linear-gradient(180deg, var(--gold-light), var(--gold)) !important; color: var(--wine) !important; }
.nav-admin { color: var(--gold-light) !important; }
.search input { box-shadow: inset 0 1px 3px rgba(0,0,0,.15); border: 2px solid transparent; }
.search input:focus { border-color: var(--gold); outline: 0; }

/* Kutular: canlı başlık, altın çizgi, hafif gölge */
.box { box-shadow: 0 2px 10px rgba(140,10,30,.07); border-color: rgba(209,16,47,.12); }
.box-head { background: linear-gradient(100deg, var(--crimson) 0%, #b30c28 60%, #85081f 100%); border-bottom: 0; position: relative;
  text-shadow: 0 1px 2px rgba(0,0,0,.3); letter-spacing: .2px; }
.box-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold)); }
.forum-table tbody tr:hover { background: var(--yellow-soft); }
.forum-name { color: var(--red); }
.forum-table .icon { filter: saturate(1.3); }

/* Düğmeler: parlak geçiş + ışıltı */
.btn { background: linear-gradient(180deg, #ea1f3c, var(--red) 60%, #b00d27); box-shadow: 0 2px 6px rgba(209,16,47,.35), inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform .1s, box-shadow .15s, filter .15s; }
.btn:hover { background: linear-gradient(180deg, #f2304c, #d81432 60%, #b80e29); box-shadow: 0 4px 12px rgba(209,16,47,.45); filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; box-shadow: none; border-color: rgba(209,16,47,.3); }
.btn-ghost:hover { background: var(--yellow-soft); box-shadow: none; filter: none; }
.btn-danger { background: linear-gradient(180deg, #3a3a3a, #1f1f1f); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.btn-danger:hover { background: #000; }
.like-btn { background: var(--card); box-shadow: none; }

/* Duyuru, rozetler, sayaçlar */
.announcement { background: linear-gradient(90deg, var(--yellow-soft), rgba(255,243,207,.4)); border-left-color: var(--gold); box-shadow: 0 1px 4px rgba(183,121,31,.15); }
.badge.role-admin { background: linear-gradient(180deg, var(--crimson), #a00c25); color: var(--gold-light); }
.badge.role-moderator { background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: var(--wine); }
.count { background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: var(--wine); box-shadow: 0 0 0 2px rgba(0,0,0,.15); }
.avatar { background: linear-gradient(135deg, var(--gold) 50%, var(--crimson) 50%); }
img.avatar { border-color: var(--gold); }
.pagination .current { background: linear-gradient(180deg, #ea1f3c, var(--red)); }
.stats b, .stat-card b { background: linear-gradient(180deg, var(--crimson), #9e0b24); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card { border-top: 4px solid transparent; border-image: linear-gradient(90deg, var(--crimson), var(--gold)) 1; }
.countdown span { background: linear-gradient(180deg, #ea1f3c, #a50c26); box-shadow: 0 2px 6px rgba(209,16,47,.3); }
.countdown b { color: var(--gold-light); }
.res-w { background: linear-gradient(180deg, #2bc061, #178a41); }

/* Alt bilgi */
.site-footer { background: linear-gradient(180deg, #2a0710, #12080b); border-top: 0; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--crimson), var(--gold), var(--crimson)); }

/* Yönetim paneli */
.admin-side { background: linear-gradient(180deg, #b00d28, var(--wine) 70%, #2a0710); border-right: 0; box-shadow: 4px 0 0 var(--gold); }
.admin-logo { flex-direction: column; align-items: flex-start; gap: 4px; }
.admin-logo .logo-img { height: auto; width: 100%; max-width: 200px; }
.admin-logo span { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-light); }

/* Gece modunda da canlı kalsın */
:root[data-theme="dark"] .box, :root[data-theme="dark"] .post { box-shadow: 0 2px 12px rgba(0,0,0,.4); border-color: #3a2a2f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .box { box-shadow: 0 2px 12px rgba(0,0,0,.4); border-color: #3a2a2f; } }

@media (max-width: 760px) {
  .logo-img { height: 52px; }
  .admin-logo .logo-img { max-width: 150px; }
}
/* Logo kırmızı zeminde kaybolmasın: arkası koyu, kenarı belirgin */
.site-header {
  background:
    radial-gradient(ellipse 420px 140px at 170px 50%, rgba(40,0,8,.75), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255,194,26,.06) 0 14px, transparent 14px 28px),
    radial-gradient(ellipse at 60% 0%, rgba(255,120,60,.35), transparent 55%),
    linear-gradient(120deg, #5c0014 0%, #b80d29 35%, var(--crimson) 60%, #8a0920 100%);
}
.logo-img { height: 86px; filter: drop-shadow(0 0 1px rgba(0,0,0,.95)) drop-shadow(0 0 2px rgba(0,0,0,.8)) drop-shadow(0 4px 10px rgba(0,0,0,.55)); }
@media (max-width: 760px) {
  .site-header { background:
    radial-gradient(ellipse 260px 90px at 110px 34px, rgba(40,0,8,.75), transparent 70%),
    linear-gradient(120deg, #5c0014 0%, #b80d29 40%, var(--crimson) 70%, #8a0920 100%); }
  .logo-img { height: 56px; }
}

/* ---------- v6: takım logoları ---------- */
.team-logo { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; vertical-align: middle; object-fit: contain; }
img.team-logo { filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.team-ini { border-radius: 50%; color: #fff; font-weight: 800; letter-spacing: -.5px; border: 2px solid rgba(255,255,255,.85); box-shadow: 0 1px 3px rgba(0,0,0,.3); text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.match-box .teams { gap: 6px; align-items: flex-start; margin: 10px 0 6px; }
.match-box .team { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 14px; min-width: 0; }
.match-box .team span { overflow-wrap: anywhere; line-height: 1.2; }
.match-box .vs { align-self: center; margin-top: -18px; font-size: 13px !important; font-weight: 900; color: var(--gold-dark) !important; background: var(--yellow-soft); border-radius: 50%; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--gold); }
.small-list .result { gap: 6px; }
.fx-date { min-width: 34px; }

/* ---------- v7: turnuva rozetleri + puan durumu ---------- */
.comp-badge { display: inline-block; color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 10px; white-space: nowrap; vertical-align: middle; box-shadow: inset 0 -1px 0 rgba(0,0,0,.2); }
.small-list .comp-badge { font-size: 10px; padding: 0 5px; }
.standings { width: 100%; border-collapse: collapse; font-size: 14px; }
.standings th { font-size: 11px; text-transform: uppercase; color: var(--muted); padding: 6px 8px; text-align: left; border-bottom: 1px solid var(--border); background: var(--row-alt); }
.standings td { padding: 7px 8px; border-bottom: 1px solid var(--border); }
.standings .num, .standings th.num { text-align: center; width: 38px; }
.standings .rk { width: 28px; font-weight: 700; color: var(--muted); text-align: center; }
.standings .tm { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; }
.standings .tm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.standings .pts { font-weight: 800; color: var(--red); }
.standings .form { white-space: nowrap; }
.standings .form .res { width: 18px; height: 18px; font-size: 10px; margin-right: 2px; }
.standings tr.gs-row td { background: linear-gradient(90deg, rgba(255,194,26,.28), rgba(209,16,47,.10)); font-weight: 700; }
.standings tr.gs-row .rk { color: var(--red); }
.standings tr.gap td { text-align: center; color: var(--muted); padding: 2px; }
.standings.compact td { padding: 6px; }
.standings.compact .tm { font-size: 13px; }
.standings tr.z-cl td:first-child { box-shadow: inset 4px 0 0 #1a56db; }
.standings tr.z-el td:first-child { box-shadow: inset 4px 0 0 #f06a00; }
.standings tr.z-rel td:first-child { box-shadow: inset 4px 0 0 #6b6b6b; }
.legend .lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin: 0 4px 0 12px; vertical-align: middle; }
.legend .lg.z-cl { background: #1a56db; } .legend .lg.z-el { background: #f06a00; } .legend .lg.z-rel { background: #6b6b6b; }
.table-scroll { overflow-x: auto; }
.standings-box .small-list { flex-direction: row; justify-content: space-between; }

/* ---------- v8: özel mesajlar (sohbet görünümü) ---------- */
.chat-app { display: grid; grid-template-columns: 320px 1fr; height: calc(100vh - 230px); min-height: 460px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(140,10,30,.07); }
.chat-list { border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; }
.chat-list-head { padding: 12px; background: linear-gradient(100deg, var(--crimson), #85081f); color: #fff; display: flex; flex-direction: column; gap: 8px; }
.chat-new { display: flex; gap: 6px; }
.chat-new input { flex: 1; min-width: 0; border-radius: 16px; border: 0; padding: 6px 12px; }
.chat-convs { overflow-y: auto; flex: 1; }
.conv { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: var(--text); border-bottom: 1px solid var(--border); }
.conv:hover { background: var(--row-alt); text-decoration: none; }
.conv.active { background: var(--yellow-soft); box-shadow: inset 4px 0 0 var(--red); }
.conv.unread .conv-last { color: var(--text); font-weight: 700; }
.conv-av { position: relative; flex-shrink: 0; display: inline-flex; }
.online-dot { position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #22c55e; border: 2px solid var(--card); }
.conv-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.conv-last { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12px; }
.chat-empty { padding: 30px 16px; }
.chat-main { display: flex; flex-direction: column; min-height: 0; min-width: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,194,26,.07), transparent 40%), radial-gradient(circle at 80% 70%, rgba(209,16,47,.06), transparent 45%), var(--bg); }
.chat-placeholder { margin: auto; text-align: center; color: var(--muted); }
.chat-placeholder div { font-size: 64px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--card); border-bottom: 1px solid var(--border); }
.chat-head form { margin-left: auto; }
.chat-who { display: flex; flex-direction: column; line-height: 1.2; }
.chat-back { display: none; font-size: 28px; line-height: 1; padding: 0 6px; color: var(--red); }
.chat-back:hover { text-decoration: none; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.day-sep { text-align: center; margin: 10px 0 6px; }
.day-sep span { background: var(--card); color: var(--muted); font-size: 12px; padding: 3px 10px; border-radius: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.bubble { max-width: min(75%, 520px); padding: 7px 10px 5px; border-radius: 14px; position: relative; box-shadow: 0 1px 2px rgba(0,0,0,.12); overflow-wrap: anywhere; }
.bubble.theirs { align-self: flex-start; background: var(--card); border-top-left-radius: 4px; }
.bubble.mine { align-self: flex-end; background: linear-gradient(180deg, #e8203d, #c40e2c); color: #fff; border-top-right-radius: 4px; }
.bubble.mine a { color: var(--gold-light); }
.bubble .b-body img { max-width: 100%; max-height: 280px; border-radius: 8px; display: block; margin: 2px 0; }
.bubble .b-body blockquote { background: rgba(0,0,0,.12); border-left-color: var(--gold); color: inherit; }
.b-meta { display: block; text-align: right; font-size: 11px; opacity: .7; margin-top: 2px; }
.tick { font-style: normal; letter-spacing: -2px; margin-left: 2px; }
.tick.seen { color: var(--gold-light); opacity: 1; }
.chat-hello { margin: auto; }
.chat-input { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; background: var(--card); border-top: 1px solid var(--border); }
.chat-input textarea { flex: 1; resize: none; border-radius: 20px; padding: 9px 14px; max-height: 140px; line-height: 1.4; }
.chat-attach { background: var(--row-alt) !important; color: var(--text); flex-shrink: 0; }
.chat-send { border-radius: 50%; width: 42px; height: 42px; padding: 0; font-size: 18px; flex-shrink: 0; }
@media (max-width: 760px) {
  .chat-app { grid-template-columns: 1fr; height: calc(100vh - 170px); }
  .chat-app.has-conv .chat-list { display: none; }
  .chat-app:not(.has-conv) .chat-main { display: none; }
  .chat-back { display: inline; }
  .bubble { max-width: 85%; }
}

/* ---------- v9: rütbe resim ikonları ---------- */
.rank-img { height: 16px; width: auto; max-width: 48px; vertical-align: -3px; object-fit: contain; }
.rank-big { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rank-img-big { max-width: 140px; max-height: 64px; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.rank-preview { min-width: 120px; display: flex; justify-content: center; }

/* ---------- v10: logo boyutu orantılı ---------- */
.header-inner { padding-top: 8px; padding-bottom: 8px; }
.logo-img { height: 64px; max-width: 220px; object-fit: contain; }
.site-header { background:
    radial-gradient(ellipse 320px 110px at 140px 50%, rgba(40,0,8,.7), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255,194,26,.06) 0 14px, transparent 14px 28px),
    radial-gradient(ellipse at 60% 0%, rgba(255,120,60,.35), transparent 55%),
    linear-gradient(120deg, #5c0014 0%, #b80d29 35%, var(--crimson) 60%, #8a0920 100%); }
@media (max-width: 760px) {
  .logo-img { height: 46px; max-width: 160px; }
}

/* ---------- v11: gizli alanlar her zaman gizli kalsın ---------- */
[hidden], input[type="file"][hidden] { display: none !important; }

/* ---------- v12: bakım modu ---------- */
.maint-banner { background: repeating-linear-gradient(135deg, #ffc21a 0 16px, #ffd54d 16px 32px); color: #3d000d; text-align: center; padding: 8px 16px; font-size: 14px; font-weight: 600; box-shadow: inset 0 -2px 0 rgba(0,0,0,.15); }
.maint-banner a { color: #8a0920; font-weight: 800; }
.maint-box.on { border: 2px solid var(--gold); }
.maint-box.on .box-head { background: repeating-linear-gradient(135deg, #b80d29 0 16px, #9e0b24 16px 32px); }
.maint-toggle { font-size: 16px; padding: 10px 12px; background: var(--yellow-soft); border-radius: 8px; }
