/* Ortak sol gezinme çubuğu — ana sayfa, forum ve alt sayfalar aynı bileşeni kullanır.
   Ölçüler ana sayfadaki kenar çubuğundan alındı; forumun ayrı "rail" kopyası kaldırıldı. */
.site-sidebar {
  padding: 8px 0;
  position: sticky;
  top: 20px;
}

.site-sidebar__caption {
  margin: 0 0 16px 12px;
  color: #9b91a4;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.8px;
}

.site-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.site-sidebar__nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 8px;
  color: #706578;
  font-size: 12px;
  font-weight: 800;
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}

.site-sidebar__nav a:hover {
  background: #e9e1d5;
}

.site-sidebar__nav a.is-active {
  background: #e7dcf0;
  color: #60367d;
}

.site-sidebar__nav a > span:first-child {
  font-size: 20px;
  width: 22px;
  text-align: center;
}

.site-sidebar__nav img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  image-rendering: pixelated;
  transition: transform .2s;
}

.site-sidebar__nav a:hover :is(img, svg) {
  transform: rotate(-7deg) scale(1.08);
}

.site-sidebar__out {
  margin-left: auto;
  font-size: 12px;
  color: #b3a7bd;
}

.site-sidebar__callout {
  margin-top: 33px;
  padding: 22px 13px;
  border-top: 1px solid #ddd6c9;
}

.site-sidebar__callout > img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  image-rendering: pixelated;
  transform: rotate(-12deg);
}

.site-sidebar__callout h3 {
  margin: 13px 0 7px;
  font-size: 15px;
  color: #514168;
}

.site-sidebar__callout p {
  margin: 0;
  color: #8b7d91;
  font-size: 12px;
  line-height: 1.8;
}

.site-sidebar__callout a {
  color: #735188;
  font-size: 11px;
  font-weight: 900;
}

.site-sidebar__join {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  padding: 8px 11px;
  border: 1px solid #ddd0e6;
  border-radius: 8px;
  background: #f7f2fb;
  color: #6b4a8a;
  font-size: 11px;
  font-weight: 900;
  transition: background .2s, transform .2s;
}

.site-sidebar__join:hover {
  background: #efe6f8;
  transform: translateY(-1px);
}

.site-sidebar__footer {
  display: block;
  margin: 35px 12px 0;
  color: #ac9eae;
  font-size: 11px;
}

/* ---------- Gece ---------- */
[data-theme="dark"] .site-sidebar__caption {
  color: var(--muted-dark);
}

[data-theme="dark"] .site-sidebar__nav a {
  color: #cbbfe4;
}

[data-theme="dark"] .site-sidebar__nav a:hover {
  background: #2b2144;
  box-shadow: inset 3px 0 0 #ffd98a;
}

[data-theme="dark"] .site-sidebar__nav a.is-active {
  background: #3a2a5c;
  color: #ffd98a;
}

[data-theme="dark"] .site-sidebar__out {
  color: #8f7fab;
}

[data-theme="dark"] .site-sidebar__callout {
  border-color: var(--line);
}

[data-theme="dark"] .site-sidebar__callout h3 {
  color: var(--text);
}

[data-theme="dark"] .site-sidebar__callout p,
[data-theme="dark"] .site-sidebar__footer {
  color: var(--muted);
}

[data-theme="dark"] .site-sidebar__callout a {
  color: #ffd98a;
}

[data-theme="dark"] .site-sidebar__join {
  border-color: #55407e;
  background: #3a2a5c;
  color: #ffe6a3;
}

[data-theme="dark"] .site-sidebar__join:hover {
  background: #4a3670;
  color: #ffffff;
}

/* ---------- Telefon / tablet ---------- */
@media (max-width: 800px) {
  .site-sidebar {
    grid-column: 1 / -1;
    position: static;
    padding: 0;
  }

  .site-sidebar__caption,
  .site-sidebar__callout,
  .site-sidebar__footer {
    display: none;
  }

  .site-sidebar__nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 7px;
  }

  .site-sidebar__nav a {
    padding: 8px 10px;
    font-size: 11px;
  }

  .site-sidebar__nav .site-sidebar__out {
    display: none;
  }
}

@media (max-width: 620px) {
  .site-sidebar__nav {
    gap: 5px;
  }

  .site-sidebar__nav a {
    padding: 8px;
    font-size: 10px;
  }

  .site-sidebar__nav img {
    width: 18px;
    height: 18px;
    image-rendering: auto;
  }

  .site-sidebar__nav a > span:first-child {
    font-size: 17px;
    width: 18px;
  }

  .site-sidebar__nav a.is-active {
    background: #eee5fa;
    color: #70549f;
  }

  [data-theme="dark"] .site-sidebar__nav a.is-active {
    background: #3a2a5c;
    color: #ffd98a;
  }
}
