/* redes.css — Muro público de Difusión + panel admin */

/* ── Muro público (estilo feed de redes sociales) ── */
.wall-wrap { min-height: 100vh; background: var(--bg); display: flex; flex-direction: column; align-items: center; }
.wall-feed { width: 100%; max-width: 600px; padding: 20px 16px 60px; display: flex; flex-direction: column; gap: 20px; }

.wall-filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 16px; width: 100%; max-width: 600px; }
.wall-filter-btn { padding: 7px 16px; border-radius: 20px; font-size: 13px; font-weight: 700; background: var(--s1);
  border: 1px solid var(--border2); color: var(--text2); }
.wall-filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.post-card { background: var(--s1); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.post-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.post-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--purple-dk));
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; flex-shrink: 0; }
.post-meta { flex: 1; min-width: 0; }
.post-title { font-size: 14px; font-weight: 800; color: var(--text); }
.post-date { font-size: 11px; color: var(--text3); }
.post-type-badge { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 20px; background: var(--accent-bg); color: var(--accent); }

.post-media { width: 100%; background: #000; display: flex; align-items: center; justify-content: center; }
.post-media img { width: 100%; max-height: 520px; object-fit: contain; display: block; background: var(--s2); }
.post-media video { width: 100%; max-height: 520px; display: block; }
.post-media.pdf-preview { background: var(--s2); padding: 40px 20px; flex-direction: column; gap: 12px; color: var(--text2); }
.post-media.pdf-preview i { font-size: 48px; color: var(--red); }

.post-body { padding: 14px 16px; }
.post-desc { font-size: 13.5px; color: var(--text2); line-height: 1.6; white-space: pre-wrap; }

.post-actions { display: flex; gap: 8px; padding: 10px 16px 16px; flex-wrap: wrap; }
.post-actions .btn { flex: 1; min-width: 100px; }

.share-menu { position: relative; display: inline-flex; flex: 1; min-width: 100px; }
.share-dropdown { position: absolute; bottom: calc(100% + 6px); left: 0; background: var(--s1); border: 1px solid var(--border2);
  border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; display: none; flex-direction: column; gap: 2px; min-width: 190px; z-index: 20; }
.share-dropdown.show { display: flex; }
.share-dropdown a, .share-dropdown button { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 7px;
  font-size: 13px; color: var(--text); text-align: left; width: 100%; }
.share-dropdown a:hover, .share-dropdown button:hover { background: var(--s2); }
.share-dropdown i { width: 18px; text-align: center; }
.share-dropdown i.ti-brand-whatsapp { color: #25D366; }
.share-dropdown i.ti-brand-facebook { color: #1877F2; }
.share-dropdown i.ti-brand-x { color: var(--text); }
.share-dropdown i.ti-link { color: var(--accent); }

.wall-empty { text-align: center; padding: 80px 20px; color: var(--text3); }
.wall-empty i { font-size: 44px; margin-bottom: 14px; display: block; opacity: .4; }

/* ── Panel admin de Difusión ── */
.mat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.mat-card { background: var(--s1); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.mat-card.despublicado { opacity: .55 }
.mat-thumb { height: 130px; background: var(--s2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mat-thumb img, .mat-thumb video { width: 100%; height: 100%; object-fit: cover; }
.mat-thumb i { font-size: 34px; color: var(--text3); }
.mat-body { padding: 10px 12px; }
.mat-title { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mat-sub { font-size: 11px; color: var(--text3); margin-top: 2px; }
.mat-actions { display: flex; gap: 6px; padding: 0 12px 12px; }

/* ── Formulario de subida ── */
.upload-drop { border: 2px dashed var(--border2); border-radius: 12px; padding: 30px 20px; text-align: center;
  cursor: pointer; color: var(--text3); transition: .15s; }
.upload-drop:hover, .upload-drop.over { border-color: var(--accent); background: var(--accent-bg); color: var(--accent); }
.upload-drop i { font-size: 32px; display: block; margin-bottom: 8px; }
