/* ── Download v3 — Card 2/3 col với danh mục ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

.sdcv3-wrap {
  font-family: 'Inter', -apple-system, sans-serif;
  max-width: 960px;
  margin: 0 auto;
}

/* ── TOOLBAR ── */
.sdcv3-toolbar {
  display: flex; gap: 10px; margin-bottom: 16px;
  flex-wrap: wrap; align-items: center;
}
.sdcv3-search-box {
  position: relative; flex: 1; min-width: 200px;
}
.sdcv3-search-box svg {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  stroke: #86868b; fill: none; stroke-width: 2;
  pointer-events: none;
}
.sdcv3-search-box input {
  width: 100%; padding: 9px 12px 9px 36px;
  font-size: 13px; font-family: inherit;
  border: 1px solid #d2d2d7; border-radius: 10px;
  background: #f5f5f7; color: #1d1d1f; outline: none;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}
.sdcv3-search-box input:focus {
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0,113,227,.12);
  background: #fff;
}
.sdcv3-search-box input::placeholder { color: #86868b; }

/* ── FILTER TAGS ── */
.sdcv3-filters {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.sdcv3-filter-btn {
  font-size: 12px; font-weight: 500;
  padding: 7px 14px; border-radius: 20px;
  border: 0.5px solid #d2d2d7;
  background: #fff; color: #6e6e73;
  cursor: pointer; transition: all .15s;
  font-family: inherit;
}
.sdcv3-filter-btn:hover { border-color: #0071e3; color: #0071e3; }
.sdcv3-filter-btn.active {
  background: #0071e3; color: #fff; border-color: #0071e3;
}

/* ── GRID ── */
.sdcv3-grid {
  display: grid;
  gap: 10px;
}
.sdcv3-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.sdcv3-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 700px) {
  .sdcv3-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .sdcv3-grid { grid-template-columns: 1fr !important; }
}

/* ── CARD ── */
.sdcv3-card {
  background: #ffffff;
  border: 0.5px solid #d2d2d7;
  border-radius: 12px;
  padding: 16px;
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: inherit;
  transition: background .15s, transform .15s, box-shadow .15s;
  cursor: pointer;
}
.sdcv3-card:hover {
  background: #f5f5f7;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.sdcv3-card.hidden { display: none; }

/* Icon box */
.sdcv3-icon-box {
  width: 42px; height: 42px; border-radius: 10px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.sdcv3-icon-box img {
  width: 100%; height: 100%; object-fit: contain; border-radius: 10px;
}
.sdcv3-icon-box .sdcv3-emoji { font-size: 22px; }

/* Category colors */
.sdcv3-icon-box.cat-pdf      { background: #fee2e2; }
.sdcv3-icon-box.cat-office   { background: #dbeafe; }
.sdcv3-icon-box.cat-utility  { background: #dcfce7; }
.sdcv3-icon-box.cat-network  { background: #fef3c7; }
.sdcv3-icon-box.cat-design   { background: #ede9fe; }
.sdcv3-icon-box.cat-security { background: #fce7f3; }
.sdcv3-icon-box.cat-other    { background: #f1f5f9; }

/* Text */
.sdcv3-info { flex: 1; min-width: 0; }
.sdcv3-name {
  font-size: 13px; font-weight: 600; color: #1d1d1f;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin: 0 0 3px;
}
.sdcv3-cat-label {
  font-size: 11px; color: #86868b; margin: 0;
}

/* Download btn */
.sdcv3-dl-btn {
  width: 30px; height: 30px; border-radius: 50%;
  background: #e8f0fe;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .15s, transform .15s;
}
.sdcv3-dl-btn svg {
  width: 14px; height: 14px;
  stroke: #0071e3; fill: none; stroke-width: 2.2;
}
.sdcv3-card:hover .sdcv3-dl-btn {
  background: #0071e3;
  transform: translateY(2px);
}
.sdcv3-card:hover .sdcv3-dl-btn svg { stroke: #fff; }

/* Empty */
.sdcv3-empty {
  display: none; text-align: center; padding: 40px;
  color: #86868b; font-size: 14px;
  grid-column: 1 / -1;
}
