.guild-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end; /* 🧠 Prevents stretching */
}


.guild-card {
    background: white;
    border: 2px solid #d6e3ff;
    border-radius: 20px;
    padding: 28px 24px;
    text-align: left;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease;
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}


.guild-card:hover {
  transform: translateY(-4px);
}

.guild-header {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: #4231a0;
}

.guild-emoji {
  font-size: 1.4rem;
  margin-right: 8px;
}

.guild-description {
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.5;
}

.guild-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.interest-pill {
    background: #f5f5f5;
    color: #323232;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 10px;
    display: inline-block;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: background 0.2s ease;
}

.guild-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #6b7280;
  font-style: italic;
}

.join-guild-btn {
  background: #4231a0;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.join-guild-btn:hover {
  background: #5b21b6;
}
