/* ABU Press Ebooks basic styles */
.abupeb-search { display:flex; gap:8px; margin: 1rem 0; }
.abupeb-search input[type="text"] { flex:1; padding:.5rem; }
.abupeb-search select, .abupeb-search button { padding:.5rem; }
.abupeb-grid { 
  display:grid; 
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
  gap: 16px; 
}
.abupeb-card { 
  border:1px solid #e5e7eb; 
  border-radius:12px; 
  overflow:hidden; 
  background:#fff; 
  display:flex; 
  flex-direction:column;
}
.abupeb-thumb img { width:100%; height:auto; display:block; }
.abupeb-info { padding:12px; display:flex; flex-direction:column; gap:6px; }
.abupeb-title { margin:0; font-size:1.05rem; }
.abupeb-meta { font-size:.9rem; color:#374151; }
.abupeb-actions { margin-top:8px; display:flex; gap:8px; }
.abupeb-btn { 
  border:1px solid #111827; 
  border-radius:8px; 
  padding:.4rem .7rem; 
  text-decoration:none;
  display:inline-block;
  background:#fff;
  cursor:pointer;
}
.abupeb-pagination ul { list-style:none; padding:0; display:flex; gap:6px; flex-wrap:wrap; }
.abupeb-pagination a, .abupeb-pagination span { border:1px solid #d1d5db; padding:.35rem .6rem; border-radius:6px; }

/* Preview Modal */
.abupeb-modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display:none; align-items:center; justify-content:center; padding: 24px; z-index: 9999; }
.abupeb-modal[aria-hidden="false"] { display:flex; }
.abupeb-modal .abupeb-modal-inner { background:#fff; border-radius:12px; overflow:hidden; width: min(100%, 960px); height: min(90vh, 720px); position:relative; display:flex; flex-direction:column; }
.abupeb-modal .abupeb-close { position:absolute; right:8px; top:6px; border:none; background:transparent; font-size:28px; line-height:1; cursor:pointer; }
.abupeb-modal .abupeb-frame { width:100%; height:100%; border:0; }
