@import url('https://fonts.googleapis.com/css2?family=Raleway&display=swap');

.title {
  font-size: 34px;
  text-align: center;
  margin-top: 42px;
}

.title h1 {
  color: black;
}

.title p {
  color: #7a7a8c;
  font-size: 18px;
  margin-top: 8px;
}

.servers-page {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  margin-bottom: 60px;
}

.servers-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 1100px;
  padding: 0 16px;
  box-sizing: border-box;
}

/* Card styling */
.server-card {
  width: 100%;
  background: white;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;          /* center logo vertically vs main content */
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
  cursor: pointer;              /* indicates card is clickable */
}

.server-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.25);
}

/* Logo left */
.server-logo-wrapper {
  flex-shrink: 0;
  margin-right: 20px;
}

.server-logo-link {
  display: inline-block;
  width: 96px;
  height: 96px;
}

.server-logo {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.server-logo.placeholder {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background-color: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #7a7a8c;
}

/* Main content */
.server-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Header row: name + votes */
.server-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.server-name {
  font-size: 22px;
  margin: 0;
  font-weight: bold;
}

.server-card .server-name a {
  color: black;
  text-decoration: none;
}

.server-card .server-name a:hover {
  color: var(--light-purple);
  text-decoration: underline;
}

.server-header {
  display: block;
}

.server-votes-inline {
  font-size: 14px;
  color: #7a7a8c;
  margin-left: 8px;
  font-weight: normal;
}

/* Description */
.server-description {
  font-size: 15px;
  color: #444;
  margin: 4px 0 16px 0;
  line-height: 1.5;
  max-width: 900px;
}

/* Action buttons row */
.server-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Unified mini-card style */
.server-cta-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px 14px;
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 0 4px rgba(0,0,0,0.08);
  min-width: 160px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.server-cta-card:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.server-cta-card .cta-title {
  font-weight: bold;
  font-size: 14px;
}

.server-cta-card .cta-sub {
  font-size: 12px;
  opacity: 0.9;
}

/* Colors */
.copy-card {
  background: var(--light-purple);
  color: white;
}

.discord-card {
  background: #5865f2;
  color: white;
}

.modpack-card {
  background: #23c55e;
  color: white;
}

.copy-card:disabled {
  opacity: 0.7;
  cursor: default;
}

.empty-state {
  text-align: center;
  justify-content: center;
  font-size: 18px;
  color: #666;
}

/* Responsive */
@media screen and (max-width: 900px) {
  .server-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
  }

  .server-logo-wrapper {
    margin-right: 0;
    margin-bottom: 12px;
  }

  .server-logo-link {
    margin: 0 auto;
  }

  .server-main {
    align-items: center;
  }

  .server-description {
    max-width: 100%;
  }

  .server-actions {
    justify-content: center;
  }

.server-header {
  display: block;
}

.server-votes-inline {
  font-size: 14px;
  color: #7a7a8c;
  margin-left: 8px;
  font-weight: normal;
}

}