/* Charity satire — mock NFT marketplace listing aesthetic */

.charity-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.charity-overlay[hidden] {
  display: none;
}

.charity-card {
  position: relative;
  background: #0d1117;
  border: 1px solid #21262d;
  border-radius: 8px;
  width: 420px;
  max-width: 100%;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1.5rem 1.5rem 1.25rem;
  color: #c9d1d9;
  font-family: 'Inter', 'Source Sans 3', Arial, sans-serif;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8);
}

.charity__close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  color: #6e7681;
  border: none;
  font-size: 1.2rem;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border-radius: 50%;
  transition: all 0.15s ease;
  z-index: 10;
  font-family: Arial, sans-serif;
}

.charity__close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #c9d1d9;
}

/* NFT listing header — collection name */
.charity__photo-wrap {
  position: relative;
  width: 100%;
  margin: 0 0 0.5rem;
  border-radius: 6px;
  overflow: hidden;
  background: #161b22;
  border: 1px solid #21262d;
}

.charity__photo {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #161b22;
  display: block;
  padding: 1rem;
}

/* NFT identifier — token number */
.charity__token-id {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.75rem;
  color: #6e7681;
  text-align: center;
  margin: 0 0 0.75rem;
  letter-spacing: 0.05em;
}

/* Fake market stats — the visual punchline */
.charity__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.charity__stat {
  text-align: center;
}

.charity__stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: #6e7681;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
  display: block;
}

.charity__stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 600;
  color: #c9d1d9;
}

.charity__stat-value--negative {
  color: #f85149;
}

.charity__stat-value--negative::before {
  content: '▼ ';
  font-size: 0.8em;
}

/* Section divider — terminal/marketplace style */
.charity__divider {
  height: 1px;
  background: #21262d;
  margin: 0 -0.5rem 1rem;
}

/* Caption — the "Meet Bro" hook */
.charity__caption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: #f85149;
  text-align: center;
  margin: 0 0 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

/* Story paragraphs — Bro's tragic NFT arc */
.charity__story {
  margin: 0 0 1.25rem;
  text-align: center;
}

.charity__story p {
  font-family: 'Inter', 'Source Sans 3', Arial, sans-serif;
  font-size: 0.85rem;
  color: #8b949e;
  line-height: 1.5;
  margin: 0 0 0.4rem;
}

.charity__story p:last-child {
  margin-bottom: 0;
}

/* CTA prompt */
.charity__cta-prompt {
  font-size: 0.9rem;
  font-weight: 600;
  color: #c9d1d9;
  text-align: center;
  margin: 0 0 1rem;
  line-height: 1.4;
}

.btn-charity-donate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: #1b9fff;
  color: #ffffff;
  font-family: 'Inter', 'Source Sans 3', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.2s ease;
  margin-bottom: 0.85rem;
}

.btn-charity-donate i {
  font-size: 1.1rem;
  color: #ffffff;
}

.btn-charity-donate:hover {
  background: #0d8de8;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(27, 159, 255, 0.3);
}

/* Pivot — small footer line */
.charity__pivot {
  font-size: 0.78rem;
  color: #6e7681;
  text-align: center;
  line-height: 1.4;
  margin: 0;
  font-style: italic;
}

/* Mobile */
@media (max-width: 480px) {
  .charity-card {
    padding: 1.25rem 1.25rem 1rem;
  }

  .charity__photo {
    height: 160px;
    padding: 0.75rem;
  }

  .charity__stats {
    padding: 0.6rem;
  }

  .charity__stat-value {
    font-size: 0.85rem;
  }

  .charity__caption {
    font-size: 0.8rem;
  }

  .charity__story p {
    font-size: 0.8rem;
  }

  .charity__cta-prompt {
    font-size: 0.85rem;
  }

  .btn-charity-donate {
    font-size: 0.85rem;
    padding: 0.75rem;
  }

  .charity__pivot {
    font-size: 0.72rem;
  }
}