/* =====================================================
   Subordinado ao ecossistema global do jogo (.page-forum)
===================================================== */

body.page-forum {
    visibility: hidden;
}

body.page-forum.ready {
    visibility: visible;
}

/* Espaçamento inferior de segurança na lista do fórum */
.page-forum .menu-list {
    padding-bottom: 120px;
}

/* Lista de categorias e tópicos */
.forum-categories {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* =====================================================
   📚 CARDS DO FÓRUM
===================================================== */

.forum-card {
    /* ✅ Propriedades limpas e sem excesso de !important */
    display: flex;
    align-items: center;
    justify-content: space-between !important;
    gap: 12px !important;
    height: auto !important;
    padding: 12px 14px !important;

    /* ✅ Transição limpa e válida */
    transition:  
        transform .12s ease,  
        border-color .12s ease,  
        background .12s ease;
}

.forum-card:hover {
    border-color: #3f3f46 !important;
}

.forum-card:active {
    transform: scale(0.99);
}

/* =====================================================
   📄 BLOCO ESQUERDO
===================================================== */

.forum-info-block {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.forum-main-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.forum-title-text {
    font-size: 14px;
    font-weight: bold;
    color: #f4f4f5;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.forum-subtitle-text {
    font-size: 11px;
    color: #71717a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =====================================================
   📊 BLOCO DIREITO
===================================================== */

.forum-stats-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    text-align: right;  
    font-size: 11px;  
    font-family: monospace;  
    font-weight: bold;  
    color: #a1a1aa;  
    white-space: nowrap;  
    flex-shrink: 0;
}

/* =====================================================
   🏷️ BADGES
===================================================== */

.forum-status-badge {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: .5px;
}

.badge-staff {
    background: rgba(239, 68, 68, .10);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, .20);
}

.badge-public {
    background: rgba(34, 197, 94, .10);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, .20);
}

/* =====================================================
   📝 POSTAGENS
===================================================== */

.forum-post-box {
    background: #111113;
    border: 1px solid #27272a;
    border-radius: 10px;
    padding: 16px;
    display: flex;  
    flex-direction: column;  
    gap: 12px;  
    transition:  
        border-color .12s ease,  
        background .12s ease;
}

.forum-post-box:hover {
    border-color: #3f3f46;
}

.forum-post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #18181b;  
    padding-bottom: 8px;
}

.forum-post-author {
    font-size: 13px;
    font-weight: bold;
    color: #38bdf8;
}

.forum-post-content {
    font-size: 13px;
    line-height: 1.5;
    color: #e4e4e7;
    white-space: pre-wrap;
}

/* =====================================================
   📬 MENSAGENS E ESTADOS DE INTERFACE (DRY)
===================================================== */

.forum-message-loading .forum-title-text,
.forum-message-loading .menu-icon {
    color: #facc15;
}

.forum-message-error {
    border-color: rgba(239, 68, 68, 0.4) !important;
}

.forum-message-error .forum-title-text,
.forum-message-error .menu-icon {
    color: #ef4444;
}

.forum-message-empty .forum-title-text,
.forum-message-empty .menu-icon {
    color: #71717a;
}


/* =====================================================
   🛠️ CLASSES UTILITÁRIAS PARA O ENGINE (ANTI-INLINE)
===================================================== */

.forum-back-button .menu-icon,
.forum-back-button .forum-title-text {
    color: #facc15 !important;
}

.forum-post-role {
    font-size: 11px;
    color: #71717a;
}

.forum-post-spacing {
    margin-top: 6px;
}

/* =====================================================
   🎯 MODIFICADORES E COMPORTAMENTOS (ZERO INLINE)
===================================================== */

.forum-disabled {
    pointer-events: none;
}

.forum-reply-count {
    color: #facc15;
    margin-top: 2px;
}
