/* ==========================================================================
   FORUM STYLES - Card no Mi
   Sistema de Fórum Moderno com Dark Mode
   ========================================================================== */

/* Variáveis do Fórum */
:root {
  --forum-bg: var(--bg-main);
  --forum-surface: var(--surface);
  --forum-surface-hover: var(--muted);
  --forum-text: var(--text-primary);
  --forum-text-secondary: var(--text-secondary);
  --forum-border: var(--border);
  --forum-accent: var(--accent-purple);
  --forum-accent-hover: var(--accent-gold);
}

/* ==========================================================================
   CONTAINER PRINCIPAL
   ========================================================================== */

.forum-container {
  max-width: 1400px;
  margin: 80px auto 40px;
  padding: 0 var(--spacing-page);
}

/* ==========================================================================
   HEADER DO FÓRUM
   ========================================================================== */

.forum-header {
  text-align: center;
  margin-bottom: 48px;
  padding: 40px 20px;
  background: var(--forum-surface);
  border-radius: var(--radius-card);
  border: 1px solid var(--forum-border);
}

.forum-title {
  font-family: var(--font-titles);
  font-size: 3.5rem;
  color: var(--forum-text);
  margin-bottom: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.forum-title i {
  color: var(--forum-accent);
  margin-right: 12px;
}

.forum-subtitle {
  font-size: 1.2rem;
  color: var(--forum-text-secondary);
  margin-bottom: 32px;
}

.forum-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */

.forum-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 12px 20px;
  background: var(--forum-surface);
  border-radius: var(--radius-button);
  border: 1px solid var(--forum-border);
  font-size: 0.95rem;
}

.forum-breadcrumb a {
  color: var(--forum-text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.forum-breadcrumb a:hover {
  color: var(--forum-accent);
}

.forum-breadcrumb .separator {
  color: var(--forum-border);
}

.forum-breadcrumb .current {
  color: var(--forum-text);
  font-weight: 600;
}

/* ==========================================================================
   CATEGORIAS (Index)
   ========================================================================== */

.forum-categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 48px;
}

.category-card {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 24px;
  align-items: center;
  background: var(--forum-surface);
  border: 1px solid var(--forum-border);
  border-left-width: 4px;
  border-radius: var(--radius-card);
  padding: 24px;
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(162, 89, 255, 0.15);
  border-left-width: 6px;
}

.category-icon {
  font-size: 3rem;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.category-info {
  min-width: 0;
}

.category-name {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.category-name a {
  color: var(--forum-text);
  text-decoration: none;
  transition: color 0.2s;
}

.category-name a:hover {
  color: var(--forum-accent);
}

.category-description {
  color: var(--forum-text-secondary);
  line-height: 1.6;
}

/* Subfóruns */
.subforums-list {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--forum-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.subforums-label {
  font-weight: 600;
  color: var(--forum-text-secondary);
  margin-right: 4px;
}

.subforums-label i {
  margin-right: 4px;
}

.subforum-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--forum-surface-hover);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.subforum-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.subforum-count {
  font-size: 0.85em;
  opacity: 0.7;
}

.subforum-separator {
  color: var(--forum-border);
  margin: 0 4px;
}

/* Seção de Subfóruns na Categoria */
.subforums-section {
  margin: 24px 0;
  padding: 20px;
  background: var(--forum-surface);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.subforums-section-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--forum-text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.subforums-section-title i {
  color: var(--forum-primary);
}

.subforums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.subforum-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--forum-surface);
  border: 1px solid var(--forum-border);
  border-left: 4px solid;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.subforum-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: var(--forum-primary);
}

.subforum-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.subforum-info {
  flex: 1;
}

.subforum-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--forum-text);
  margin: 0 0 4px 0;
}

.subforum-description {
  font-size: 0.85rem;
  color: var(--forum-text-secondary);
  margin: 0;
  line-height: 1.4;
}

.subforum-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.subforum-stat {
  font-size: 0.85rem;
  color: var(--forum-text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.subforum-stat i {
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .subforums-grid {
    grid-template-columns: 1fr;
  }
  
  .subforum-card {
    flex-direction: column;
    text-align: center;
  }
  
  .subforum-stats {
    flex-direction: row;
    align-items: center;
  }
}

.category-stats {
  display: flex;
  gap: 24px;
}

.category-stats .stat {
  text-align: center;
}

.category-stats .stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--forum-accent);
}

.category-stats .stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--forum-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category-activity {
  min-width: 250px;
  padding-left: 24px;
  border-left: 1px solid var(--forum-border);
}

.last-activity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.activity-info {
  min-width: 0;
}

.activity-title {
  display: block;
  color: var(--forum-text);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s;
}

.activity-title:hover {
  color: var(--forum-accent);
}

.activity-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--forum-text-secondary);
}

.activity-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--forum-border);
}

.activity-author {
  font-weight: 600;
  color: var(--forum-text);
}

.activity-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

.no-activity {
  text-align: center;
  color: var(--forum-text-secondary);
  padding: 20px;
}

.no-activity i {
  display: block;
  font-size: 2rem;
  margin-bottom: 8px;
  opacity: 0.5;
}

/* ==========================================================================
   HEADER DA CATEGORIA
   ========================================================================== */

.category-header {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--forum-surface);
  border: 1px solid var(--forum-border);
  border-left-width: 4px;
  border-radius: var(--radius-card);
  padding: 32px;
  margin-bottom: 32px;
}

