/* Topluluk Barometresi — referans düzen, kırmızı→yeşil skala */

.tbar-slot,
.tbar-slot {
  width: min(100%, 1100px);
  max-width: none;
  margin: 1.75rem auto 0.45rem;
  padding: 0 0.5rem;
  box-sizing: border-box;
}

.tbar-loading,
.tbar-fail {
  margin: 0.35rem 0;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(226, 232, 240, 0.78);
}

.tbar-slot .tbar,
html:not(.dark) .tbar-slot .tbar {
  border-radius: 12px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  background:
    radial-gradient(720px 160px at 50% 0%, rgba(34, 211, 238, 0.07), transparent 55%),
    linear-gradient(168deg, #0a1018 0%, #111827 48%, #0c1219 100%);
  padding: 0.65rem 0.75rem 0.55rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 28px rgba(0, 0, 0, 0.28);
  color: #e2e8f0;
}

.tbar-slot .tbar {
  font-size: 0.8125rem;
}

.tbar-slot .tbar-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(34, 211, 238, 0.14);
}

.tbar-slot .tbar-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.tbar-slot .tbar-hint {
  margin: 0;
  font-size: 0.65rem;
  color: rgba(226, 232, 240, 0.62);
  text-align: right;
  flex: 1 1 auto;
}

.tbar-slot .tbar-hint--login a {
  color: #22d3ee;
  font-weight: 700;
  text-decoration: none;
}

.tbar-slot .tbar-grid {
  display: grid;
  gap: 0.55rem;
}

@media (min-width: 900px) {
  .tbar-slot .tbar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tbar-slot .tbar-card {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.42);
  padding: 0.55rem 0.6rem 0.5rem;
}

.tbar-slot .tbar-card-title {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  color: #f8fafc;
  letter-spacing: 0.02em;
}

.tbar-slot .tbar-summary {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.35rem 0.45rem;
  margin-bottom: 0.35rem;
}

.tbar-slot .tbar-gauge {
  width: 72px;
  flex-shrink: 0;
}

.tbar-slot .tbar-gauge-svg {
  display: block;
  width: 100%;
  height: auto;
}

.tbar-slot .tbar-gauge-track {
  fill: none;
  stroke: rgba(148, 163, 184, 0.22);
  stroke-width: 4;
  stroke-linecap: round;
}

.tbar-slot .tbar-gauge-fill {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
}

.tbar-slot .tbar-hist-wrap {
  min-width: 0;
}

.tbar-slot .tbar-hist-cols {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  align-items: end;
  gap: 3px;
  height: 2.35rem;
  padding: 0 0.1rem;
}

.tbar-slot .tbar-hist-col {
  display: flex;
  align-items: flex-end;
  height: 100%;
  min-width: 0;
}

.tbar-slot .tbar-hist-bar {
  display: block;
  width: 100%;
  min-height: 2px;
  border-radius: 2px 2px 1px 1px;
  transition: height 0.2s ease;
}

