/* Heredamos variables base del plugin */
.choca-lib-wrapper {
    font-family: system-ui, -apple-system, sans-serif;
    margin: 20px 0;
}

/* Header & Filtros */
.choca-lib-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; flex-wrap: wrap; gap: 20px;}
.choca-lib-intro h2 { margin: 0 0 5px; font-size: 24px; }
.choca-lib-intro p { margin: 0; color: #666; font-size: 14px; }
.choca-lib-filters { display: flex; gap: 30px; }
.filter-group label { display: block; font-weight: bold; margin-bottom: 10px; font-size: 13px; color: #444; border-bottom: 1px solid #ccc; padding-bottom: 5px;}
.checkbox-group { display: flex; gap: 15px; flex-wrap: wrap; }
.checkbox-group label { font-weight: normal; border:none; display:flex; align-items:center; gap:5px; cursor:pointer;}

/* Búsqueda y Pills */
.choca-lib-search-bar { position: relative; margin-bottom: 15px; }
.choca-lib-search-bar input { width: 100%; padding: 12px 15px 12px 40px; border: 1px solid #ddd; border-radius: var(--choca-radius); }
.choca-lib-search-bar .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #888; }

.choca-active-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 25px; min-height: 25px;}
.choca-pill { background: #e0e0e0; padding: 4px 10px; border-radius: 4px; font-size: 12px; display: flex; align-items: center; gap: 5px; cursor: pointer; transition: 0.2s;}
.choca-pill:hover { background: #d0d0d0; }

/* Grid Override (Reutilizando la lógica de ch_material.css) */
.choca-card-actions { display: flex; gap: 10px; align-items: center; margin-top: auto; }
.btn-like-action, .btn-share-wa { background: #f5f5f5; border: 1px solid #ddd; border-radius: 4px; padding: 6px 12px; cursor: pointer; display: flex; align-items: center; gap: 5px; color: #333; transition: 0.2s; text-decoration: none;}
.btn-like-action:hover, .btn-share-wa:hover { background: #e9e9e9; }
.btn-like-action.active { color: #e74c3c; }

/* Modal 2 Columnas */
.choca-modal { position: fixed !important; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.85); z-index: 99999; display: flex; justify-content: center; align-items: center; }
.choca-modal.hidden { display: none; }
.choca-modal-box { background: #fff; border-radius: 8px; position: relative; padding: 20px; max-height: 90vh; overflow-y: auto;}
.choca-modal-large { width: 90%; max-width: 1100px; padding: 0; overflow: hidden; display: flex; flex-direction: column;}
.choca-modal-small { width: 90%; max-width: 400px; text-align: center; }

.choca-close { position: absolute; top: 10px; right: 15px; font-size: 28px; cursor: pointer; color: #333; z-index: 10; }
.choca-modal-large .choca-close { color: #fff; background: rgba(0,0,0,0.5); width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; top: 15px; right: 15px;}

.choca-modal-columns { display: flex; height: 80vh; }
.choca-modal-media { flex: 2; background: #000; display: flex; align-items: center; justify-content: center; }
.choca-modal-media iframe { width: 100%; height: 100%; }
.choca-modal-sidebar { flex: 1; display: flex; flex-direction: column; background: #fff; border-left: 1px solid #eee; }

.choca-meta-header { padding: 60px 20px 20px 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center;}
.choca-comments-section { padding: 20px; display: flex; flex-direction: column; flex: 1; overflow: hidden; }
.choca-comments-list { flex: 1; overflow-y: auto; margin-bottom: 15px; padding-right: 5px; }
.choca-comment { background: #f9f9f9; padding: 10px; border-radius: 6px; margin-bottom: 10px; font-size: 13px; }
.choca-comment p { margin: 5px 0 0; }

.choca-comment-form textarea { width: 100%; border: 1px solid #ddd; border-radius: 4px; padding: 10px; resize: none; margin-bottom: 10px; }
.choca-btn-primary { background: var(--choca-primary); color: #fff; border: none; padding: 8px 15px; border-radius: 4px; cursor: pointer; width: 100%; font-weight: bold;}

@media (max-width: 768px) {
    .choca-modal-columns { flex-direction: column; height: 90vh; overflow-y: auto; }
    .choca-modal-media { height: 300px; flex: none; }
    .choca-modal-sidebar { flex: none; }
    .choca-lib-filters { gap: 0px; flex-direction: column; }
}