/* XPetotel Forum - Paticik Tarzı Tasarım */
/* Kompakt, bilgi yoğun, klasik forum estetiği */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Nunito+Sans:wght@400;600;700&display=swap');

:root {
  --primary:       #e8622a;
  --primary-dark:  #c94e1a;
  --primary-light: #fef3ee;
  --primary-mid:   #f97c4a;
  --accent:        #f0a500;
  --secondary:     #2c5f2e;

  --bg:            #f0ede8;
  --bg-card:       #ffffff;
  --bg-header:     #1c1c1c;
  --bg-subheader:  #e8622a;
  --bg-catbar:     #3a3a3a;
  --bg-alt:        #faf8f5;
  --bg-hover:      #fff7f3;

  --text:          #1a1a1a;
  --text-muted:    #777;
  --text-light:    #999;
  --text-inv:      #fff;

  --border:        #ddd8d0;
  --border-light:  #ece8e2;

  --radius:        6px;
  --radius-sm:     4px;
  --shadow:        0 1px 4px rgba(0,0,0,.1);
  --shadow-md:     0 2px 12px rgba(0,0,0,.12);

  --font-display:  'Nunito', sans-serif;
  --font-body:     'Nunito Sans', sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); font-size: 13.5px; line-height: 1.55; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }
.skip-link { position: absolute; top: -100px; left: 0; background: var(--primary); color: #fff; padding: 6px 12px; font-size: .85rem; z-index: 9999; }
.skip-link:focus { top: 0; }

/* ── Layout ─────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 12px; }

/* ── TOP BAR ─────────────────────────────────────────────────── */
.top-bar {
  background: var(--bg-header);
  color: #bbb;
  font-size: .78rem;
  padding: 5px 0;
  border-bottom: 1px solid #333;
}
.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-bar a { color: #bbb; }
.top-bar a:hover { color: #fff; text-decoration: none; }
.top-bar-right { display: flex; gap: 16px; align-items: center; }

/* ── HEADER ─────────────────────────────────────────────────── */
.site-header {
  background: var(--bg-subheader);
  background: linear-gradient(135deg, #c94e1a 0%, #e8622a 50%, #f07a3a 100%);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 12px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-paw {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  border: 2px solid rgba(255,255,255,.35);
}
.logo-name { line-height: 1; }
.logo-name strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.5px;
  text-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.logo-name span {
  font-size: .68rem;
  color: rgba(255,255,255,.8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* Header Arama */
.header-search { flex: 1; max-width: 420px; }
.search-box {
  display: flex;
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 24px;
  overflow: hidden;
  transition: background .2s;
  position: relative;
}
.search-box:focus-within {
  background: rgba(255,255,255,.28);
  border-color: rgba(255,255,255,.6);
}
.search-box input {
  flex: 1;
  background: none;
  border: none;
  padding: 7px 14px;
  color: #fff;
  font-size: .88rem;
  font-family: var(--font-body);
  outline: none;
}
.search-box input::placeholder { color: rgba(255,255,255,.65); }
.search-box button {
  background: rgba(255,255,255,.2);
  border: none;
  border-left: 1px solid rgba(255,255,255,.25);
  padding: 0 14px;
  color: #fff;
  cursor: pointer;
  font-size: .9rem;
  transition: background .2s;
}
.search-box button:hover { background: rgba(255,255,255,.35); }

/* Arama önerileri */
.search-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  z-index: 999; display: none; overflow: hidden;
}
.search-suggest a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-bottom: 1px solid var(--border-light);
  color: var(--text); font-size: .83rem;
}
.search-suggest a:last-child { border-bottom: none; }
.search-suggest a:hover { background: var(--bg-hover); text-decoration: none; }
.suggest-cat {
  font-size: .7rem; background: var(--primary-light); color: var(--primary);
  padding: 1px 6px; border-radius: 3px; flex-shrink: 0; font-weight: 700;
}

/* Header nav */
.header-nav {
  display: flex; align-items: center; gap: 4px; flex-shrink: 0; margin-left: auto;
}
.header-nav a {
  color: rgba(255,255,255,.9); font-size: .83rem; font-weight: 600;
  padding: 5px 10px; border-radius: 4px; transition: background .15s;
  text-decoration: none; white-space: nowrap;
}
.header-nav a:hover { background: rgba(255,255,255,.2); color: #fff; text-decoration: none; }
.btn-yeni-konu {
  background: rgba(255,255,255,.2) !important;
  border: 1.5px solid rgba(255,255,255,.5) !important;
  border-radius: 4px !important;
}
.btn-yeni-konu:hover { background: rgba(255,255,255,.35) !important; }
.btn-giris { background: #fff !important; color: var(--primary) !important; }
.btn-giris:hover { background: #ffe8dd !important; text-decoration: none !important; }

/* User info */
.header-user {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
  position: relative;
}
.user-ava {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.25);
  border: 2px solid rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 800; color: #fff;
  cursor: pointer;
}
.user-name-btn {
  background: none; border: none; color: rgba(255,255,255,.9);
  font-size: .83rem; font-weight: 700; cursor: pointer;
  font-family: var(--font-body); display: flex; align-items: center; gap: 3px;
}
.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  min-width: 160px; display: none; z-index: 300; overflow: hidden;
}
.user-dropdown a {
  display: block; padding: 8px 14px; color: var(--text);
  font-size: .83rem; font-weight: 600; border-bottom: 1px solid var(--border-light);
  text-decoration: none;
}
.user-dropdown a:last-child { border-bottom: none; }
.user-dropdown a:hover { background: var(--bg-hover); color: var(--primary); text-decoration: none; }
.user-dropdown hr { border: none; border-top: 1px solid var(--border-light); }
.header-user.open .user-dropdown { display: block; }

/* ── NAV BAR ─────────────────────────────────────────────────── */
.nav-bar {
  background: var(--bg-catbar);
  border-bottom: 2px solid var(--primary);
}
.nav-bar .container { display: flex; align-items: center; gap: 0; }
.nav-bar a {
  color: #ccc; font-size: .8rem; font-weight: 700;
  padding: 8px 14px; display: block; border-right: 1px solid #444;
  text-decoration: none; text-transform: uppercase; letter-spacing: .03em;
  transition: background .15s, color .15s;
}
.nav-bar a:hover, .nav-bar a.active { background: var(--primary); color: #fff; text-decoration: none; }
.nav-bar a:first-child { border-left: 1px solid #444; }

/* ── Alert ─────────────────────────────────────────────────── */
.alert { padding: 10px 16px; font-size: .87rem; font-weight: 600; }
.alert-success { background: #d1fae5; color: #065f46; border-bottom: 2px solid #10b981; }
.alert-error   { background: #fee2e2; color: #991b1b; border-bottom: 2px solid #ef4444; }

/* ── MAIN LAYOUT ─────────────────────────────────────────────── */
.page-layout {
  display: grid;
  grid-template-columns: 210px 1fr 190px;
  gap: 10px;
  padding: 10px 0;
  align-items: start;
}

/* ── LEFT SIDEBAR ─────────────────────────────────────────────── */
.sidebar-left { }

.sidebar-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
}
.sidebar-title {
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 6px 10px;
  display: flex; align-items: center; gap: 5px;
}

/* Kategoriler sol sidebar */
.cat-list { }
.cat-list-item {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-bottom: 1px solid var(--border-light);
  font-size: .8rem; color: var(--text); text-decoration: none;
  transition: background .12s;
}
.cat-list-item:last-child { border-bottom: none; }
.cat-list-item:hover { background: var(--bg-hover); text-decoration: none; color: var(--primary); }
.cat-list-item.active { background: var(--primary-light); color: var(--primary); font-weight: 700; }
.cat-list-icon { font-size: .9rem; flex-shrink: 0; }
.cat-list-name { flex: 1; font-weight: 600; }
.cat-list-count {
  background: var(--bg); color: var(--text-muted);
  font-size: .68rem; font-weight: 700;
  padding: 1px 5px; border-radius: 10px;
  border: 1px solid var(--border);
}

/* Online listesi */
.online-list { padding: 6px; }
.online-item {
  display: flex; align-items: center; gap: 5px;
  padding: 3px 4px; font-size: .78rem;
  border-radius: 3px; transition: background .12s;
}
.online-item:hover { background: var(--bg-hover); }
.online-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e; flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(34,197,94,.25);
}
.online-name { color: var(--text); font-weight: 600; }
.online-name a { color: var(--primary); text-decoration: none; }
.online-count {
  text-align: center; padding: 6px; font-size: .75rem;
  color: var(--text-muted); border-top: 1px solid var(--border-light);
}
.online-count strong { color: #22c55e; }

/* İstatistik sidebar */
.stats-list { padding: 8px; }
.stat-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 2px; font-size: .78rem; border-bottom: 1px dotted var(--border-light);
}
.stat-row:last-child { border-bottom: none; }
.stat-row-label { color: var(--text-muted); }
.stat-row-val { font-weight: 800; color: var(--primary); }

/* ── MAIN CONTENT ─────────────────────────────────────────────── */
.main-content { min-width: 0; }

/* Kategori başlık bar */
.cat-header-bar {
  background: var(--primary);
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0;
}
.cat-header-title {
  font-family: var(--font-display); font-size: .95rem; font-weight: 800;
  display: flex; align-items: center; gap: 7px;
}
.cat-header-actions { display: flex; gap: 6px; }

/* Thread tablosu — kompakt Paticik stili */
.forum-table {
  width: 100%; border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
}
.forum-table thead th {
  background: #f5f2ee;
  border-bottom: 2px solid var(--border);
  padding: 6px 10px;
  text-align: left;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #666;
}
.forum-table thead th.col-replies,
.forum-table thead th.col-views { text-align: center; width: 60px; }
.forum-table thead th.col-last { width: 140px; }

.forum-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background .1s;
}
.forum-table tbody tr:last-child { border-bottom: none; }
.forum-table tbody tr:hover { background: var(--bg-hover); }
.forum-table tbody tr.pinned { background: #fffbf5; }
.forum-table tbody tr.solved td.col-icon::after { content: '✅'; font-size: .7rem; }

.forum-table td { padding: 7px 10px; vertical-align: middle; }

/* İkon kolonu */
td.col-icon { width: 32px; text-align: center; padding: 7px 6px; }
.thread-type-icon {
  width: 26px; height: 26px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; flex-shrink: 0; margin: 0 auto;
}
.ti-normal   { background: #e8f4fd; }
.ti-pinned   { background: #fef9e7; }
.ti-solved   { background: #e8f8f0; }
.ti-guide    { background: #f3e8fd; }
.ti-question { background: #fff3e8; }
.ti-hot      { background: #fde8e8; }

/* Başlık kolonu */
td.col-title { padding-left: 6px; }
.thread-title-link {
  font-size: .88rem; font-weight: 700; color: var(--text);
  display: block; line-height: 1.35;
}
.thread-title-link:hover { color: var(--primary); text-decoration: none; }
.thread-title-meta {
  display: flex; align-items: center; gap: 6px; margin-top: 3px; flex-wrap: wrap;
}
.thread-author { font-size: .73rem; color: var(--text-muted); }
.thread-author a { color: var(--text-muted); font-weight: 600; }
.thread-author a:hover { color: var(--primary); text-decoration: none; }
.thread-time { font-size: .7rem; color: var(--text-light); }

/* Sayı kolonları */
td.col-replies, td.col-views {
  text-align: center; font-size: .82rem; font-weight: 700;
  color: var(--text-muted); width: 58px;
}
td.col-replies span { color: var(--primary); }

/* Son mesaj kolonu */
td.col-last { width: 140px; }
.last-post-info { font-size: .72rem; line-height: 1.45; }
.last-post-user { font-weight: 700; color: var(--primary); }
.last-post-user:hover { text-decoration: none; }
.last-post-time { color: var(--text-light); display: block; }

/* Badges */
.badge {
  display: inline-flex; align-items: center;
  padding: 1px 6px; border-radius: 3px;
  font-size: .65rem; font-weight: 800; line-height: 1.5;
  text-transform: uppercase; letter-spacing: .03em; flex-shrink: 0;
}
.badge-pinned   { background: #fef3c7; color: #92400e; }
.badge-solved   { background: #d1fae5; color: #065f46; }
.badge-admin    { background: #fee2e2; color: #991b1b; }
.badge-mod      { background: #e0f2fe; color: #075985; }
.badge-cat      { background: #f0ece6; color: #666; border: 1px solid #ddd; }
.badge-guide    { background: #ede9fe; color: #5b21b6; }
.badge-question { background: #fff3e8; color: #c05600; }
.badge-new      { background: var(--primary); color: #fff; }

/* ── POST GÖRÜNÜMÜ ───────────────────────────────────────────── */
.post-table { width: 100%; border-collapse: collapse; margin-bottom: 2px; }
.post-row { }
.post-row td { border: none; }
.post-author-col {
  width: 130px; vertical-align: top;
  background: #faf8f5; border-right: 1px solid var(--border);
  padding: 10px 8px; text-align: center;
  border-bottom: 1px solid var(--border-light);
}
.post-author-col .ava {
  width: 50px; height: 50px; border-radius: 8px;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800; margin: 0 auto 6px;
  border: 2px solid var(--border);
}
.post-author-col .uname {
  font-size: .8rem; font-weight: 800; display: block; margin-bottom: 3px;
}
.post-author-col .uname a { color: var(--text); }
.post-author-col .uname a:hover { color: var(--primary); text-decoration: none; }
.post-author-col .urole { font-size: .68rem; color: var(--text-muted); }
.post-author-col .ustat {
  font-size: .7rem; color: var(--text-light); margin-top: 6px;
  border-top: 1px dotted var(--border); padding-top: 6px;
}

.post-content-col { vertical-align: top; border-bottom: 1px solid var(--border-light); }
.post-topbar {
  background: #f7f4ef; border-bottom: 1px solid var(--border-light);
  padding: 5px 12px; display: flex; align-items: center; justify-content: space-between;
  font-size: .73rem; color: var(--text-muted);
}
.post-topbar .post-num { font-weight: 800; color: var(--primary); }
.post-topbar a { color: var(--text-muted); text-decoration: none; }
.post-topbar a:hover { color: var(--primary); }
.post-body {
  padding: 12px 14px; font-size: .87rem; line-height: 1.7; color: var(--text);
}
.post-body blockquote {
  border-left: 3px solid var(--primary); padding: 6px 12px;
  margin: 8px 0; background: var(--primary-light);
  border-radius: 0 4px 4px 0; font-style: italic; color: #555;
}
.post-body pre {
  background: #1e1e2e; color: #cdd6f4; padding: 12px;
  border-radius: 5px; overflow-x: auto; font-size: .82rem; margin: 8px 0;
}
.post-body code { background: #f0ece6; padding: 1px 5px; border-radius: 3px; font-size: .82rem; }
.post-body pre code { background: none; }
.post-body img { border-radius: 4px; max-height: 350px; }
.post-body .mention {
  background: #fef3c7; color: #92400e; padding: 0 3px;
  border-radius: 3px; font-weight: 700; font-size: .83rem;
}
.post-actions-bar {
  padding: 5px 12px; background: #faf8f5;
  border-top: 1px dotted var(--border-light);
  display: flex; gap: 8px;
}
.post-action-btn {
  background: none; border: 1px solid var(--border); border-radius: 3px;
  padding: 3px 8px; font-size: .73rem; cursor: pointer; color: var(--text-muted);
  font-family: var(--font-body); transition: all .15s;
}
.post-action-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* ── RIGHT SIDEBAR ─────────────────────────────────────────────── */
.sidebar-right { }

/* ── BREADCRumb ─────────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 4px;
  font-size: .77rem; color: var(--text-muted);
  margin-bottom: 8px; flex-wrap: wrap;
  background: var(--bg-card); padding: 6px 10px;
  border-radius: var(--radius); border: 1px solid var(--border);
}
.breadcrumb a { color: var(--primary); font-weight: 600; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--border); font-size: .8rem; }

/* ── PAGINATION ─────────────────────────────────────────────── */
.pagination {
  display: flex; gap: 3px; flex-wrap: wrap;
  align-items: center; justify-content: center;
  margin: 10px 0;
}
.pagination a, .pagination span {
  padding: 4px 9px; border: 1px solid var(--border);
  border-radius: 3px; font-size: .78rem; font-weight: 700;
  min-width: 28px; text-align: center; color: var(--text);
  text-decoration: none; transition: all .12s;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); text-decoration: none; }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── FORMS ─────────────────────────────────────────────────── */
.form-panel {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); margin-bottom: 10px;
}
.form-panel-title {
  background: var(--primary);
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: #fff; padding: 7px 12px;
  font-size: .82rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em;
}
.form-panel-body { padding: 14px; }
.form-row { margin-bottom: 12px; }
.form-label { display: block; font-size: .8rem; font-weight: 700; margin-bottom: 4px; color: #555; }
.form-control {
  width: 100%; padding: 7px 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .87rem; color: var(--text);
  background: #fff; transition: border-color .15s;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(232,98,42,.12); }
.form-control::placeholder { color: #bbb; }
textarea.form-control { min-height: 140px; resize: vertical; }

/* Toolbar */
.editor-toolbar {
  display: flex; gap: 3px; margin-bottom: 6px;
  padding: 5px 6px; background: #f5f2ee;
  border: 1px solid var(--border); border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border-bottom: none;
}
.editor-toolbar + .form-control { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.tb-btn {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 3px; padding: 3px 8px; font-size: .75rem;
  cursor: pointer; font-family: var(--font-body); font-weight: 700; color: #555;
  transition: all .12s;
}
.tb-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 16px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .82rem; cursor: pointer;
  border: 1px solid transparent; font-family: var(--font-body);
  transition: all .15s; text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary-dark); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-secondary { background: #f0ece6; color: #444; border-color: var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-sm { padding: 4px 10px; font-size: .76rem; }
.btn-xs { padding: 2px 7px; font-size: .72rem; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-header);
  color: #888; font-size: .78rem;
  margin-top: 16px;
  padding: 0;
}
.footer-top {
  background: #242424;
  padding: 16px 0;
  border-top: 3px solid var(--primary);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 20px;
}
.footer-col h4 {
  font-size: .75rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: #ccc; margin-bottom: 10px;
  padding-bottom: 5px; border-bottom: 1px solid #333;
}
.footer-col a { display: block; color: #888; margin-bottom: 5px; font-size: .78rem; text-decoration: none; }
.footer-col a:hover { color: var(--primary-mid); text-decoration: none; }
.footer-col p { color: #777; margin-bottom: 4px; }
.footer-bottom {
  background: #111; padding: 8px 0; text-align: center;
  border-top: 1px solid #222;
}
.footer-bottom p { font-size: .75rem; color: #555; }
.footer-bottom a { color: #666; text-decoration: none; }
.footer-bottom a:hover { color: var(--primary-mid); }

/* ── Hamburger / Mobil Menü ───────────────────────────────────── */
.hamburger {
  display: none;
  background: rgba(255,255,255,.2); border: 1.5px solid rgba(255,255,255,.4);
  border-radius: 6px; padding: 6px 9px; cursor: pointer;
  flex-direction: column; gap: 5px; flex-shrink: 0;
}
.hamburger span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: all .25s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: none; position: fixed; inset: 0; z-index: 500; }
.mobile-menu-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.mobile-menu-panel {
  position: absolute; top: 0; left: 0; bottom: 0; width: 280px;
  background: #fff; overflow-y: auto; z-index: 1;
  transform: translateX(-100%); transition: transform .28s ease;
  box-shadow: 4px 0 20px rgba(0,0,0,.2);
}
.mobile-menu.open { display: block; }
.mobile-menu.open .mobile-menu-panel { transform: translateX(0); }
.mobile-menu-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 16px; display: flex; align-items: center; gap: 10px;
}
.mobile-menu-header .logo-name strong { color: #fff; font-size: 1.1rem; }
.mobile-menu-header .logo-name span  { color: rgba(255,255,255,.8); font-size: .7rem; }
.mobile-menu-close {
  margin-left: auto; background: rgba(255,255,255,.2); border: none;
  color: #fff; width: 30px; height: 30px; border-radius: 50%;
  cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
}
.mobile-menu-section { border-bottom: 2px solid var(--border-light); }
.mobile-menu-section-title {
  padding: 7px 14px; font-size: .68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em; color: #aaa; background: #f8f6f3;
}
.mobile-menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid var(--border-light);
  color: var(--text); font-size: .87rem; font-weight: 600;
  text-decoration: none; transition: background .12s;
}
.mobile-menu-item:hover { background: var(--bg-hover); color: var(--primary); text-decoration: none; }
.mobile-menu-item.highlight { background: var(--primary-light); color: var(--primary); }
.mobile-menu-item .mi-count {
  margin-left: auto; font-size: .68rem; background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px; padding: 1px 6px; color: var(--text-muted);
}

/* Mobil alt tab bar */
.mobile-tabbar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 2px solid var(--primary);
  z-index: 400; padding: 4px 0 max(4px, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0,0,0,.12);
}
.mobile-tabbar-items { display: flex; justify-content: space-around; align-items: center; }
.mobile-tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 4px 10px; color: #888; text-decoration: none;
  font-size: .58rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
  border-radius: 8px; background: none; border: none; cursor: pointer; font-family: var(--font-body);
}
.mobile-tab .tab-icon { font-size: 1.25rem; }
.mobile-tab.active, .mobile-tab:hover { color: var(--primary); text-decoration: none; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .page-layout { grid-template-columns: 185px 1fr; }
  .sidebar-right { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .page-layout { grid-template-columns: 1fr; gap: 6px; padding: 6px 0 72px; }
  .sidebar-left { display: none; }
  .sidebar-right { display: none; }
  .top-bar { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 8px; }

  .site-header { position: sticky; top: 0; z-index: 200; }
  .header-inner {
    padding: 8px; gap: 8px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "hamburger logo user" "search search search";
    row-gap: 6px;
  }
  .hamburger     { display: flex; grid-area: hamburger; align-self: center; }
  .logo          { grid-area: logo; align-self: center; }
  .logo-name span { display: none; }
  .header-search { grid-area: search; max-width: 100%; padding-bottom: 2px; }
  .header-nav    { display: none; }
  .header-user   { grid-area: user; align-self: center; }
  .user-name-btn { display: none; }

  .mobile-tabbar { display: block; }

  .nav-bar { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .nav-bar::-webkit-scrollbar { height: 2px; }
  .nav-bar .container { display: flex; width: max-content; padding: 0; }
  .nav-bar a { padding: 8px 12px; font-size: .75rem; }

  .forum-table thead { display: none; }
  .forum-table td.col-replies,
  .forum-table td.col-views,
  .forum-table td.col-last { display: none; }
  .forum-table td { padding: 8px 6px; }
  .forum-table td.col-icon { width: 28px; padding: 6px 4px; }
  .thread-title-link { font-size: .84rem; }
  .thread-title-meta { gap: 4px; }
  .cat-header-bar { padding: 7px 8px; }
  .cat-header-title { font-size: .84rem; }

  .post-author-col { width: 66px; padding: 8px 5px; }
  .post-author-col .ava { width: 38px; height: 38px; font-size: .9rem; margin-bottom: 4px; }
  .post-author-col .ustat { display: none; }
  .post-body { padding: 10px; font-size: .84rem; }
  .post-topbar { padding: 4px 8px; font-size: .7rem; }
  .post-actions-bar { padding: 4px 8px; gap: 4px; }
  .post-action-btn { padding: 3px 7px; font-size: .7rem; }

  .form-panel-body { padding: 10px; }
  .editor-toolbar { flex-wrap: wrap; gap: 2px; }
  .breadcrumb { padding: 5px 8px; font-size: .72rem; }
  .btn { padding: 9px 16px; min-height: 40px; }
  .btn-sm { padding: 7px 12px; min-height: 36px; }
  .btn-xs { padding: 5px 9px; min-height: 30px; }
  .pagination a, .pagination span { padding: 7px 11px; font-size: .8rem; min-width: 34px; }
  .footer-top { padding: 12px 0; }
}

@media (max-width: 480px) {
  .logo-paw { width: 32px; height: 32px; font-size: 1rem; border-radius: 8px; }
  .logo-name strong { font-size: 1rem; }
  .search-box input { font-size: .82rem; padding: 6px 10px; }
  .cat-header-actions { display: none; }
  .post-author-col { width: 50px; }
  .post-author-col .ava { width: 30px; height: 30px; font-size: .72rem; }
  .post-author-col .urole { display: none; }
  .mobile-tab { padding: 4px 6px; }
  .mobile-tab .tab-icon { font-size: 1.1rem; }
  .user-ava { width: 28px; height: 28px; font-size: .78rem; }
}

/* ── Micro animations ─────────────────────────────────────────── */
@keyframes fadeIn { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:none; } }
.user-dropdown, .search-suggest { animation: fadeIn .15s ease; }
.forum-table tbody tr { transition: background .08s; }
