/* EXTENSION DE DISEÑO COMPONENTES DE COMUNIDAD */
.bar-content-comunidad {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-back {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.btn-back:hover { color: var(--accent-cyan); }

.comunidad-info-header {
    text-align: center;
    flex-grow: 1;
    margin: 0 10px;
}
.comunidad-title-mini {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.comunidad-count-mini {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    font-weight: 700;
}
.logo-corner {
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: -1px;
}
.logo-corner span { color: var(--accent-neon); }

/* CONTENEDOR PRINCIPAL */
.comunidad-layout {
    margin-top: 24px;
    max-width: 650px; /* Más angosto para leer tipo feed de Twitter/X */
}

/* ✍️ CAJA DE PUBLICACIÓN (GLASSMORPHISM INTERACTIVO) */
.publish-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-flat);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.publish-avatar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.user-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}
.input-wrapper {
    background: var(--bg-deep);
    border: 1px solid var(--border-flat);
    border-radius: var(--radius-md);
    padding: 12px;
    transition: border-color 0.2s;
}
.input-wrapper:focus-within {
    border-color: var(--accent-cyan);
}
.publish-textarea {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    resize: none;
}
.publish-textarea::placeholder { color: #4b5563; }

.publish-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}
.hint-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}
.btn-send {
    background: var(--text-main);
    color: var(--bg-deep);
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.btn-send:hover { background: var(--accent-cyan); transform: scale(1.02); }

/* 💬 INTERFAZ DEL FEED DE COMENTARIOS/OPINIONES */
.opinions-feed { display: flex; flex-direction: column; gap: 16px; }
.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.feed-header h2 { font-size: 0.95rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.feed-filter { font-size: 0.85rem; color: var(--accent-neon); font-weight: 700; cursor: pointer; }

/* ITEM DE OPINION */
.opinion-card-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-flat);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
}
/* Estilo especial si es destacada */
.opinion-card-item.highlighted {
    border-color: rgba(168, 85, 247, 0.4);
    background: linear-gradient(180deg, #171527 0%, var(--bg-surface) 100%);
}
.card-badge-top {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

.opinion-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.author-name { font-weight: 700; font-size: 0.9rem; }
.post-time { color: var(--text-muted); font-size: 0.8rem; margin-left: 4px; }

.opinion-body-text {
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--text-main);
    margin-bottom: 16px;
}

/* BOTONES DE VOTO Y ACCION */
.opinion-footer-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.vote-btn {
    background: var(--bg-surface-glow);
    border: 1px solid var(--border-flat);
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, border-color 0.2s;
}
.vote-btn:hover { background: rgba(255,255,255,0.05); }
.vote-btn.active-up {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.08);
}
.comment-link {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    margin-left: auto; /* Tira los comentarios a la derecha */
    transition: color 0.2s;
}
.comment-link:hover { color: var(--accent-neon); text-decoration: underline; }

/* 🎨 GENERADOR DE AVATARES ABSTRACTOS DE FULANOS (Gradientes Únicos) */
.avatar-static {
    width: 36px;
    height: 36px;
    border-radius: 10px; /* Bordes redondeados modernos urbanos */
}
.anonym-gradient-user { background: linear-gradient(135deg, #4b5563, #1f2937); }
.anonym-gradient-1 { background: linear-gradient(135deg, #a855f7, #6366f1); }
.anonym-gradient-2 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.anonym-gradient-3 { background: linear-gradient(135deg, #10b981, #059669); }