@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --kg-bg: #dfe3e8;
  --kg-panel: #ffffff;
  --kg-ink: #20242b;
  --kg-muted: #6b7280;
  --kg-line: #cfd6df;
  --kg-dark: #22262b;
  --kg-darker: #171a1f;
  --kg-blue: #0d72b8;
  --kg-blue-soft: #e9f5ff;
  --kg-gold: #f6b51d;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--kg-bg);
  color: var(--kg-ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 14px;
}

a {
  color: #0e5f9a;
  text-decoration: none;
}

a:hover {
  color: #063f6b;
  text-decoration: none;
}

#container {
  width: 100%;
  min-width: 0;
  background: var(--kg-bg);
}

.wrapper {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

#header {
  background: var(--kg-darker);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#header #logo {
  min-height: 168px;
  padding: 22px 0 0;
  background:
    linear-gradient(rgba(28, 31, 36, 0.9), rgba(28, 31, 36, 0.94)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 34px);
}

#header #logo .wrapper {
  min-height: 146px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

#logo > .wrapper > a:first-child {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

#logo > .wrapper > a:first-child img {
  display: none;
}

#logo > .wrapper > a:first-child::before {
  content: "KELEPIR GB";
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.95;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

#logo > .wrapper > a:first-child::after {
  content: "Oyuncu Pazari Forumu";
  color: var(--kg-gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

#logo .top_links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 0;
}

#logo .top_links li {
  list-style: none;
}

#logo .top_links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 5px 5px 0 0;
  color: #e8edf4;
  font-size: 13px;
  font-weight: 800;
  text-transform: none;
}

#logo .top_links a::before,
#logo .top_links a::after {
  content: none !important;
}

#logo .top_links a:hover,
#logo .top_links a.search {
  background: #eef3f7;
  color: #17496f;
}

#panel {
  background: #23272d;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(0,0,0,.25);
}

#panel .upper,
#panel .lower {
  background: transparent;
  color: #d9dee7;
  border: 0;
}

#panel .upper .wrapper,
#panel .lower .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 38px;
}

#panel .upper .wrapper {
  min-height: 48px;
}

#panel .lower {
  border-top: 1px solid rgba(255,255,255,.06);
}

#panel ul.menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
}

#panel ul.menu li {
  list-style: none;
}

#panel ul.menu a {
  display: inline-flex;
  align-items: center;
  color: #dbe4ef;
}

#panel a,
#panel .welcome {
  color: #f5f7fb;
  font-weight: 600;
}

#panel .login,
#panel .register,
#panel .logout {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-left: 8px;
  padding: 0 13px;
  border-radius: 4px;
  background: var(--kg-gold);
  color: #1d1d1d;
  font-weight: 800;
}

#panel .register {
  background: #303844;
  color: #fff;
}

#search {
  display: flex;
  align-items: center;
  gap: 6px;
  width: min(100%, 360px);
  margin: 0;
  padding: 0;
  border: 0;
}

#search .textbox {
  width: 100%;
}

#search .textbox,
input.textbox,
textarea,
select {
  min-height: 34px;
  border: 1px solid var(--kg-line);
  border-radius: 4px;
  background: #fff;
  color: var(--kg-ink);
  font-family: inherit;
}

.button,
input.button {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 4px;
  background: var(--kg-blue);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

#content {
  padding: 0 0 46px;
}

#content > .wrapper {
  padding-top: 18px;
}

.navigation {
  color: var(--kg-muted);
  font-size: 13px;
  margin-bottom: 14px;
}

.navigation a {
  color: #1b5e91;
  font-weight: 700;
}

.kg-forum-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 304px;
  gap: 22px;
  align-items: start;
}

.kg-page-title {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 700;
  color: #272b31;
}

.kg-side {
  position: sticky;
  top: 14px;
}

.kg-side-card {
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--kg-line);
  border-radius: 5px;
  background: var(--kg-panel);
  box-shadow: 0 2px 8px rgba(18, 24, 32, .08);
}

.kg-side-head {
  padding: 12px 14px;
  background: var(--kg-dark);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.kg-side-body {
  padding: 12px 14px;
  color: var(--kg-muted);
  line-height: 1.55;
}

.kg-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-bottom: 10px;
  border-radius: 4px;
  background: var(--kg-blue);
  color: #fff;
  font-weight: 800;
}

.kg-action:hover {
  color: #fff;
  background: #095f9c;
}

.kg-mini-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
}

.kg-mini-list li {
  list-style: none;
}

.kg-mini-list a {
  display: block;
  padding: 8px 9px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #17496f;
  font-weight: 700;
}

.tborder {
  width: 100%;
  overflow: hidden;
  margin: 0 0 18px;
  border: 1px solid var(--kg-line);
  border-radius: 5px;
  background: var(--kg-panel);
  box-shadow: 0 2px 8px rgba(18, 24, 32, .08);
}

.thead {
  padding: 13px 15px;
  border: 0;
  background: var(--kg-dark);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.thead a {
  color: #fff;
}

.tcat {
  padding: 9px 12px;
  border: 0;
  background: #111418;
  color: #d7dce5;
  font-size: 12px;
  text-transform: uppercase;
}

.trow1,
.trow2 {
  padding: 14px 12px;
  border-color: #e4e8ed;
  background: #fff;
}

.trow2 {
  background: #f7f9fb;
}

.trow1 strong a,
.trow2 strong a {
  color: #14517d;
  font-size: 16px;
}

.smalltext {
  color: var(--kg-muted);
  font-size: 12px;
}

.forum_status {
  transform: scale(1.12);
  opacity: .85;
}

.forum_legend {
  display: none;
}

#boardstats .thead,
#boardstats .tcat {
  background: var(--kg-dark);
}

#footer {
  margin-top: 32px;
  border-top: 1px solid var(--kg-line);
  background: #eceff3;
  color: var(--kg-muted);
}

#footer .upper,
#footer .lower {
  background: transparent;
  border: 0;
}

#footer a {
  color: #52606f;
  font-weight: 600;
}

.modal {
  color: var(--kg-ink);
}

@media (max-width: 980px) {
  .kg-forum-shell {
    grid-template-columns: 1fr;
  }

  .kg-side {
    position: static;
  }

  #logo .top_links {
    position: static;
    justify-content: center;
    margin-bottom: 18px;
  }

  #header #logo .wrapper,
  #panel .upper .wrapper,
  #panel .lower .wrapper {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .wrapper {
    width: min(100% - 18px, 1180px);
  }

  #header #logo {
    min-height: 150px;
    padding: 22px 0 28px;
  }

  .tborder,
  .tborder tbody,
  .tborder tr,
  .tborder td {
    display: block;
    width: 100% !important;
  }

  .tcat {
    display: none !important;
  }
}
