/* Classic vBulletin-inspired forum skin — desktop first */
.stk-forum {
  --stk-f-border: #c8d0d8;
  --stk-f-head: #3a6ea5;
  --stk-f-head2: #5a8fc4;
  --stk-f-row: #f5f7fa;
  --stk-f-alt: #eef2f6;
  --stk-f-text: #222;
  color: var(--stk-f-text);
  font-size: 0.95rem;
}
.stk-forum a { text-decoration: none; }
.stk-forum a:hover { text-decoration: underline; }

.stk-forum-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.stk-forum-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--stk-f-border);
  background: #fff;
  margin-bottom: 1.25rem;
}
.stk-forum-table th {
  background: linear-gradient(#4a7eb0, var(--stk-f-head));
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 0.55rem 0.75rem;
  border: 1px solid #2f5f8f;
  font-size: 0.9rem;
}
.stk-forum-table td {
  border: 1px solid var(--stk-f-border);
  padding: 0.55rem 0.75rem;
  vertical-align: top;
  background: #fff;
}
.stk-forum-table tr:nth-child(even) td { background: var(--stk-f-alt); }
.stk-forum-cat-row td {
  background: var(--stk-f-head2) !important;
  color: #fff;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
}
.stk-forum-cat-row a { color: #fff; }
.stk-forum-muted { color: #6c757d; font-size: 0.85rem; }
.stk-forum-admin-badge { color: #d4a017; font-weight: 700; font-size: 0.85rem; margin: 2px 0; }
.stk-forum-stats { width: 5.5rem; text-align: center; white-space: nowrap; }
.stk-forum-last { width: 14rem; font-size: 0.85rem; }

.stk-forum-post {
  display: grid;
  grid-template-columns: 180px 1fr;
  border: 1px solid var(--stk-f-border);
  margin-bottom: 0.75rem;
  background: #fff;
}
.stk-forum-post-meta {
  background: var(--stk-f-row);
  border-right: 1px solid var(--stk-f-border);
  padding: 0.75rem;
  font-size: 0.85rem;
}
.stk-forum-post-body { padding: 0.85rem 1rem; min-height: 6rem; }
.stk-forum-post-foot {
  grid-column: 1 / -1;
  border-top: 1px solid var(--stk-f-border);
  padding: 0.4rem 0.75rem;
  background: #fafbfc;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}
.stk-forum-avatar {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 1px solid var(--stk-f-border);
  background: #ddd;
  display: block;
  margin-bottom: 0.5rem;
}
.stk-bb-quote {
  border-left: 3px solid var(--stk-f-head);
  background: #f0f4f8;
  padding: 0.5rem 0.75rem;
  margin: 0.5rem 0;
}
.stk-bb-quote-head { font-weight: 600; font-size: 0.85rem; margin-bottom: 0.25rem; }
.stk-bb-code {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 0.75rem;
  overflow-x: auto;
  font-size: 0.85rem;
}
.stk-bb-img { max-width: 100%; height: auto; }
.stk-bb-spoiler { margin: 0.5rem 0; }
.stk-bb-game {
  display: inline-block;
  background: #e7f1ff;
  border: 1px solid #b6d0f0;
  padding: 0 0.35rem;
  border-radius: 0.2rem;
  font-size: 0.85rem;
}
.stk-forum-editor-tb { margin-bottom: 0.35rem; }
.stk-forum-editor-tb button {
  font-size: 0.8rem;
  padding: 0.15rem 0.4rem;
  margin: 0 0.1rem 0.2rem 0;
}
.stk-forum-compose {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.stk-forum-preview-wrap {
  border: 1px solid var(--stk-f-border);
  background: #fff;
  border-radius: 0.25rem;
  min-height: 10rem;
  display: flex;
  flex-direction: column;
}
.stk-forum-preview-label {
  background: var(--stk-f-head);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
}
.stk-forum-preview-body {
  padding: 0.65rem 0.75rem;
  overflow: auto;
  flex: 1;
  font-size: 0.95rem;
}
@media (max-width: 768px) {
  .stk-forum-compose { grid-template-columns: 1fr; }
}
.stk-forum-home-col h2 {
  font-size: 1.1rem;
  border-bottom: 2px solid var(--stk-f-head);
  padding-bottom: 0.35rem;
  margin-bottom: 0.75rem;
}
.stk-forum-home-list { list-style: none; padding: 0; margin: 0; }
.stk-forum-home-list li {
  border-bottom: 1px solid #e5e9ee;
  padding: 0.45rem 0;
}
@media (max-width: 768px) {
  .stk-forum-post { grid-template-columns: 1fr; }
  .stk-forum-post-meta { border-right: 0; border-bottom: 1px solid var(--stk-f-border); }
  .stk-forum-stats, .stk-forum-last { width: auto; }
}

/* Profile tabs */
.stk-forum-profile-header {
  display: flex; gap: 1.25rem; align-items: center; margin-bottom: 0.5rem;
}
.stk-forum-tabs {
  display: flex; gap: 0; border-bottom: 2px solid var(--stk-f-border);
}
.stk-forum-tab {
  display: inline-block; padding: 0.5rem 1.25rem;
  color: var(--stk-f-muted); text-decoration: none; font-weight: 600;
  border-bottom: 2px solid transparent; margin-bottom: -2px; transition: 0.15s;
}
.stk-forum-tab:hover { color: var(--stk-f-link); }
.stk-forum-tab.active {
  color: var(--stk-f-link); border-bottom-color: var(--stk-f-link);
}
.stk-forum-profile-section {
  padding-top: 1rem;
}

/* vBulletin-style stats footer */
.stk-forum-stats-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  border: 1px solid var(--stk-f-border);
  background: var(--stk-f-row);
  padding: 0.75rem 1rem;
  margin-top: 1.25rem;
}
.stk-forum-stats-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.85rem;
}
.stk-forum-stats-item span {
  color: #6c757d;
}
.stk-forum-stats-item strong {
  font-size: 0.95rem;
  color: var(--stk-f-text);
}