.tbar-slot .tbar-hist-bar--1 { background: #b91c1c; }
.tbar-slot .tbar-hist-bar--2 { background: #dc2626; }
.tbar-slot .tbar-hist-bar--3 { background: #ea580c; }
.tbar-slot .tbar-hist-bar--4 { background: #f97316; }
.tbar-slot .tbar-hist-bar--5 { background: #eab308; }
.tbar-slot .tbar-hist-bar--6 { background: #ca8a04; }
.tbar-slot .tbar-hist-bar--7 { background: #84cc16; }
.tbar-slot .tbar-hist-bar--8 { background: #65a30d; }
.tbar-slot .tbar-hist-bar--9 { background: #16a34a; }
.tbar-slot .tbar-hist-bar--10 { background: #14532d; }

.tbar-slot .tbar-hist-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 0.2rem;
  font-size: 0.52rem;
  color: rgba(226, 232, 240, 0.48);
}

.tbar-slot .tbar-scorebox {
  text-align: right;
  padding-left: 0.25rem;
  min-width: 3.2rem;
}

.tbar-slot .tbar-avg {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.tbar-slot .tbar-avg-sfx {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.55);
  margin-left: 1px;
}

.tbar-slot .tbar-meta {
  margin: 0.15rem 0 0;
  font-size: 0.58rem;
  color: rgba(226, 232, 240, 0.55);
}

.tbar-slot .tbar-vote-sep {
  border-top: 1px dashed rgba(148, 163, 184, 0.28);
  margin: 0.35rem 0 0.4rem;
}

.tbar-slot .tbar-my-hint {
  margin: 0 0 0.35rem;
  font-size: 0.62rem;
  color: rgba(226, 232, 240, 0.72);
}

.tbar-slot .tbar-my-hint strong {
  color: #fbbf24;
  font-weight: 800;
}

.tbar-slot .tbar-my-hint--muted {
  color: rgba(226, 232, 240, 0.5);
}

.tbar-slot .tbar-btns {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  margin-bottom: 0.35rem;
}

.tbar-slot .tbar-btn {
  min-width: 0;
  padding: 0.38rem 0;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.75);
  color: #e2e8f0;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.tbar-slot .tbar-btn--1 { border-color: rgba(185, 28, 28, 0.45); }
.tbar-slot .tbar-btn--2 { border-color: rgba(220, 38, 38, 0.4); }
.tbar-slot .tbar-btn--3 { border-color: rgba(234, 88, 12, 0.4); }
.tbar-slot .tbar-btn--4 { border-color: rgba(249, 115, 22, 0.4); }
.tbar-slot .tbar-btn--5 { border-color: rgba(234, 179, 8, 0.45); }
.tbar-slot .tbar-btn--6 { border-color: rgba(202, 138, 4, 0.4); }
.tbar-slot .tbar-btn--7 { border-color: rgba(132, 204, 22, 0.4); }
.tbar-slot .tbar-btn--8 { border-color: rgba(101, 163, 13, 0.4); }
.tbar-slot .tbar-btn--9 { border-color: rgba(22, 163, 74, 0.45); }
.tbar-slot .tbar-btn--10 { border-color: rgba(20, 83, 45, 0.55); }

.tbar-slot .tbar-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.tbar-slot .tbar-btn.is-mine {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.tbar-slot .tbar-btn--1.is-mine { background: #b91c1c; }
.tbar-slot .tbar-btn--2.is-mine { background: #dc2626; }
.tbar-slot .tbar-btn--3.is-mine { background: #ea580c; }
.tbar-slot .tbar-btn--4.is-mine { background: #f97316; }
.tbar-slot .tbar-btn--5.is-mine { background: #ca8a04; color: #1c1917; }
.tbar-slot .tbar-btn--6.is-mine { background: #ca8a04; }
.tbar-slot .tbar-btn--7.is-mine { background: #65a30d; }
.tbar-slot .tbar-btn--8.is-mine { background: #16a34a; }
.tbar-slot .tbar-btn--9.is-mine { background: #15803d; }
.tbar-slot .tbar-btn--10.is-mine { background: #14532d; }

.tbar-slot .tbar-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.tbar-slot .tbar-scale-foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.58rem;
  color: rgba(226, 232, 240, 0.52);
}

.tbar-slot .tbar-scale-end--high {
  text-align: right;
}

.tbar-slot .tbar-scale-end--low {
  color: rgba(248, 113, 113, 0.85);
}

.tbar-slot .tbar-scale-end--high {
  color: rgba(74, 222, 128, 0.85);
}

.tbar-slot .tbar-unvote {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.58rem;
  text-decoration: underline;
  cursor: pointer;
  color: #38bdf8;
  white-space: nowrap;
}

.tbar-slot .tbar-unvote:hover {
  color: #7dd3fc;
}

.tbar-slot .tbar-info {
  margin: 0.55rem 0 0;
  padding: 0;
  max-width: 100%;
  font-size: calc(1em - 3pt);
  line-height: 1.42;
  text-align: left;
  color: rgba(226, 232, 240, 0.58);
}

.tbar-slot .tbar-info-label {
  font-weight: 700;
  color: rgba(125, 211, 252, 0.75);
}

@media (max-width: 520px) {
  .tbar-slot .tbar-summary {
    grid-template-columns: 58px minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .tbar-slot .tbar-scorebox {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
  }

  .tbar-slot .tbar-gauge {
    width: 58px;
  }

  .tbar-slot .tbar-btns {
    gap: 2px;
  }

  .tbar-slot .tbar-btn {
    font-size: 0.58rem;
    padding: 0.32rem 0;
  }
}
