/* assets/style.css - List-style card layout, no spinner/progress UI */

/* CSS variables injected by plugin inline style:
   --dlm-cta-top, --dlm-cta-bottom, --dlm-thumb-size
*/
:root{
  --dlm-cta-top: #ff0b57;
  --dlm-cta-bottom: ;
  --dlm-thumb-size: 120px;
}

/* Layout container */
.dlm-dropbox-wrap{display:flex;gap:28px;align-items:flex-start;margin:34px 0;font-family:Inter,system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;color:#0b2545;}
.dlm-dropbox-sidebar{width:240px;padding-right:12px;box-sizing:border-box;}
.dlm-dropbox-search{margin-bottom:12px;}
#dlm-dropbox-search{width:100%;padding:10px 12px;border-radius:8px;border:1px solid #eef0f2;background:#fff;font-size:14px;color:#111827;}
.dlm-dropbox-folders{list-style:none;margin:0;padding:6px 0;}
.dlm-folder-item{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;cursor:pointer;border-radius:8px;margin-bottom:8px;background:#fff;border:1px solid transparent;transition:background .12s ease,border-color .12s ease,transform .08s ease;box-shadow:0 1px 0 rgba(12,15,20,0.02);}
.dlm-folder-item:hover,.dlm-folder-item:focus{background:#fff;border-color:#f1f5f9;transform:translateY(-1px);outline:none;}
.dlm-folder-item.active{background:#fff;border-left:4px solid var(--dlm-cta-top);box-shadow:0 6px 18px rgba(10,10,30,0.04);}
.dlm-folder-title{font-size:15px;color:#0b2545;font-weight:600;}
.dlm-folder-count{font-size:13px;color:#6b7280;margin-left:8px;}

/* Main area */
.dlm-dropbox-main{flex:1;padding-left:10px;box-sizing:border-box;max-width:1100px;}
.dlm-dropbox-controls{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;gap:12px;}
.dlm-dropbox-selected{font-size:15px;color:#0b2545;font-weight:600;}
.dlm-dropbox-sort{display:flex;align-items:center;gap:8px;}
#dlm-sort{padding:8px 10px;border-radius:8px;border:1px solid #eef0f2;font-size:14px;background:#fff;}

/* List layout: vertical cards */
.dlm-list{display:block;list-style:none;margin:0;padding:0;}

/* Each item is a long card (thumbnail left, content right) */
.dlm-item{
  background:#fff;
  border:1px solid #eef2f5;
  border-radius:10px;
  padding:16px;
  margin-bottom:16px;
  display:flex;
  gap:18px;
  align-items:flex-start;
  box-shadow:0 6px 18px rgba(10,10,30,0.02);
}

.dlm-item-link{display:flex;align-items:flex-start;text-decoration:none;color:inherit;width:100%;}
.dlm-item-thumb{width:var(--dlm-thumb-size);height:var(--dlm-thumb-size);flex:0 0 var(--dlm-thumb-size);overflow:hidden;border-radius:8px;background:#f6f8fb;display:flex;align-items:center;justify-content:center;color:#6b6b6b;font-weight:600;}
.dlm-item-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.dlm-item-body{flex:1;min-width:0;display:flex;flex-direction:column;}
.dlm-item-title{margin:0 0 8px 0;font-size:18px;line-height:1.2;color:#071033;font-weight:700;}
.dlm-item-desc{font-size:14px;color:#475569;margin-bottom:8px;}
.dlm-item-long{font-size:14px;color:#475569;margin-bottom:8px;}
.dlm-item-cats{font-size:13px;color:#6b7280;margin-bottom:8px;}
.dlm-item-meta{font-size:13px;color:#6b7280;display:flex;gap:18px;margin-top:auto;align-items:center;}

/* Load more button */
.dlm-load-more-wrap{text-align:center;margin-top:6px;}
.dlm-load-more{padding:10px 16px;border-radius:10px;border:1px solid #eef0f2;background:#fff;cursor:pointer;box-shadow:0 6px 14px rgba(255,6,78,0.08);}

/* CTA styles (kept for any future buttons) */
.dlm-download-btn{
  padding:9px 14px;border-radius:10px;text-decoration:none;font-weight:600;font-size:14px;color:#fff;display:inline-block;box-shadow:0 6px 14px rgba(255,6,78,0.08);border:0;
  background: var(--dlm-cta-top);
}
:root[style*="--dlm-cta-bottom"] .dlm-download-btn { background: linear-gradient(180deg,var(--dlm-cta-top),var(--dlm-cta-bottom)); }
.dlm-download-btn, .dlm-download-btn:link, .dlm-download-btn:visited { color: #ffffff !important; }
.dlm-download-btn:hover, .dlm-download-btn:focus, .dlm-download-btn:active { color: #ffffff !important; text-decoration: none !important; }

/* Empty message */
.dlm-empty{padding:28px;color:#6b7280;text-align:center;border-radius:8px;background:#fff;border:1px solid #f1f3f5;}

/* Remove any legacy spinner/progress classes from display */
.dlm-xhr-loading-gif, .dlm-xhr-progress { display: none !important; }

/* Responsive: stack thumbnail above content on smaller screens */
@media (max-width:980px){
  .dlm-dropbox-wrap{flex-direction:column;margin:20px 0;}
  .dlm-dropbox-sidebar{width:100%;padding-bottom:10px;border-bottom:1px solid #f1f3f5;}
  .dlm-dropbox-main{padding-left:0;}
  .dlm-item{flex-direction:column;align-items:flex-start;}
  .dlm-item-thumb{width:100%;height:auto;flex:0 0 auto;}
  .dlm-item-thumb img{max-height:240px;object-fit:cover;}
}
