/* =======================================================
   BOT CARDS GRID
   ====================================================== */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 10px;
}

/* =======================================================
   SINGLE CARD
   ====================================================== */

.card {
  background: radial-gradient(circle at top left, #111827, #020617);
  border-radius: 22px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 24px 55px rgba(15, 23, 42, 0.95);
  border-color: rgba(129, 140, 248, 0.8);
}

/* =======================================================
   HEADER (AVATAR + TITLE + META)
   ====================================================== */

.card-header {
  display: grid;
  grid-template-columns: auto 1fr;   /* avatar | text */
  column-gap: 18px;
  align-items: center;
}

.card-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.55);
}

.card-header-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0; /* text overflow safe */
}

.bot-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* meta row = servers + rating pills */
.bot-meta {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow: hidden;
}

.bot-meta .meta-pill {
  background: rgba(15, 23, 42, 0.9);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e5e7eb;
  font-weight: 500;
  flex-shrink: 0;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

/* =======================================================
   BODY (DESCRIPTION + TAGS)
   ====================================================== */

.card-body {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding-top: 10px;
}

.bot-description {
  color: #9ea3b0;
  font-size: 0.86rem;
  line-height: 1.5;
  opacity: 0.9;
  margin-bottom: 6px;
}

/* TAGS BAR — scrollable but scrollbar hidden */
.bot-tags {
  display: flex;
  gap: 10px;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px;
  scroll-behavior: smooth;
  -ms-overflow-style: none; /* IE / Edge */
  scrollbar-width: none;    /* Firefox */
}

/* Hide scrollbar (Chrome / Edge / Safari) */
.bot-tags::-webkit-scrollbar {
  display: none;
}

/* TAG SHAPE – smoothing + depth */
.bot-tag {
  background: linear-gradient(145deg, #1f2937, #020617);
  color: #dfe3ea;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  flex: 0 0 auto;
  box-shadow:
    0 6px 18px rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(75, 85, 99, 0.7);
  transition: 0.2s ease;
}

.bot-tag:hover {
  color: #ffffff;
  background: linear-gradient(145deg, #4f46e5, #6366f1);
  border-color: transparent;
  box-shadow:
    0 10px 26px rgba(79, 70, 229, 0.7);
  transform: translateY(-1px);
}

/* =======================================================
   FOOTER BUTTONS (ADD / VIEW / VOTE)
   ====================================================== */

.card-footer {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.card-button {
  flex: 1;
  padding: 10px 0;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

/* Primary – Add */
.card-button--primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.7);
}

/* Outline – View + Vote */
.card-button--outline {
  background: rgba(15, 23, 42, 0.98);
  color: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.85);
}

/* Hover */
.card-button--primary:hover:not(.card-button--disabled),
.card-button--outline:hover:not(.card-button--disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.95);
}

/* Disabled */
.card-button--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none !important;
  transform: none !important;
}

/* Vote emphasis */
.card-button--vote {
  font-weight: 700;
}

/* =======================================================
   RESPONSIVE SMALL TWEAKS
   ====================================================== */

@media (max-width: 480px) {
  .card {
    padding: 18px;
  }

  .bot-name {
    font-size: 1.2rem;
  }

  .card-avatar {
    width: 60px;
    height: 60px;
  }
}
