/* ========== LinkHub Embed Styles ========== */

/* Card polish */
.directory-card {
  border: 1px solid #e5e7eb;           /* gray-200 */
  border-radius: 12px;
  transition: box-shadow .2s ease, transform .1s ease;
  background: #fff;
}
.directory-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.card-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;                 /* gray-50 */
}

/* Buttons */
.btn-outline-primary.active {
  color: #0d6efd;
  border-color: #0d6efd;
  background: rgba(13,110,253,.08);
}

/* ===== Grid/List toggle =====
   The partial renders a Bootstrap grid. We style the cards differently
   depending on the parent container mode. The structure remains the same. */

/* Default: grid mode */
#directoryContainer.grid-view .directory-card {
  flex-direction: column;
}

/* List mode: make each card feel full-width row with tighter spacing */
#directoryContainer.list-view .row > .col {
  /* In list view, force full width per item on all breakpoints */
  flex: 0 0 100%;
  max-width: 100%;
}

#directoryContainer.list-view .directory-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

#directoryContainer.list-view .directory-card .card-body {
  display: grid;
  grid-template-columns: 64px 1fr auto;   /* logo | text | buttons */
  gap: .75rem;
  align-items: center;
}

#directoryContainer.list-view .card-logo {
  width: 56px;
  height: 56px;
  border-radius: 10px;
}

/* Make description a single line in list view */
#directoryContainer.list-view .card-text {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

/* Button group spacing in list view */
#directoryContainer.list-view .directory-card .mt-auto {
  margin-top: 0 !important;
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* Small tweaks for mobile */
@media (max-width: 576px) {
  #directoryContainer.list-view .directory-card .card-body {
    grid-template-columns: 48px 1fr;
    grid-auto-rows: auto;
  }
  #directoryContainer.list-view .directory-card .mt-auto {
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin-top: .5rem !important;
  }
}

/* ========== Mobile filter drawer ========== */
.mobile-filter-drawer {
  background: #f9fafb;
  max-height: 60vh;
  overflow-y: auto;
}

.filter-chevron {
  transition: transform .2s ease;
}

/* ========== End ========== */
