/* Shared styles for the tool pages: support/donate + Discord cards, the More Tools
   grid spacing, and the card-image override that defeats the global
   `.main-content article section img` rule from style.css. */

/* ===== SUPPORT & COMMUNITY CARDS ===== */
.community-section {
  margin: 40px 0;
}

.community-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.community-card {
  border-radius: 24px;
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  color: #fff;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease;
}

.community-card:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.community-card-donate {
  background: linear-gradient(135deg, rgb(13, 123, 167), rgb(0, 168, 204));
}

.community-card-discord {
  background: linear-gradient(135deg, #5865F2, #7984f5);
}

.community-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.community-card-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.community-card h3 {
  margin: 0;
  font-size: 1.4rem;
  color: #fff;
}

.community-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  flex-grow: 1;
}

.community-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 14px 24px;
  background: #fff;
  border-radius: 24px;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.community-card-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.community-card-donate .community-card-btn {
  color: #0d7ba7;
}

.community-card-discord .community-card-btn {
  color: #4752c4;
}

.community-card-btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

.community-card-btn:active {
  transform: scale(0.98);
}

@media (max-width: 600px) {
  .community-cards {
    grid-template-columns: 1fr;
  }
}

/* ===== MORE TOOLS CARDS ===== */
/* Style.css applies `.main-content article section img { height:auto; margin-top:10px;
   border-radius:24px }` globally, which would break the card images on any tool page
   wrapped in <article><section>. Re-assert card.css's image styling with two classes
   (specificity 0,2,2) so it wins regardless of section nesting. */
.main-content .card-image img {
  height: 100%;
  margin-top: 0;
  border-radius: 16px;
}

/* Remove card.css's negative top margin on tool pages so the grid sits a normal gap
   below the "More Tools" heading instead of pulling up against it. */
.cards-container-layout {
  margin-top: 0;
}
