/* teti/css/ranking-forum.css v1.0 */

/* Container Principal (Overlay Full Screen) */
#rf-full-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-body, #121212);
    z-index: 2000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

/* Header Fixo */
.rf-header-bar {
    padding: 15px;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: space-between;
    flex-shrink: 0;
}
.rf-header-title { font-weight: 700; font-size: 1.1rem; color: var(--text-main); display:flex; align-items:center; gap:8px; }
.btn-rf-back {
    background: none; border: none; color: var(--teti-primary);
    font-weight: 600; cursor: pointer; display: flex; align-items: center;
}

/* Área de Rolagem do Feed */
.rf-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    padding-bottom: 100px;
    -webkit-overflow-scrolling: touch;
}

/* Área de Criação de Post */
.rf-create-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}
.rf-create-header {
    display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.rf-textarea {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    padding: 10px;
    resize: none;
    min-height: 80px;
    font-family: inherit;
}
.rf-textarea:focus { border-color: var(--teti-primary); outline: none; }

.rf-actions-row {
    display: flex; justify-content: flex-end; margin-top: 10px;
}
.btn-rf-post {
    background: var(--teti-primary); color: #fff;
    border: none; padding: 8px 20px; border-radius: 20px;
    font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 5px;
    transition: transform 0.2s;
}
.btn-rf-post:active { transform: scale(0.95); }

/* Cartão do Post */
.forum-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    animation: slideInUp 0.3s ease;
}

.rf-user-header {
    display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px;
}
.rf-user-info { display: flex; align-items: center; gap: 10px; }
.rf-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.1); }
.rf-meta { display: flex; flex-direction: column; }
.rf-nick { font-weight: 700; color: var(--text-main); font-size: 0.95rem; }
.rf-time { font-size: 0.75rem; color: var(--text-muted); }

.rf-content {
    color: var(--text-main);
    line-height: 1.5;
    font-size: 0.95rem;
    white-space: pre-wrap;
    margin-bottom: 15px;
    word-break: break-word;
}

/* Barra de Ações do Post (Like/Comentar) */
.rf-card-actions {
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    display: flex; gap: 20px;
}
.btn-rf-action {
    background: none; border: none;
    color: var(--text-muted);
    font-size: 0.9rem; font-weight: 500;
    cursor: pointer; display: flex; align-items: center; gap: 6px;
    transition: color 0.2s;
}
.btn-rf-action:hover { color: var(--text-main); }
.btn-rf-action.liked { color: #ff4081; } /* Cor de Like */
.btn-rf-icon-only { background: none; border: none; color: var(--text-muted); cursor: pointer; opacity: 0.6; }
.btn-rf-icon-only:hover { opacity: 1; color: #ff5252; }

/* Seção de Comentários (Estilo Chat/Recursos) */
.rf-comments-section {
    display: none;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
}
.rf-comments-section.open { display: block; }

.rf-comments-list {
    max-height: 300px; overflow-y: auto; margin-bottom: 10px;
}

/* Comentário Individual */
.rf-comment-item {
    display: flex; gap: 10px; margin-bottom: 12px;
}
.rf-comment-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.rf-comment-bubble {
    background: rgba(255,255,255,0.03);
    border-radius: 12px; padding: 8px 12px; flex: 1;
}
.rf-comment-header { display: flex; justify-content: space-between; margin-bottom: 4px; font-size: 0.8rem; }
.rf-comment-author { font-weight: 700; color: var(--text-main); }
.rf-comment-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.4; }
.rf-comment-actions { display: flex; gap: 10px; margin-top: 4px; margin-left: 38px; font-size: 0.75rem; color: var(--text-muted); }
.rf-act-link { cursor: pointer; } .rf-act-link:hover { text-decoration: underline; }

/* Input de Comentário */
.rf-input-area { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.rf-mini-input {
    flex: 1; background: var(--bg-body); border: 1px solid var(--border-color);
    padding: 8px 12px; border-radius: 20px; color: #fff; font-size: 0.9rem;
}
.btn-rf-send {
    background: var(--teti-primary); color: #fff; border: none;
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}

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

/* --- CORREÇÃO ITEM 3: Z-Index maior que o Dashboard (14000) --- */
#rf-full-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-body, #121212);
    z-index: 20000 !important; /* Força ficar acima de tudo */
    display: none;
    flex-direction: column;
    overflow: hidden;
}

/* --- CORREÇÃO ITEM 1 e 2: Layout de Comentários e Respostas --- */
.rf-comment-item {
    display: flex; gap: 10px; margin-bottom: 12px;
}
/* Recuo para respostas */
.rf-comment-item.is-reply {
    margin-left: 40px;
    padding-left: 10px;
    border-left: 2px solid var(--border-color);
}

.rf-comment-header {
    display: flex; justify-content: space-between; 
    align-items: center; /* Alinhamento melhor */
    margin-bottom: 4px; font-size: 0.8rem;
}

/* Área de Ações do Comentário (Responder | Excluir) */
.rf-comment-actions {
    display: flex; gap: 15px; margin-top: 4px; margin-left: 2px;
    font-size: 0.75rem; color: var(--text-muted);
}
.rf-act-link { 
    cursor: pointer; font-weight: 600; 
    transition: color 0.2s;
}
.rf-act-link:hover { color: var(--text-main); }
.rf-act-link.delete { color: #ff5252; }

/* Badge "Respondendo..." */
.rf-reply-badge {
    background: rgba(255,255,255,0.1);
    color: var(--text-main);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 5px;
    display: inline-flex; align-items: center; gap: 6px;
}
.rf-close-reply { cursor: pointer; font-weight: bold; padding: 0 4px; }