/* ============================================================
   FORUM MODULE CSS - World of Basket
   ============================================================ */

.forum-page { max-width: 100% }

/* Header & Breadcrumb */
.forum-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.forum-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: .8rem }
.breadcrumb-item { color: #888; transition: color .2s }
.breadcrumb-item:not(.active) { cursor: pointer }
.breadcrumb-item:not(.active):hover { color: #e85d04 }
.breadcrumb-item.active { color: #fff; font-weight: 600 }
.breadcrumb-sep { color: #444; font-size: .7rem }
.forum-search input {
  padding: 8px 16px; border-radius: 20px; border: 1px solid #2a2a4a;
  background: rgba(26,26,46,.8); color: #fff; font-size: .8rem;
  font-family: inherit; outline: none; width: 250px;
}
.forum-search input:focus { border-color: #e85d04 }

/* Section Title */
.forum-section-title {
  font-size: 1rem; color: #fff; margin-bottom: 14px;
  padding-bottom: 8px; border-bottom: 1px solid #2a2a4a;
}

/* Categories Grid */
.forum-cat-list { display: flex; flex-direction: column; gap: 8px }
.forum-cat-card {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px;
  background: linear-gradient(165deg, #12121f, #1a1a2e);
  border-radius: 12px; border: 1px solid #2a2a4a;
  cursor: pointer; transition: all .2s;
}
.forum-cat-card:hover { border-color: rgba(232,93,4,.3); transform: translateX(4px) }
.forum-cat-icon { font-size: 1.8rem; flex-shrink: 0 }
.forum-cat-info { flex: 1 }
.forum-cat-info h3 { font-size: .9rem; color: #fff; margin-bottom: 2px }
.forum-cat-info p { font-size: .7rem; color: #888 }
.forum-cat-stats { text-align: center; flex-shrink: 0 }
.forum-cat-count { display: block; font-size: 1.2rem; color: #e85d04; font-weight: 700 }
.forum-cat-label { font-size: .6rem; color: #666 }

/* Teams Grid */
.forum-teams-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
}
.forum-team-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 8px; border-radius: 10px; border: 1px solid #2a2a4a;
  background: rgba(26,26,46,.6); cursor: pointer; transition: all .2s;
}
.forum-team-btn:hover { border-color: rgba(232,93,4,.3); background: rgba(232,93,4,.05) }
.forum-team-btn span { font-size: .7rem; color: #ccc; font-weight: 600 }

/* Topics List */
.forum-topics-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.forum-topics-header h2 { font-size: 1.1rem; color: #fff }
.forum-new-topic-btn {
  padding: 8px 20px; border-radius: 8px; border: none;
  background: linear-gradient(135deg, #e85d04, #ff8f00);
  color: #fff; font-size: .8rem; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: all .2s;
}
.forum-new-topic-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(232,93,4,.4) }

.forum-topics-list { display: flex; flex-direction: column; gap: 4px }

.forum-topic-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: linear-gradient(165deg, #12121f, #1a1a2e);
  border-radius: 10px; border: 1px solid #1a1a3a;
  cursor: pointer; transition: all .2s;
}
.forum-topic-row:hover { border-color: rgba(232,93,4,.2); background: rgba(232,93,4,.03) }
.forum-topic-row.pinned { border-color: rgba(255,215,0,.2); background: rgba(255,215,0,.03) }
.forum-topic-row.locked { opacity: .7 }

.topic-icon { font-size: 1.1rem; flex-shrink: 0 }
.topic-info { flex: 1; min-width: 0 }
.topic-title {
  font-size: .85rem; color: #fff; margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topic-meta { display: flex; align-items: center; gap: 8px; font-size: .65rem }
.topic-author { font-weight: 600 }
.topic-rank {
  padding: 1px 6px; border-radius: 4px;
  background: rgba(255,255,255,.06); font-size: .55rem;
}
.topic-tag {
  padding: 1px 6px; border-radius: 4px;
  background: rgba(232,93,4,.1); color: #e85d04; font-size: .55rem;
}
.topic-stats { display: flex; gap: 16px; flex-shrink: 0; text-align: center }
.topic-stat-num { display: block; font-size: .9rem; color: #fff; font-weight: 600 }
.topic-stat-label { font-size: .55rem; color: #666 }
.topic-last-activity { flex-shrink: 0 }
.topic-time { font-size: .65rem; color: #888 }

.forum-empty { text-align: center; padding: 60px 20px; color: #888; font-size: .9rem }

/* Thread / Posts */
.forum-thread { max-width: 900px }

.forum-post {
  display: flex; gap: 16px; padding: 20px;
  background: linear-gradient(165deg, #12121f, #1a1a2e);
  border-radius: 12px; border: 1px solid #2a2a4a;
  margin-bottom: 8px;
}
.forum-post.original-post { border-color: rgba(232,93,4,.2) }

.post-sidebar { flex-shrink: 0; width: 80px; text-align: center }
.post-avatar {
  width: 50px; height: 50px; border-radius: 50%; margin: 0 auto 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800; color: #fff;
}
.post-author { font-size: .7rem; color: #fff; font-weight: 600; margin-bottom: 2px }
.post-rank { font-size: .6rem; font-weight: 700 }

.post-content { flex: 1; min-width: 0 }
.post-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 12px; gap: 8px;
}
.post-header h2 { font-size: 1.1rem; color: #fff; line-height: 1.3 }
.post-date { font-size: .65rem; color: #888; flex-shrink: 0 }
.post-body { font-size: .85rem; color: #ccc; line-height: 1.7; margin-bottom: 14px }
.post-body p { margin-bottom: 10px }
.post-body blockquote {
  border-left: 3px solid #e85d04; padding: 8px 14px; margin: 10px 0;
  background: rgba(232,93,4,.05); border-radius: 0 8px 8px 0;
  color: #aaa; font-style: italic;
}
.post-body a { color: #e85d04 }
.post-actions { display: flex; gap: 10px }
.post-like-btn, .post-quote-btn {
  padding: 4px 12px; border-radius: 6px; border: 1px solid #2a2a4a;
  background: transparent; color: #888; font-size: .7rem;
  cursor: pointer; transition: all .2s; font-family: inherit;
}
.post-like-btn:hover, .post-quote-btn:hover { border-color: #e85d04; color: #fff }

/* Reply Form */
.forum-reply-form {
  padding: 20px; border-radius: 12px;
  background: linear-gradient(165deg, #12121f, #1a1a2e);
  border: 1px solid #2a2a4a; margin-top: 16px;
}
.forum-reply-form h3 { color: #fff; font-size: .95rem; margin-bottom: 12px }

.reply-toolbar {
  display: flex; gap: 6px; margin-bottom: 8px;
}
.reply-toolbar button {
  padding: 4px 10px; border-radius: 6px; border: 1px solid #2a2a4a;
  background: transparent; color: #888; font-size: .75rem;
  cursor: pointer; transition: all .2s; font-family: inherit;
}
.reply-toolbar button:hover { border-color: #e85d04; color: #fff }

#forum-reply-input, .forum-textarea {
  width: 100%; padding: 14px; border-radius: 10px; border: 1px solid #2a2a4a;
  background: rgba(10,10,26,.5); color: #fff; font-size: .85rem;
  font-family: inherit; resize: vertical; outline: none;
}
#forum-reply-input:focus, .forum-textarea:focus { border-color: #e85d04 }

.reply-actions {
  display: flex; justify-content: space-between; align-items: center; margin-top: 10px;
}
.reply-chars { font-size: .65rem; color: #666 }
.reply-submit-btn {
  padding: 10px 28px; border-radius: 8px; border: none;
  background: linear-gradient(135deg, #e85d04, #ff8f00);
  color: #fff; font-size: .8rem; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: all .2s;
}
.reply-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(232,93,4,.4) }

/* New Topic Form */
.forum-new-topic { max-width: 700px }
.forum-new-topic h2 { color: #fff; margin-bottom: 20px }
.forum-input {
  width: 100%; padding: 12px 16px; border-radius: 10px; border: 1px solid #2a2a4a;
  background: rgba(26,26,46,.8); color: #fff; font-size: .85rem;
  font-family: inherit; outline: none; margin-bottom: 12px;
}
.forum-input:focus { border-color: #e85d04 }
.new-topic-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px }
.forum-cancel-btn {
  padding: 10px 24px; border-radius: 8px; border: 1px solid #2a2a4a;
  background: transparent; color: #ccc; font-size: .8rem;
  cursor: pointer; font-family: inherit;
}
.forum-submit-btn {
  padding: 10px 28px; border-radius: 8px; border: none;
  background: linear-gradient(135deg, #e85d04, #ff8f00);
  color: #fff; font-size: .85rem; font-weight: 700;
  cursor: pointer; font-family: inherit;
}

.forum-locked-msg {
  text-align: center; padding: 20px; color: #888; font-size: .85rem;
  border-radius: 10px; background: rgba(26,26,46,.5); border: 1px solid #2a2a4a;
  margin-top: 16px;
}
.forum-login-prompt {
  text-align: center; padding: 20px; margin-top: 16px;
}
.forum-login-prompt button {
  padding: 10px 24px; border-radius: 8px; border: none;
  background: linear-gradient(135deg, #e85d04, #ff8f00);
  color: #fff; font-size: .8rem; font-weight: 700;
  cursor: pointer; font-family: inherit;
}

/* Points Stats Page */
.points-stats-page { max-width: 700px }
.points-overview {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px;
}
.points-big-stat {
  text-align: center; padding: 20px; border-radius: 12px;
  background: linear-gradient(165deg, #12121f, #1a1a2e);
  border: 1px solid #2a2a4a;
}
.points-big-num { display: block; font-size: 1.8rem; font-weight: 800; color: #ffd700; margin-bottom: 4px }
.points-big-label { font-size: .7rem; color: #888 }

.points-daily-grid { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px }
.points-daily-item { display: flex; align-items: center; gap: 12px }
.pdaily-label { width: 160px; font-size: .75rem; color: #ccc; flex-shrink: 0 }
.pdaily-bar {
  flex: 1; height: 8px; border-radius: 4px; background: #1a1a2e;
  overflow: hidden;
}
.pdaily-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #e85d04, #ff8f00); transition: width .3s }
.pdaily-count { font-size: .7rem; color: #888; width: 50px; text-align: right }

.points-totals {
  padding: 16px; border-radius: 10px;
  background: rgba(255,255,255,.03); border: 1px solid #2a2a4a;
}
.points-totals div {
  display: flex; justify-content: space-between; padding: 6px 0;
  font-size: .8rem; color: #aaa;
}
.points-totals strong { color: #ffd700 }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .forum-header { flex-direction: column; gap: 10px }
  .forum-search input { width: 100% }
  .forum-cat-card { padding: 12px }
  .forum-cat-icon { font-size: 1.4rem }
  .forum-teams-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)) }
  .forum-topic-row { flex-wrap: wrap; gap: 8px }
  .topic-stats { gap: 10px }
  .topic-last-activity { width: 100%; text-align: right }
  .forum-post { flex-direction: column; gap: 10px }
  .post-sidebar { width: 100%; display: flex; align-items: center; gap: 10px }
  .post-avatar { width: 36px; height: 36px; font-size: .9rem; margin: 0 }
  .points-overview { grid-template-columns: 1fr }
  .pdaily-label { width: 120px; font-size: .65rem }
}