.category-icon-large {
  font-size: 4rem;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.category-header-info {
  flex: 1;
}

.category-header h1 {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.category-header p {
  color: var(--forum-text-secondary);
  font-size: 1.1rem;
}

.btn-create-thread {
  flex-shrink: 0;
}

/* ==========================================================================
   FILTROS
   ========================================================================== */

.category-filters {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  padding: 20px;
  background: var(--forum-surface);
  border-radius: var(--radius-card);
  border: 1px solid var(--forum-border);
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-group label {
  color: var(--forum-text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.filter-select {
  padding: 8px 16px;
  background: var(--forum-bg);
  color: var(--forum-text);
  border: 1px solid var(--forum-border);
  border-radius: var(--radius-button);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-select:focus {
  outline: none;
  border-color: var(--forum-accent);
  box-shadow: 0 0 0 3px rgba(162, 89, 255, 0.1);
}

.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--forum-surface-hover);
  color: var(--forum-accent);
  border: 1px solid var(--forum-border);
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.tag:hover {
  background: var(--forum-accent);
  color: #fff;
  transform: translateY(-2px);
}

.tag.active {
  background: var(--forum-accent);
  color: #fff;
}

.tag-clear {
  padding: 6px 12px;
  background: var(--accent-red);
  color: #fff;
  border-radius: 16px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
}

.tag-clear:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

/* ==========================================================================
   LISTA DE THREADS
   ========================================================================== */

.threads-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.thread-item {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  gap: 20px;
  align-items: center;
  background: var(--forum-surface);
  border: 1px solid var(--forum-border);
  border-radius: var(--radius-card);
  padding: 20px;
  transition: all 0.3s ease;
}

.thread-item:hover {
  border-color: var(--forum-accent);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(162, 89, 255, 0.15);
}

.thread-item.pinned {
  border-left: 4px solid var(--accent-gold);
  background: linear-gradient(90deg, rgba(255, 184, 0, 0.05) 0%, var(--forum-surface) 100%);
}

.thread-item.locked {
  opacity: 0.8;
}

.thread-status {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--accent-gold);
  font-size: 1.2rem;
}

.thread-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--forum-border);
}

.thread-content {
  min-width: 0;
}

.thread-title {
  font-size: 1.3rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.thread-title a {
  color: var(--forum-text);
  text-decoration: none;
  transition: color 0.2s;
}

.thread-title a:hover {
  color: var(--forum-accent);
}

.thread-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--forum-text-secondary);
  margin-bottom: 8px;
}

.thread-author a {
  color: var(--forum-text);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.thread-author a:hover {
  color: var(--forum-accent);
}

.thread-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.thread-stats {
  display: flex;
  gap: 16px;
}

.thread-stats .stat {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--forum-text-secondary);
  font-size: 0.9rem;
}

.thread-stats .stat i {
  color: var(--forum-accent);
}

.thread-activity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}

.thread-activity .activity-avatar {
  width: 32px;
  height: 32px;
}

.thread-activity .activity-info {
  min-width: 0;
}

.thread-activity .activity-user {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--forum-text);
}

.thread-activity .activity-time {
  display: block;
  font-size: 0.8rem;
  color: var(--forum-text-secondary);
}

.no-threads {
  text-align: center;
  padding: 80px 20px;
  background: var(--forum-surface);
  border-radius: var(--radius-card);
  border: 2px dashed var(--forum-border);
}

.no-threads i {
  color: var(--forum-text-secondary);
  opacity: 0.5;
  margin-bottom: 24px;
}

.no-threads h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: var(--forum-text);
}

.no-threads p {
  font-size: 1.1rem;
  color: var(--forum-text-secondary);
  margin-bottom: 24px;
}

/* ==========================================================================
   PÁGINA DA THREAD
   ========================================================================== */

.thread-page {
  max-width: 1200px;
}

.thread-main {
  margin-bottom: 32px;
}

.thread-badges {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-button);
  font-size: 0.9rem;
  font-weight: 600;
}

.badge-pinned {
  background: rgba(255, 184, 0, 0.2);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
}

.badge-locked {
  background: rgba(229, 57, 53, 0.2);
  color: var(--accent-red);
  border: 1px solid var(--accent-red);
}

.badge-inactive {
  background: rgba(255, 152, 0, 0.2);
  color: #ff9800;
  border: 1px solid #ff9800;
}

.thread-main-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1.3;
}

.thread-main-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.post-container {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  background: var(--forum-surface);
  border: 1px solid var(--forum-border);
  border-radius: var(--radius-card);
  padding: 24px;
  margin-bottom: 16px;
}

.op-post {
  border-left: 4px solid var(--forum-accent);
}

.post-author-info {
  text-align: center;
}

.author-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--forum-border);
  margin-bottom: 12px;
}

.author-name {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--forum-text);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.author-name:hover {
  color: var(--forum-accent);
}

.author-reputation {
  margin-bottom: 12px;
}

.rep-title {
  display: block;
  font-size: 0.85rem;
  color: var(--forum-accent);
  font-weight: 600;
  margin-bottom: 4px;
}

.rep-level {
  display: block;
  font-size: 0.8rem;
  color: var(--forum-text-secondary);
  margin-bottom: 8px;
}

.rep-badges {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.badge-icon {
  font-size: 1.3rem;
  cursor: help;
}

.author-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--forum-text-secondary);
}

.author-stats span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.post-content-area {
  min-width: 0;
}

.post-date {
  font-size: 0.85rem;
  color: var(--forum-text-secondary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.quoted-post {
  background: var(--forum-bg);
  border-left: 3px solid var(--forum-accent);
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: var(--radius-button);
  font-style: italic;
  color: var(--forum-text-secondary);
}

.quoted-post i {
  color: var(--forum-accent);
  margin-right: 8px;
}

.post-content {
  line-height: 1.8;
  font-size: 1.05rem;
  color: var(--forum-text);
  margin-bottom: 20px;
  word-wrap: break-word;
}

.post-reactions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--forum-border);
  border-bottom: 1px solid var(--forum-border);
  margin-bottom: 16px;
}

.reactions-display {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.reaction-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--forum-surface-hover);
  border-radius: 16px;
  font-size: 0.9rem;
  font-weight: 600;
}

.reactions-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.reaction-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--forum-border);
  background: var(--forum-surface-hover);
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.2s;
}

.reaction-btn:hover {
  transform: scale(1.1);
  background: var(--forum-accent);
}

.reaction-btn.active {
  background: var(--forum-accent);
  border-color: var(--forum-accent);
  transform: scale(1.15);
}

