/* Ne YapAI — klasik 2000'ler Türk forumu teması */
:root {
  --page-bg: #cdd5e3;
  --wrap-bg: #ffffff;
  --border: #0b198c;
  --border-soft: #9aa7c4;
  --tcat-1: #869bbf;
  --tcat-2: #5c7099;
  --thead-1: #fbfbfb;
  --thead-2: #dfe3ec;
  --alt1: #f5f5ff;
  --alt2: #e1e4f2;
  --link: #22229c;
  --link-hover: #ff4400;
  --text: #000000;
  --muted: #555b6e;
  --banner-1: #3e6bb5;
  --banner-2: #1b3c78;
  --nav-1: #eef1f7;
  --nav-2: #c7d1e4;
  --new: #d40000;
  --star: #f0a500;
  --ok-bg: #e8f5e2;
  --ok-border: #5aa02c;
  --warn-bg: #fff8d6;
  --warn-border: #e0b400;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--page-bg);
  color: var(--text);
  font: 13px/1.45 Verdana, Tahoma, "Segoe UI", Arial, sans-serif;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
img { max-width: 100%; }
.page {
  max-width: 1100px; margin: 12px auto; background: var(--wrap-bg);
  border: 1px solid var(--border-soft); padding: 10px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .5);
}
.smallfont { font-size: 11px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.hidden { display: none !important; }
.right { float: right; }

/* ---------- Banner & navbar ---------- */
.banner {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(180deg, var(--banner-1) 0%, var(--banner-2) 100%);
  border: 1px solid var(--border); padding: 14px 16px; color: #fff; position: relative; overflow: hidden;
}
.banner::after { /* eski usul parlama */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .04)); pointer-events: none;
}
.logo { display: flex; align-items: center; gap: 12px; color: #fff; position: relative; z-index: 1; }
.logo:hover { color: #fff; text-decoration: none; }
.logo-icon {
  width: 52px; height: 52px; display: grid; place-items: center; font: bold 22px Georgia, serif;
  background: radial-gradient(circle at 35% 30%, #ffe27a, #f39c12 60%, #b9770e);
  color: #1b3c78; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}
.logo-text b { display: block; font: bold 30px/1 "Trebuchet MS", Verdana, sans-serif; letter-spacing: -1px; text-shadow: 2px 2px 0 #0d2350; }
.logo-text small { display: block; font-size: 11px; color: #d6e2ff; margin-top: 4px; }
.banner-right {
  position: relative; z-index: 1; font-size: 11px; text-align: right;
  background: rgba(0, 0, 0, .2); border: 1px solid rgba(255, 255, 255, .3); padding: 6px 10px;
}
.banner-right a { color: #ffe27a; }
.rank-admin { color: #ff9b9b; font-weight: bold; }

.navbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px;
  background: linear-gradient(180deg, var(--nav-1), var(--nav-2));
  border: 1px solid var(--border); border-top: 0; padding: 4px 6px; font-size: 11px;
}
.navbar > a, .navbar > span > a {
  font-weight: bold; color: #000; padding: 4px 10px; border-right: 1px solid #a8b4cc;
}
.navbar > a:hover, .navbar > span > a:hover { background: #fff; color: var(--link-hover); text-decoration: none; }
.nav-admin { color: #a00000 !important; }
.nav-search { margin-left: auto; display: flex; gap: 4px; }
.nav-search input { font: 11px Verdana, sans-serif; padding: 3px 5px; border: 1px solid #7f9db9; width: 170px; }

.navbits { margin: 8px 0; }
.crumbs { padding: 7px 10px; font-size: 12px; }
.sep { color: #888; }
.demo-bar, .notice {
  background: var(--warn-bg); border: 1px solid var(--warn-border); padding: 6px 10px; font-size: 11px; margin-bottom: 8px;
}
.ok-box { background: var(--ok-bg); border: 1px solid var(--ok-border); padding: 6px 10px; font-size: 11px; margin-bottom: 8px; }
.announce {
  background: #fffbe6; border: 1px dashed #d4a017; padding: 6px 10px; margin-bottom: 8px; font-size: 12px;
}
.announce b { color: var(--new); }

/* ---------- Tablolar ---------- */
.tborder { background: #d1d1e1; border: 1px solid var(--border); }
table.tborder { width: 100%; border-collapse: separate; border-spacing: 1px; margin-bottom: 12px; }
.tcat {
  background: linear-gradient(180deg, var(--tcat-1), var(--tcat-2)); color: #fff; font-weight: bold;
  padding: 6px 8px; font-size: 12px; text-shadow: 1px 1px 0 rgba(0, 0, 0, .35);
}
.tcat a { color: #fff; }
.thead {
  background: linear-gradient(180deg, var(--thead-1), var(--thead-2)); font-size: 11px; font-weight: bold; color: #222;
}
.thead td { padding: 5px 6px; }
.alt1 { background: var(--alt1); }
.alt2 { background: var(--alt2); }
td { padding: 6px 7px; vertical-align: middle; }
.box { margin-bottom: 12px; }
.box > .tcat { border: 1px solid var(--border); border-bottom: 0; }
.box > .alt1, .box > .alt2 { border: 1px solid var(--border); border-top: 0; padding: 10px; }

/* forum listesi */
.forum-icon { font-size: 28px; text-align: center; width: 48px; }
.forum-name { font-size: 14px; font-weight: bold; }
.forum-desc { font-size: 11px; color: var(--muted); }
.lastpost { font-size: 11px; width: 210px; }
.count { text-align: center; font-size: 12px; width: 70px; }

/* konu satırı */
.thumb { width: 72px; height: 44px; object-fit: cover; border: 1px solid #8aa; display: block; background: #eee; }
.thumb-empty { width: 72px; height: 44px; display: grid; place-items: center; font-size: 22px; border: 1px solid #8aa; background: #f0f0f0; }
.t-icon { margin-right: 3px; }
.thread-title { font-weight: bold; font-size: 13px; }
.badge-new { background: var(--new); color: #fff; font-size: 9px; font-weight: bold; padding: 1px 4px; vertical-align: middle; }
.cat-tag { font-size: 10px; color: #555; }
.src-tag { font-size: 9px; font-weight: bold; padding: 1px 4px; border: 1px solid; vertical-align: middle; white-space: nowrap; }
.src-tag.gh { color: #24292e; border-color: #24292e; background: #f3f3f3; }
.src-tag.site { color: #145a32; border-color: #2e8b57; background: #e8f5e2; }
.button.site-btn { background: linear-gradient(180deg, #4cae6e, #2e8b57); color: #fff; border-color: #145a32; }
.button.site-btn:hover { color: #ffe27a; }
.guest-bar { background: #e8f0ff; border: 1px solid #3e6bb5; padding: 6px 10px; font-size: 11px; margin-bottom: 8px; }
.summary { font-size: 11px; color: #333; margin: 2px 0; }
.tag { font-size: 10px; color: #2e5aa8; }
.stars { color: var(--star); letter-spacing: 1px; font-size: 13px; text-shadow: 0 0 1px #b07800; }
.mobile-meta { display: none; font-size: 11px; color: var(--muted); }
.sortbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; font-size: 11px; }

/* ---------- Butonlar & form ---------- */
.button {
  font: 11px Verdana, Tahoma, sans-serif; color: #000; cursor: pointer;
  background: linear-gradient(180deg, #ffffff, #d4d0c8); border: 1px solid #7a7a7a; padding: 3px 8px;
}
.button:hover { background: linear-gradient(180deg, #fff, #e8e4dc); border-color: #224; text-decoration: none; color: #000; }
.button.big { font-size: 12px; padding: 5px 12px; font-weight: bold; }
.button.gh { background: linear-gradient(180deg, #444d56, #24292e); color: #fff; border-color: #111; }
.button.gh:hover { color: #ffe27a; }
.button.danger { color: #a00000; }
.bginput, select.bginput, textarea.bginput {
  font: 12px Verdana, Tahoma, sans-serif; border: 1px solid #7f9db9; padding: 4px 5px; width: 100%; background: #fff;
}
textarea.bginput { resize: vertical; }
.frow { margin-bottom: 8px; }
.frow label { display: block; font-size: 11px; font-weight: bold; margin-bottom: 2px; }
.frow .hint { font-weight: normal; color: var(--muted); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.error { color: #c00000; font-size: 11px; font-weight: bold; min-height: 1em; margin: 4px 0; }
fieldset.fieldset { border: 1px solid #9aa7c4; padding: 6px 10px 8px; margin: 10px 0; background: #fbfbff; }
fieldset.fieldset legend { font-size: 11px; font-weight: bold; color: #1b3c78; padding: 0 4px; }

/* ---------- Konu (postbit) ---------- */
.thread-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.thread-head h1 { font-size: 17px; margin: 0; color: #1b3c78; }
.ratebox { font-size: 11px; background: var(--alt1); border: 1px solid var(--border-soft); padding: 5px 10px; }
.ratebox .rate-btn { background: none; border: 0; padding: 0 1px; font-size: 18px; color: #bbb; cursor: pointer; line-height: 1; }
.ratebox .rate-btn.on { color: var(--star); }
.post { border: 1px solid var(--border); margin-bottom: 10px; }
.post-head {
  background: linear-gradient(180deg, var(--tcat-1), var(--tcat-2)); color: #fff; font-size: 11px;
  padding: 4px 8px; display: flex; justify-content: space-between;
}
.post-head a { color: #fff; }
.post-body { display: grid; grid-template-columns: 170px 1fr; }
.post-user { background: var(--alt2); border-right: 1px solid #c0c6dc; padding: 10px; font-size: 11px; }
.post-user .uname { font-size: 13px; font-weight: bold; color: var(--link); }
.post-user .rank { color: #2e8b57; font-weight: bold; margin: 2px 0 6px; }
.post-user .rank.admin { color: #a00000; }
.post-user .uinfo { color: var(--muted); margin-top: 6px; line-height: 1.6; }
.avatar {
  width: 64px; height: 64px; display: grid; place-items: center; color: #fff; font: bold 30px Georgia, serif;
  border: 2px solid #fff; outline: 1px solid #8aa;
}
.avatar.big { width: 80px; height: 80px; font-size: 38px; }
.post-content { background: var(--alt1); padding: 12px 14px; min-width: 0; }
.post-title { font-weight: bold; font-size: 13px; padding-bottom: 6px; border-bottom: 1px solid #c0c6dc; margin-bottom: 10px; }
.post-text { font-size: 13px; word-wrap: break-word; overflow-wrap: anywhere; }
.preview { margin: 0 0 12px; }
.preview img { max-height: 240px; border: 1px solid #8aa; cursor: zoom-in; background: #fff; }
.preview .cap { font-size: 10px; color: var(--muted); }
.infotable { border-collapse: collapse; font-size: 12px; }
.infotable td { padding: 3px 10px 3px 0; vertical-align: top; }
.infotable td:first-child { font-weight: bold; color: #333; white-space: nowrap; }
.signature { margin-top: 14px; padding-top: 6px; border-top: 1px dashed #b8bfd6; font-size: 11px; color: #666; font-style: italic; }
.post-foot { background: var(--alt2); border-top: 1px solid #c0c6dc; padding: 4px 8px; font-size: 11px; text-align: right; }
.thread-stats { font-size: 11px; color: var(--muted); margin: -4px 0 12px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .8); display: grid; place-items: center; z-index: 50; cursor: zoom-out; padding: 16px; }
.lightbox img { max-width: 100%; max-height: 100%; border: 3px solid #fff; }

/* ---------- Altlık ---------- */
.footer-bar {
  background: linear-gradient(180deg, var(--tcat-1), var(--tcat-2)); border: 1px solid var(--border);
  padding: 6px 10px; font-size: 11px; margin-top: 12px; color: #fff;
}
.footer-bar a { color: #fff; font-weight: bold; }
.copyright { text-align: center; font-size: 10px; color: #444; padding: 10px 0 4px; }

/* ---------- Admin ---------- */
.admin-grid { display: grid; grid-template-columns: 400px 1fr; gap: 12px; align-items: start; }
.login-box { max-width: 420px; margin: 30px auto; }
.img-current { max-width: 160px; border: 1px solid #8aa; display: block; margin: 4px 0; }
.toast {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  background: var(--ok-bg); border: 1px solid var(--ok-border); padding: 8px 16px; font-weight: bold; font-size: 12px;
  opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 60;
}
.toast.show { opacity: 1; }

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  .page { margin: 0; border: 0; padding: 6px; }
  .hide-sm { display: none; }
  .mobile-meta { display: block; }
  .logo-text b { font-size: 24px; }
  .banner-right { text-align: left; width: 100%; }
  .nav-search { margin-left: 0; width: 100%; margin-top: 4px; }
  .nav-search input { flex: 1; width: auto; }
  .post-body { grid-template-columns: 1fr; }
  .post-user { display: flex; gap: 10px; align-items: center; border-right: 0; border-bottom: 1px solid #c0c6dc; }
  .post-user .avatar { width: 44px; height: 44px; font-size: 22px; }
  .post-user .uinfo { margin-top: 0; }
  .admin-grid, .fgrid { grid-template-columns: 1fr; }
  .thumb, .thumb-empty { width: 54px; height: 36px; }
}