.post-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-action {
  padding: 8px 16px;
  background: var(--forum-surface-hover);
  color: var(--forum-text);
  border: 1px solid var(--forum-border);
  border-radius: var(--radius-button);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-action:hover {
  background: var(--forum-accent);
  color: #fff;
  border-color: var(--forum-accent);
  transform: translateY(-2px);
}

/* Botões de Moderação */
.mod-actions-inline {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: 12px;
}

.btn-mod {
  background: var(--accent-purple) !important;
  color: #fff !important;
  border-color: var(--accent-purple) !important;
}

.btn-mod:hover {
  background: var(--accent-gold) !important;
  border-color: var(--accent-gold) !important;
  color: #1a1a2e !important;
}

.btn-mod-danger {
  background: var(--accent-red) !important;
  color: #fff !important;
  border-color: var(--accent-red) !important;
}

.btn-mod-danger:hover {
  background: #d32f2f !important;
  border-color: #d32f2f !important;
  opacity: 0.9;
}

.btn-mod-warning {
  background: #ff9800 !important;
  color: #fff !important;
  border-color: #ff9800 !important;
}

.btn-mod-warning:hover {
  background: #f57c00 !important;
  border-color: #f57c00 !important;
}

.thread-stats-bar {
  display: flex;
  gap: 32px;
  padding: 20px;
  background: var(--forum-surface);
  border-radius: var(--radius-button);
  border: 1px solid var(--forum-border);
  font-size: 0.95rem;
  color: var(--forum-text-secondary);
  margin-bottom: 32px;
}

.thread-stats-bar i {
  color: var(--forum-accent);
  margin-right: 8px;
}

/* ==========================================================================
   FORMULÁRIO DE RESPOSTA
   ========================================================================== */

.reply-form {
  background: var(--forum-surface);
  border: 1px solid var(--forum-border);
  border-radius: var(--radius-card);
  padding: 32px;
  margin-bottom: 32px;
}

.form-title {
  font-size: 1.8rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-title i {
  color: var(--forum-accent);
}

.replying-to {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--forum-bg);
  border-radius: var(--radius-button);
  margin-bottom: 16px;
  border-left: 3px solid var(--forum-accent);
}

.btn-cancel-reply {
  background: transparent;
  border: none;
  color: var(--accent-red);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-cancel-reply:hover {
  background: rgba(229, 57, 53, 0.1);
}

.quoted-preview {
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-left: 4px solid var(--forum-accent);
  border-radius: 8px;
  margin-bottom: 16px;
  font-style: italic;
  color: var(--forum-text);
  position: relative;
  animation: slideInQuote 0.3s ease;
}

@keyframes slideInQuote {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.quoted-preview i {
  color: var(--forum-accent);
  margin-right: 8px;
  font-size: 1.2em;
}

.quoted-preview::before {
  content: "Citando:";
  display: block;
  font-weight: 600;
  font-style: normal;
  color: var(--forum-accent);
  margin-bottom: 8px;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--forum-text);
}

.required {
  color: var(--accent-red);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--forum-bg);
  color: var(--forum-text);
  border: 1px solid var(--forum-border);
  border-radius: var(--radius-button);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: all 0.2s;
  resize: vertical;
}

.form-control:focus {
  outline: none;
  border-color: var(--forum-accent);
  box-shadow: 0 0 0 3px rgba(162, 89, 255, 0.1);
}

.form-text {
  display: block;
  font-size: 0.85rem;
  color: var(--forum-text-secondary);
  margin-top: 6px;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.thread-locked-notice,
.login-prompt {
  text-align: center;
  padding: 48px 20px;
  background: var(--forum-surface);
  border-radius: var(--radius-card);
  border: 2px dashed var(--forum-border);
}

.thread-locked-notice i,
.login-prompt i {
  color: var(--forum-text-secondary);
  margin-bottom: 16px;
}

.thread-locked-notice p,
.login-prompt p {
  font-size: 1.1rem;
  color: var(--forum-text-secondary);
  margin-bottom: 24px;
}

/* ==========================================================================
   FORMULÁRIO DE CRIAR THREAD
   ========================================================================== */

.create-thread-form {
  background: var(--forum-surface);
  border: 1px solid var(--forum-border);
  border-radius: var(--radius-card);
  padding: 40px;
}

.tags-preview {
  margin-bottom: 24px;
  padding: 16px;
  background: var(--forum-bg);
  border-radius: var(--radius-button);
}

#tagsContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.formatting-tips {
  background: var(--forum-bg);
  padding: 20px;
  border-radius: var(--radius-button);
  border-left: 3px solid var(--forum-accent);
  margin-bottom: 24px;
}

.formatting-tips h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--forum-text);
}

.formatting-tips h4 i {
  color: var(--forum-accent);
}

.formatting-tips ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.formatting-tips li {
  padding: 6px 0;
  color: var(--forum-text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.formatting-tips li::before {
  content: '•';
  color: var(--forum-accent);
  font-weight: bold;
  font-size: 1.2rem;
}

/* ==========================================================================
   ESTATÍSTICAS E REGRAS
   ========================================================================== */

.forum-stats-section,
.forum-rules {
  margin-bottom: 48px;
}

.forum-stats-section h3,
.forum-rules h3 {
  font-size: 1.8rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.forum-stats-section h3 i,
.forum-rules h3 i {
  color: var(--forum-accent);
}

.forum-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.stat-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--forum-surface);
  border: 1px solid var(--forum-border);
  border-radius: var(--radius-card);
  padding: 24px;
  transition: all 0.3s ease;
}

.stat-box:hover {
  border-color: var(--forum-accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(162, 89, 255, 0.15);
}

.stat-icon {
  font-size: 3rem;
  color: var(--forum-accent);
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--forum-text);
}

.stat-text {
  font-size: 0.9rem;
  color: var(--forum-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.forum-rules {
  background: var(--forum-surface);
  border: 1px solid var(--forum-border);
  border-radius: var(--radius-card);
  padding: 32px;
}

.rules-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rules-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--forum-border);
  font-size: 1.05rem;
  color: var(--forum-text-secondary);
}

.rules-list li:last-child {
  border-bottom: none;
}

.rules-list i {
  color: var(--accent-green);
  margin-top: 4px;
  font-size: 1.2rem;
}

/* ==========================================================================
   PAGINAÇÃO
   ========================================================================== */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.page-link {
  padding: 10px 16px;
  background: var(--forum-surface);
  color: var(--forum-text);
  border: 1px solid var(--forum-border);
  border-radius: var(--radius-button);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  min-width: 44px;
  text-align: center;
}

.page-link:hover {
  background: var(--forum-surface-hover);
  border-color: var(--forum-accent);
  transform: translateY(-2px);
}

.page-link.active {
  background: var(--forum-accent);
  border-color: var(--forum-accent);
  color: #fff;
}

.page-ellipsis {
  color: var(--forum-text-secondary);
  padding: 0 8px;
}

/* ==========================================================================
   POSTS SECTION
   ========================================================================== */

.posts-section {
  margin-bottom: 32px;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title i {
  color: var(--forum-accent);
}

.no-posts {
  text-align: center;
  padding: 60px 20px;
  background: var(--forum-surface);
  border-radius: var(--radius-card);
  border: 2px dashed var(--forum-border);
}

.no-posts i {
  color: var(--forum-text-secondary);
  opacity: 0.5;
  margin-bottom: 20px;
}

.no-posts p {
  font-size: 1.1rem;
  color: var(--forum-text-secondary);
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */

@media (max-width: 1024px) {
  .category-card {
    grid-template-columns: auto 1fr;
    gap: 16px;
  }

  .category-stats {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .category-activity {
    grid-column: 1 / -1;
    border-left: none;
    border-top: 1px solid var(--forum-border);
    padding-left: 0;
    padding-top: 16px;
  }

  .thread-item {
    grid-template-columns: 1fr;
  }

  .thread-status,
  .thread-avatar,
  .thread-stats,
  .thread-activity {
    justify-self: start;
  }

  .post-container {
    grid-template-columns: 1fr;
  }

  .post-author-info {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
  }

  .author-avatar-large {
    width: 60px;
    height: 60px;
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .forum-title {
    font-size: 2.5rem;
  }

  .forum-subtitle {
    font-size: 1rem;
  }

  .category-header {
    flex-direction: column;
    text-align: center;
  }

  .category-icon-large {
    width: 80px;
    height: 80px;
    font-size: 3rem;
  }

  .category-filters {
    flex-direction: column;
  }

  .filter-group {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-select {
    width: 100%;
  }

  .thread-main-title {
    font-size: 1.8rem;
  }

  .post-reactions {
    flex-direction: column;
    gap: 16px;
  }

  .reactions-buttons {
    width: 100%;
    justify-content: center;
  }

  .post-actions {
    flex-direction: column;
  }

  .btn-action {
    width: 100%;
    justify-content: center;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .forum-container {
    padding: 0 16px;
  }

  .forum-header {
    padding: 24px 16px;
  }

  .forum-title {
    font-size: 2rem;
  }

  .category-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

  .create-thread-form {
    padding: 24px 16px;
  }
}

/* ========================================
   USER PROFILE STYLES
   ======================================== */

.profile-header {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.profile-header-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.profile-avatar-large {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-color);
  flex-shrink: 0;
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: var(--text-primary);
  font-size: 3rem;
  font-weight: bold;
}

.profile-badge-overlay {
  position: absolute;
  bottom: -5px;
  right: -5px;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  border: 3px solid var(--surface);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.profile-badge-overlay.faction-overlay.faction-pirate {
  background: linear-gradient(135deg, #A259FF, #FFB800);
}

.profile-badge-overlay.faction-overlay.faction-marine {
  background: linear-gradient(135deg, #A259FF, #FFB800);
}

.profile-faction-info {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin: 1rem 0;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(162, 89, 255, 0.1), rgba(255, 184, 0, 0.1));
  border-radius: 12px;
  border: 2px solid rgba(162, 89, 255, 0.3);
}

.faction-rank-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rank-icon {
  font-size: 1.5rem;
}

.rank-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFB800;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.faction-bounty-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 2rem;
  border-left: 2px solid rgba(162, 89, 255, 0.3);
}

.bounty-icon {
  font-size: 1.5rem;
}

.bounty-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bounty-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: #A259FF;
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 15px rgba(162, 89, 255, 0.5);
}

.profile-info {
  flex: 1;
}

.profile-username {
  font-size: 2rem;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-badges {
  display: flex;
  gap: 0.5rem;
  font-size: 1.5rem;
}

.profile-stats-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.stat-divider {
  color: var(--border-color);
}

.profile-bio {
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
}

.level-progress {
  margin-top: 1.5rem;
}

.progress-bar-container {
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-card .stat-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Stats de Facção */
.stat-card.faction-stat {
  background: linear-gradient(135deg, rgba(162, 89, 255, 0.1), rgba(255, 184, 0, 0.1));
  border: 2px solid rgba(162, 89, 255, 0.3);
}

.stat-card.faction-stat .stat-value {
  color: #FFB800;
  font-size: 1.2rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.stat-card.bounty-stat {
  background: linear-gradient(135deg, rgba(162, 89, 255, 0.15), rgba(255, 184, 0, 0.15));
  border: 2px solid rgba(255, 184, 0, 0.4);
}

.stat-card.bounty-stat .stat-value {
  color: #A259FF;
  font-family: 'Courier New', monospace;
  font-size: 1.3rem;
  text-shadow: 0 0 10px rgba(162, 89, 255, 0.5);
}

.profile-section {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.5rem;
  margin: 0 0 1.5rem 0;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.badge-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.badge-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-color);
}

.badge-icon-large {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.badge-name {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.badge-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.badge-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.activity-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
}

.activity-tab {
  background: transparent;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.3s ease;
}

.activity-tab:hover {
  color: var(--text-primary);
}

.activity-tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  font-weight: 600;
}

.posts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-preview {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.post-preview:hover {
  border-color: var(--primary-color);
  transform: translateX(4px);
}

.post-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.post-thread-link {
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.post-thread-link:hover {
  color: var(--primary-color);
}

.post-date {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.post-preview-content {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.post-preview-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.post-reactions {
  display: flex;
  gap: 0.5rem;
}

.reaction-count {
  font-size: 0.875rem;
}

.view-post-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.view-post-link:hover {
  text-decoration: underline;
}

/* ========================================
   SEARCH PAGE STYLES
   ======================================== */

.search-header {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.search-header h1 {
  margin: 0 0 1.5rem 0;
  font-size: 1.75rem;
}

.search-form-main {
  display: flex;
  gap: 1rem;
}

.search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.search-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 150px;
}

.filter-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.filter-select {
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.875rem;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.search-summary {
  padding: 1rem;
  background: var(--bg-secondary);
  border-left: 3px solid var(--primary-color);
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.search-summary strong {
  color: var(--primary-color);
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.search-result-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.search-result-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.result-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.result-type {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.thread-type {
  background: var(--primary-color);
  color: white;
}

.post-type {
  background: var(--secondary-color);
  color: white;
}

.result-category {
  font-size: 0.875rem;
  font-weight: 500;
}

.result-title {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
}

.result-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.result-title a:hover {
  color: var(--primary-color);
}

.result-excerpt {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.result-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.result-author strong {
  color: var(--text-primary);
}

.result-stats {
  display: flex;
  gap: 0.75rem;
}

.result-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.empty-state-large {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state-large h2 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
}

.empty-state-large p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.search-tips {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 8px;
}

.search-tips h3 {
  margin: 0 0 1rem 0;
  font-size: 1.125rem;
}

.search-tips ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-tips li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.search-tips li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* ============================================================================
   ESTILOS ESTILO REDDIT
   ============================================================================ */

.posts-section.reddit-style {
  margin-top: 2rem;
}

.reddit-comment {
  position: relative;
  display: flex;
  margin-bottom: 0.5rem;
  padding: 0.5rem 0;
}

.comment-inactive {
  opacity: 0.6;
  background: rgba(255, 152, 0, 0.05);
  border-left: 3px solid #ff9800;
  padding-left: 8px;
  margin-left: -8px;
}

.comment-inactive::before {
  content: "🔒 Inativo (visível apenas para admins)";
  display: block;
  font-size: 0.75rem;
  color: #ff9800;
  font-weight: bold;
  margin-bottom: 4px;
  padding-left: 48px;
}

.comment-line {
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
  opacity: 0.3;
}

.comment-vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.25rem 0.5rem;
  min-width: 40px;
  flex-shrink: 0;
}

.vote-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1.25rem;
  transition: all 0.2s ease;
}

.vote-btn:hover {
  color: var(--text-primary);
}

.vote-btn.upvote.active {
  color: #ff6b35;
}

.vote-btn.downvote.active {
  color: #7c7cff;
}

.vote-score {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0.25rem 0;
  color: var(--text-secondary);
}

.vote-score.positive {
  color: #ff6b35;
}

.vote-score.negative {
  color: #7c7cff;
}

.vote-score-only {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
  gap: 0.25rem;
}

.comment-body {
  flex: 1;
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 0.75rem;
  border-left: 2px solid var(--border-color);
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.comment-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-author {
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comment-author:hover {
  color: var(--primary-color);
}

.comment-faction-rank {
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  margin-left: 0.25rem;
}

.comment-bounty {
  font-size: 0.7rem;
  padding: 0.125rem 0.5rem;
  background: linear-gradient(135deg, rgba(162, 89, 255, 0.2), rgba(255, 184, 0, 0.2));
  color: #FFB800;
  border-radius: 12px;
  font-weight: 600;
  margin-left: 0.5rem;
  font-family: 'Courier New', monospace;
}

.comment-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.comment-quoted {
  background: var(--bg-primary);
  border-left: 3px solid var(--primary-color);
  padding: 0.5rem;
  margin: 0.5rem 0;
  border-radius: 4px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-style: italic;
}

.comment-content {
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0.5rem 0;
  word-wrap: break-word;
}

/* Formatação HTML do editor WYSIWYG nos comentários e posts */
.comment-content h1,
.comment-content h2,
.comment-content h3,
.post-content h1,
.post-content h2,
.post-content h3 {
  font-weight: bold;
  margin-top: 0.8em;
  margin-bottom: 0.5em;
  color: var(--forum-text);
}

.comment-content h1,
.post-content h1 { font-size: 1.8em; }
.comment-content h2,
.post-content h2 { font-size: 1.5em; }
.comment-content h3,
.post-content h3 { font-size: 1.2em; }

.comment-content blockquote,
.post-content blockquote {
  border-left: 4px solid var(--forum-accent);
  padding-left: 16px;
  margin: 16px 0;
  color: #666;
  font-style: italic;
  background: rgba(139, 92, 246, 0.05);
  padding: 12px 16px;
  border-radius: 4px;
}

.comment-content code,
.post-content code {
  background: #f4f4f4;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  color: #e83e8c;
  font-size: 0.9em;
}

.comment-content pre,
.post-content pre {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 16px 0;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  line-height: 1.5;
}

.comment-content ul,
.comment-content ol,
.post-content ul,
.post-content ol {
  margin: 12px 0;
  padding-left: 30px;
}

.comment-content li,
.post-content li {
  margin: 6px 0;
}

.comment-content a,
.post-content a {
  color: var(--forum-accent);
  text-decoration: underline;
  transition: color 0.2s;
}

.comment-content a:hover,
.post-content a:hover {
  color: var(--forum-accent-hover);
}

.comment-content img,
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
  display: block;
}

.comment-content video,
.post-content video {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
}

.comment-content iframe,
.post-content iframe {
  max-width: 100%;
  border-radius: 8px;
  margin: 16px 0;
}

.comment-content strong,
.post-content strong {
  font-weight: bold;
}

.comment-content em,
.post-content em {
  font-style: italic;
}

.comment-content u,
.post-content u {
  text-decoration: underline;
}

.comment-content s,
.post-content s {
  text-decoration: line-through;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.comment-action-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.comment-action-btn:hover {
  background: var(--bg-primary);
  color: var(--primary-color);
}

.comment-action-btn i {
  font-size: 0.875rem;
}

/* Botões de Responder e Citar - Destaque */
.btn-reply,
.comment-action-btn.btn-reply {
  color: #10b981 !important;
  font-weight: 600;
}

.btn-reply:hover,
.comment-action-btn.btn-reply:hover {
  background: rgba(16, 185, 129, 0.1) !important;
  color: #059669 !important;
}

.btn-quote,
.comment-action-btn.btn-quote {
  color: #8b5cf6 !important;
  font-weight: 600;
}

.btn-quote:hover,
.comment-action-btn.btn-quote:hover {
  background: rgba(139, 92, 246, 0.1) !important;
  color: #7c3aed !important;
}

/* Botão de Report */
.btn-report,
.btn-report-post {
  color: var(--accent-red) !important;
  border-color: var(--accent-red) !important;
}

.btn-report:hover,
.btn-report-post:hover {
  background: var(--accent-red) !important;
  color: white !important;
}

.comment-action-btn.btn-report-post {
  color: var(--accent-red);
}

.comment-action-btn.btn-report-post:hover {
  background: rgba(229, 57, 53, 0.1);
  color: var(--accent-red);
}

/* Modal de Report */
.report-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.report-modal-content {
  background: var(--forum-surface);
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
  border: 1px solid var(--forum-border);
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.report-modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--forum-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.report-modal-header h3 {
  font-size: 1.25rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--forum-text);
}

.report-modal-header i {
  color: var(--accent-red);
}

.report-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--forum-text-secondary);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.report-modal-close:hover {
  background: var(--forum-bg);
  color: var(--accent-red);
}

.report-modal-body {
  padding: 1.5rem;
}

.report-modal-body p {
  margin: 0 0 1rem 0;
  color: var(--forum-text-secondary);
  font-size: 0.95rem;
}

.report-select,
.report-textarea {
  width: 100%;
  padding: 0.875rem;
  border: 1px solid var(--forum-border);
  border-radius: 8px;
  background: var(--forum-bg);
  color: var(--forum-text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
  margin-bottom: 1rem;
}

.report-select:focus,
.report-textarea:focus {
  outline: none;
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.report-textarea {
  resize: vertical;
  min-height: 100px;
}

.report-modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--forum-border);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.btn-cancel,
.btn-submit-report {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-cancel {
  background: var(--forum-bg);
  color: var(--forum-text);
  border: 1px solid var(--forum-border);
}

.btn-cancel:hover {
  background: var(--forum-surface-hover);
}

.btn-submit-report {
  background: linear-gradient(135deg, var(--accent-red) 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 4px 8px rgba(229, 57, 53, 0.2);
}

.btn-submit-report:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(229, 57, 53, 0.3);
}

.collapse-btn {
  font-weight: 600;
}

.comment-replies {
  display: block;
}

/* Dark Mode para estilos Reddit */
[data-theme="dark"] .reddit-comment {
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .comment-body {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .comment-line {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .vote-btn:hover {
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .comment-action-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Responsivo */
@media (max-width: 768px) {
  .reddit-comment {
    font-size: 0.875rem;
  }
  
  .comment-vote {
    min-width: 30px;
    padding: 0.25rem;
  }
  
  .vote-btn {
    font-size: 1rem;
  }
  
  .comment-body {
    padding: 0.5rem;
  }
  
  .comment-avatar {
    width: 20px;
    height: 20px;
  }
}

/* ==========================================================================
   MODERAÇÃO
   ========================================================================== */

/* Toolbar de moderação */
.moderation-toolbar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1rem;
  background: rgba(229, 57, 53, 0.1);
  border: 1px solid var(--accent-red);
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.btn-mod-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--forum-surface);
  color: var(--forum-text);
  border: 1px solid var(--forum-border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-mod-toolbar:hover {
  background: var(--forum-surface-hover);
  border-color: var(--forum-accent);
  transform: translateY(-2px);
}

.btn-mod-toolbar.active {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
}

.btn-mod-toolbar.btn-delete {
  background: rgba(229, 57, 53, 0.1);
  color: var(--accent-red);
  border-color: var(--accent-red);
}

.btn-mod-toolbar.btn-delete:hover {
  background: var(--accent-red);
  color: #fff;
}

/* Badges de usuário */
.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 0.5rem;
}

.admin-badge {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.mod-badge {
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
  color: #fff;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* Badges de Facção */
.faction-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.faction-badge.faction-pirate {
  background: linear-gradient(135deg, #A259FF, #FFB800);
  color: #fff;
  box-shadow: 0 2px 8px rgba(162, 89, 255, 0.4);
}

.faction-badge.faction-marine {
  background: linear-gradient(135deg, #A259FF, #FFB800);
  color: #fff;
  box-shadow: 0 2px 8px rgba(162, 89, 255, 0.4);
}

.faction-rank-title {
  font-weight: 600;
  font-style: italic;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Sistema de Bounty (Recompensa) */
.author-bounty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: linear-gradient(135deg, rgba(162, 89, 255, 0.1), rgba(255, 184, 0, 0.1));
  border-left: 3px solid #FFB800;
  border-radius: 6px;
}

.bounty-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #FFB800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bounty-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #A259FF;
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 10px rgba(162, 89, 255, 0.3);
}

/* Botão de denúncia */
.btn-flag {
  color: var(--accent-red) !important;
  border-color: var(--accent-red) !important;
}

.btn-flag:hover {
  background: var(--accent-red) !important;
  color: #fff !important;
}

/* Modal de denúncia */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
}

.modal-content {
  background: var(--forum-surface);
  border: 1px solid var(--forum-border);
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--forum-border);
}

.modal-header h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--forum-text);
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--forum-text-secondary);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--forum-surface-hover);
  color: var(--forum-text);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding: 1.5rem;
  border-top: 1px solid var(--forum-border);
}

.form-help {
  font-size: 0.85rem;
  color: var(--forum-text-secondary);
  margin-top: 0.5rem;
}

/* Dashboard de moderação */
.moderation-header {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--forum-surface);
  border: 1px solid var(--forum-border);
  border-radius: 12px;
  margin-bottom: 2rem;
}

.moderation-header h1 {
  margin: 0 0 0.5rem 0;
  color: var(--forum-text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.moderation-header p {
  color: var(--forum-text-secondary);
  margin: 0;
}

.moderation-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--forum-surface);
  border: 1px solid var(--forum-border);
  border-radius: 12px;
  transition: all 0.3s;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.stat-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.75rem;
}

.stat-info {
  flex: 1;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--forum-text);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--forum-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.moderation-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--forum-border);
}

.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--forum-text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: -2px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tab-btn:hover {
  color: var(--forum-text);
}

.tab-btn.active {
  color: var(--forum-accent);
  border-bottom-color: var(--forum-accent);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.flagged-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.flagged-item {
  background: var(--forum-surface);
  border: 1px solid var(--accent-red);
  border-left-width: 4px;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s;
}

.flagged-item:hover {
  box-shadow: 0 4px 16px rgba(229, 57, 53, 0.2);
}

.flagged-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.flagged-title h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
}

.flagged-title h3 a {
  color: var(--forum-text);
  text-decoration: none;
  transition: color 0.2s;
}

.flagged-title h3 a:hover {
  color: var(--forum-accent);
}

.flagged-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--forum-text-secondary);
}

.flag-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(229, 57, 53, 0.2);
  color: var(--accent-red);
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

.flagged-content {
  padding: 1rem;
  background: var(--forum-bg);
  border-radius: 8px;
  margin-bottom: 1rem;
  color: var(--forum-text-secondary);
  line-height: 1.6;
}

.flags-details {
  padding: 1rem;
  background: rgba(229, 57, 53, 0.05);
  border-radius: 8px;
  margin-bottom: 1rem;
}

.flags-details h4 {
  margin: 0 0 0.75rem 0;
  font-size: 0.95rem;
  color: var(--forum-text);
}

.flag-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--forum-border);
  font-size: 0.9rem;
  color: var(--forum-text-secondary);
}

.flag-item:last-child {
  border-bottom: none;
}

.flag-item strong {
  color: var(--forum-text);
}

.flag-date {
  color: var(--forum-text-muted);
  font-size: 0.85rem;
}

.flagged-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-mod {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--forum-border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-view {
  background: var(--forum-surface-hover);
  color: var(--forum-text);
}

.btn-view:hover {
  background: var(--forum-accent);
  color: #fff;
  border-color: var(--forum-accent);
}

.btn-lock {
  background: rgba(255, 152, 0, 0.1);
  color: #ff9800;
  border-color: #ff9800;
}

.btn-lock:hover {
  background: #ff9800;
  color: #fff;
}

.btn-unlock {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
  border-color: #4caf50;
}

.btn-unlock:hover {
  background: #4caf50;
  color: #fff;
}

.btn-delete {
  background: rgba(229, 57, 53, 0.1);
  color: var(--accent-red);
  border-color: var(--accent-red);
}

.btn-delete:hover {
  background: var(--accent-red);
  color: #fff;
}

.btn-dismiss {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
  border-color: #4caf50;
}

.btn-dismiss:hover {
  background: #4caf50;
  color: #fff;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--forum-surface);
  border-radius: 12px;
  border: 2px dashed var(--forum-border);
}

.empty-state i {
  font-size: 4rem;
  color: var(--accent-green);
  margin-bottom: 1rem;
  opacity: 0.7;
}

.empty-state h3 {
  margin: 0 0 0.5rem 0;
  color: var(--forum-text);
}

.empty-state p {
  margin: 0;
  color: var(--forum-text-secondary);
  font-size: 1.1rem;
}

/* === Botão de Moderação no Navbar === */
.moderation-link {
  color: #ff6b6b !important;
  font-weight: 600 !important;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.3s ease;
  position: relative;
}

.moderation-link:hover {
  color: #ff4757 !important;
  text-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

.report-badge {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.6);
  }
}

/* === Menu de Moderação nos Posts === */
.comment-mod-menu {
  position: relative;
  display: inline-block;
}

.mod-btn {
  color: #ff6b6b !important;
  font-weight: 600;
}

.mod-btn:hover {
  color: #ff4757 !important;
  background: rgba(255, 107, 107, 0.1);
}

.mod-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  min-width: 180px;
  z-index: 1000;
  margin-top: 5px;
  overflow: hidden;
}

.mod-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: white;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  color: #333;
}

.mod-dropdown-item:hover {
  background: #f8f9fa;
}

.mod-dropdown-item i {
  color: #ff6b6b;
  width: 16px;
}

.mod-dropdown-item:first-child {
  border-top: none;
}

.mod-dropdown-item:not(:last-child) {
  border-bottom: 1px solid #eee;
}

/* Animação de abertura do dropdown */
.mod-dropdown[style*="display: block"] {
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estilos para botão de flag em posts normais */
.comment-action-btn .fa-flag {
  color: #ff6b6b;
}

.comment-action-btn:has(.fa-flag):hover {
  color: #ff4757;
  background: rgba(255, 107, 107, 0.1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .mod-dropdown {
    left: auto;
    right: 0;
  }
  
  .moderation-link {
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   IMAGE GALLERY - Posts and Threads
   ========================================================================== */

.post-images-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 16px;
}

.gallery-image {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1;
  background: var(--forum-surface-hover);
  border: 1px solid var(--forum-border);
  transition: all 0.3s ease;
}

.gallery-image:hover {
  transform: scale(1.02);
  border-color: var(--forum-accent);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-image:hover img {
  transform: scale(1.05);
}

/* Preview de imagens antes de enviar */
.image-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.image-preview-item {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--forum-border);
  background: var(--forum-surface-hover);
}

.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-image,
.remove-reply-image {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
  z-index: 10;
}

.remove-image:hover,
.remove-reply-image:hover {
  background: rgba(239, 68, 68, 1);
  transform: scale(1.1);
}

/* Gallery responsiva */
@media (max-width: 768px) {
  .post-images-gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
  }
  
  .image-preview-item {
    width: 100px;
    height: 100px;
  }
}

/* ==========================================================================
   WYSIWYG EDITOR (Quill)
   ========================================================================== */

.editor-toolbar-wrapper {
  border: 1px solid var(--forum-border);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

#toolbar {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid var(--forum-border);
  padding: 10px;
}

#editor,
#replyEditor {
  background: white !important;
  color: #1a1a1a !important;
  font-size: 1rem;
  line-height: 1.6;
}

.ql-editor {
  min-height: 300px;
  max-height: 600px;
  overflow-y: auto;
  color: #1a1a1a !important;
  background: white !important;
}

.ql-editor p,
.ql-editor div,
.ql-editor span,
.ql-editor li,
.ql-editor ol,
.ql-editor ul {
  color: #1a1a1a !important;
}

.ql-editor * {
  color: inherit;
}

.ql-editor.ql-blank::before {
  color: #999 !important;
  font-style: italic;
  opacity: 1 !important;
}

/* Forçar texto escuro no container do Quill */
.ql-container {
  color: #1a1a1a !important;
}

.ql-editor::before {
  color: #999 !important;
}

/* Estilização de conteúdo do editor */
.ql-editor h1,
.ql-editor h2,
.ql-editor h3 {
  font-weight: bold;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.ql-editor h1 { font-size: 2em; }
.ql-editor h2 { font-size: 1.5em; }
.ql-editor h3 { font-size: 1.17em; }

.ql-editor blockquote {
  border-left: 4px solid var(--forum-accent);
  padding-left: 16px;
  margin: 16px 0;
  color: #666;
  font-style: italic;
  background: rgba(139, 92, 246, 0.05);
  padding: 12px 16px;
  border-radius: 4px;
}

.ql-editor code {
  background: #f4f4f4;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  color: #e83e8c;
}

.ql-editor pre {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 16px 0;
}

/* Botão de Preview */
.btn-preview {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-preview:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-preview i {
  font-size: 1.1em;
}

/* ==========================================================================
   PREVIEW SECTION
   ========================================================================== */

.preview-section {
  margin-top: 30px;
  padding: 24px;
  background: var(--forum-surface);
  border: 2px solid var(--forum-accent);
  border-radius: 12px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.preview-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  color: var(--forum-accent);
  margin-bottom: 20px;
  font-family: var(--font-titles);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.preview-container {
  background: white;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--forum-border);
}

.preview-thread-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--forum-text);
  margin-bottom: 20px;
  font-family: var(--font-titles);
}

.preview-content {
  line-height: 1.8;
  color: var(--forum-text);
  margin-bottom: 20px;
  min-height: 100px;
}

.preview-content em {
  color: var(--forum-text-secondary);
}

.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.preview-tags .tag {
  background: linear-gradient(135deg, var(--forum-accent) 0%, #9f7aea 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Renderização do conteúdo formatado no preview */
.preview-content h1,
.preview-content h2,
.preview-content h3 {
  font-weight: bold;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.preview-content h1 { font-size: 2em; }
.preview-content h2 { font-size: 1.5em; }
.preview-content h3 { font-size: 1.17em; }

.preview-content blockquote {
  border-left: 4px solid var(--forum-accent);
  padding-left: 16px;
  margin: 16px 0;
  color: #666;
  font-style: italic;
  background: rgba(139, 92, 246, 0.05);
  padding: 12px 16px;
  border-radius: 4px;
}

.preview-content code {
  background: #f4f4f4;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  color: #e83e8c;
}

.preview-content pre {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 16px 0;
}

.preview-content ul,
.preview-content ol {
  margin: 12px 0;
  padding-left: 30px;
}

.preview-content li {
  margin: 6px 0;
}

.preview-content a {
  color: var(--forum-accent);
  text-decoration: underline;
}

.preview-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
}

.preview-content video {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
}

/* ==========================================================================
   QUOTE HINT - Tutorial de Citação
   ========================================================================== */

.reply-hint {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #fbbf24;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  animation: slideInHint 0.4s ease;
}

@keyframes slideInHint {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hint-icon {
  font-size: 2rem;
  line-height: 1;
}

.hint-content {
  flex: 1;
}

.hint-content strong {
  display: block;
  color: #92400e;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.hint-content p {
  color: #78350f;
  line-height: 1.6;
  margin: 0;
}

.hint-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(139, 92, 246, 0.9);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9em;
}

.hint-close {
  background: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #92400e;
  transition: all 0.2s;
  flex-shrink: 0;
}

.hint-close:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: rotate(90deg);
}

/* ============================================================================
   PERFIL DE USU�RIO
   ============================================================================ */

.profile-header {
  background: var(--forum-surface);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.profile-header-content {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.profile-avatar-large {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.profile-badge-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--forum-primary);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 3px solid white;
}

.profile-info {
  flex: 1;
}

.profile-username {
  font-size: 2rem;
  font-weight: 700;
  color: var(--forum-text);
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-role-badge {
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 600;
}

.user-role-badge.admin {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
}

.user-role-badge.seller {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
}

.profile-custom-title {
  font-size: 1.1rem;
  color: var(--forum-primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.profile-stats-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--forum-text-secondary);
}

.profile-bio {
  margin: 16px 0;
  line-height: 1.6;
  color: var(--forum-text);
}

.profile-social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--forum-surface-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forum-text-secondary);
  transition: all 0.2s ease;
  text-decoration: none;
}

.social-link:hover {
  transform: translateY(-2px);
  background: var(--forum-primary);
  color: white;
}

.profile-actions {
  margin-top: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--forum-surface);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--forum-primary);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--forum-text-secondary);
  margin-top: 4px;
}

.profile-section {
  background: var(--forum-surface);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.section-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--forum-text);
}

/* ============================================================================
   EDI��O DE PERFIL
   ============================================================================ */

.edit-profile-header {
  text-align: center;
  margin-bottom: 32px;
}

.edit-profile-header h1 {
  font-size: 2rem;
  color: var(--forum-text);
  margin-bottom: 8px;
}

.avatar-upload-section {
  display: flex;
  align-items: center;
  gap: 24px;
}

.avatar-preview {
  width: 120px;
  height: 120px;
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--forum-border);
}

.avatar-upload-controls {
  flex: 1;
}

.help-text {
  font-size: 0.85rem;
  color: var(--forum-text-secondary);
  margin-top: 8px;
}

.profile-form {
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--forum-text);
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--forum-border);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--forum-primary);
}

.form-text {
  display: block;
  font-size: 0.85rem;
  color: var(--forum-text-secondary);
  margin-top: 4px;
}

.subsection-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 32px 0 16px 0;
  color: var(--forum-text);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.input-group {
  display: flex;
}

.input-group-text {
  background: var(--forum-surface-hover);
  border: 1px solid var(--forum-border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 12px;
  color: var(--forum-text-secondary);
}

.input-group .form-control {
  border-radius: 0 8px 8px 0;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--forum-border);
}

/* ============================================================================
   NOTIFICAÇÕES - DROPDOWN
   ============================================================================ */

.notification-dropdown-container {
  position: relative;
  margin-right: 12px;
}

.notification-bell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--forum-surface-hover);
  color: var(--forum-text);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.notification-bell:hover {
  background: var(--forum-primary);
  color: white;
  transform: scale(1.05);
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 380px;
  max-height: 500px;
  background: rgba(30, 30, 30, 0.98);
  border: 2px solid rgba(162, 89, 255, 0.3);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
  animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notification-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(162, 89, 255, 0.2);
  background: linear-gradient(135deg, rgba(162, 89, 255, 0.1), rgba(255, 184, 0, 0.05));
}

.notification-dropdown-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.mark-all-read-btn {
  background: none;
  border: none;
  color: #A259FF;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s;
  font-size: 1rem;
}

.mark-all-read-btn:hover {
  background: rgba(162, 89, 255, 0.2);
  color: #FFB800;
}

.notification-dropdown-body {
  overflow-y: auto;
  max-height: 380px;
  padding: 0.5rem 0;
}

.notification-dropdown-body::-webkit-scrollbar {
  width: 6px;
}

.notification-dropdown-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.notification-dropdown-body::-webkit-scrollbar-thumb {
  background: rgba(162, 89, 255, 0.5);
  border-radius: 3px;
}

.notification-item {
  position: relative;
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s;
  cursor: pointer;
}

.notification-item:hover {
  background: rgba(162, 89, 255, 0.1);
}

.notification-item.unread {
  background: rgba(162, 89, 255, 0.05);
  border-left: 3px solid #A259FF;
}

.notification-item.unread:hover {
  background: rgba(162, 89, 255, 0.15);
}

.notification-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(162, 89, 255, 0.2);
  border-radius: 50%;
  color: #A259FF;
  font-size: 1.1rem;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-message {
  margin: 0 0 0.25rem 0;
  font-size: 0.9rem;
  color: #fff;
  line-height: 1.4;
}

.notification-time {
  font-size: 0.75rem;
  color: #888;
}

.notification-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.notification-loading,
.notification-empty,
.notification-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  color: #888;
  text-align: center;
}

.notification-loading i,
.notification-empty i,
.notification-error i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

.notification-dropdown-footer {
  border-top: 1px solid rgba(162, 89, 255, 0.2);
  padding: 0.75rem;
  text-align: center;
}

.notification-dropdown-footer a {
  color: #A259FF;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}

.notification-dropdown-footer a:hover {
  color: #FFB800;
}

@media (max-width: 480px) {
  .notification-dropdown {
    width: calc(100vw - 2rem);
    right: -100px;
  }
}

.notifications-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.notifications-header h1 {
  font-size: 2rem;
  color: var(--forum-text);
}

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notification-item {
  background: var(--forum-surface);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 16px;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.notification-item.unread {
  background: linear-gradient(to right, rgba(59, 130, 246, 0.05), var(--forum-surface));
  border-left: 4px solid var(--forum-primary);
}

.notification-item.read {
  opacity: 0.7;
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--forum-surface-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
}

.notification-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.notification-sender {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--forum-text);
  font-weight: 600;
}

.notification-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.notification-time {
  font-size: 0.85rem;
  color: var(--forum-text-secondary);
  margin-left: auto;
}

.notification-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--forum-text);
  margin: 0 0 4px 0;
}

.notification-message {
  font-size: 0.95rem;
  color: var(--forum-text-secondary);
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.notification-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-notification-link,
.btn-notification-mark,
.btn-notification-delete {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-notification-link {
  background: var(--forum-primary);
  color: white;
}

.btn-notification-link:hover {
  background: #2563eb;
}

.btn-notification-mark {
  background: #10b981;
  color: white;
}

.btn-notification-mark:hover {
  background: #059669;
}

.btn-notification-delete {
  background: transparent;
  color: var(--forum-text-secondary);
}

.btn-notification-delete:hover {
  background: #ef4444;
  color: white;
}

.unread-indicator {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--forum-primary);
}

/* ============================================================================
   ASSINATURA DO USU�RIO
   ============================================================================ */

.user-signature {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--forum-border);
}

.signature-divider {
  height: 1px;
  background: var(--forum-border);
  margin-bottom: 12px;
}

.signature-content {
  font-size: 0.85rem;
  color: var(--forum-text-secondary);
  font-style: italic;
  line-height: 1.5;
}

/* ============================================================================
   RESPONSIVO
   ============================================================================ */

@media (max-width: 768px) {
  .profile-header-content {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-stats-inline {
    justify-content: center;
  }
  
  .profile-social-links {
    justify-content: center;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .avatar-upload-section {
    flex-direction: column;
    text-align: center;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .notification-item {
    flex-direction: column;
  }
  
  .notification-time {
    margin-left: 0;
  }
}
