/* donate.css */

/* ============================================
   LAYOUT
   ============================================ */
.donate-main {
  min-height: 100vh;
  padding: 6rem 2rem 5rem;
}

.donate-container {
  max-width: 860px;
  margin: 0 auto;
}

/* ============================================
   HERO
   ============================================ */
.donate-hero {
  text-align: center;
  padding: 2rem 0 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 3rem;
}

.donate-logo {
  width: 56px;
  height: 56px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 18px rgba(180, 22, 22, 0.4));
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.donate-title {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.donate-subtitle {
  font-size: 1rem;
  color: #999;
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================
   IMPACT ITEMS
   ============================================ */
.donate-impact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.donate-impact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 1.5rem;
}

.donate-impact-icon {
  width: 40px;
  height: 40px;
  background: rgba(180, 22, 22, 0.08);
  border: 1px solid rgba(180, 22, 22, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b41616;
  flex-shrink: 0;
}

.donate-impact-item h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.donate-impact-item p {
  font-size: 0.8rem;
  color: #777;
  line-height: 1.65;
  margin: 0;
}

/* ============================================
   DONATION CARD — two-column layout
   ============================================ */
.donate-card {
  display: grid;
  grid-template-columns: 1fr 240px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

/* LEFT COLUMN */
.donate-card-inner {
  padding: 2.25rem 2.5rem;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.donate-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.donate-card-icon {
  width: 42px;
  height: 42px;
  background: rgba(180, 22, 22, 0.08);
  border: 1px solid rgba(180, 22, 22, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b41616;
  flex-shrink: 0;
}

.donate-card-header h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
}

.donate-card-header p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

.donate-body-text {
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.75;
}

.donate-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.donate-feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #999;
}

.donate-feature svg {
  color: #34d399;
  flex-shrink: 0;
}

/* DONATE BUTTON */
.donate-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.5rem;
  background: #b41616;
  color: #fff;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: box-shadow 0.2s ease, background 0.2s ease;
  align-self: flex-start;
}

.donate-btn:hover {
  background: #c91c1c;
  box-shadow: 0 6px 22px rgba(180, 22, 22, 0.4);
}

.btn-arrow {
  margin-left: auto;
  transition: transform 0.2s ease;
}

.donate-btn:hover .btn-arrow {
  transform: translateX(3px);
}

.donate-small-print {
  font-size: 0.75rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

.donate-small-print a {
  color: #777;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.donate-small-print a:hover {
  color: #aaa;
}

/* RIGHT COLUMN */
.donate-card-aside {
  background: rgba(255, 255, 255, 0.01);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.aside-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.125rem;
}

.aside-perks {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.aside-perk {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #888;
}

.aside-perk svg {
  color: #34d399;
  flex-shrink: 0;
}

/* ============================================
   RECENT DONATORS
   ============================================ */
.donators-section {
  margin-top: 0.5rem;
}

.donators-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 0;
}

.donators-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.donators-title-row svg {
  color: #b41616;
}

.donators-count {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.2);
}

.donators-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top: none;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

/* DONATOR ROW */
.donator-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.15s ease;
}

.donator-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.donator-avatar {
  position: relative;
  flex-shrink: 0;
}

.donator-avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: block;
  background: rgba(255, 255, 255, 0.05);
}

.avatar-fallback {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(180, 22, 22, 0.12);
  border: 1px solid rgba(180, 22, 22, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #f87171;
  text-transform: uppercase;
}

.donator-info {
  flex: 1;
  min-width: 0;
}

.donator-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.donator-username {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.donator-discord-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(88, 101, 242, 0.8);
  background: rgba(88, 101, 242, 0.08);
  border: 1px solid rgba(88, 101, 242, 0.15);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  flex-shrink: 0;
}

.donator-message {
  font-size: 0.775rem;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.donator-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  flex-shrink: 0;
}

.donator-amount {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
}

.donator-time {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.2);
}

/* ============================================
   SKELETON
   ============================================ */
.donator-skeleton {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
}

@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}

.skeleton-avatar,
.skeleton-line,
.skeleton-amount {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 75%
  );
  background-size: 400px 100%;
  animation: shimmer 1.6s infinite linear;
  border-radius: 4px;
}

.skeleton-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skeleton-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skeleton-line       { height: 10px; }
.skeleton-line--short  { width: 80px; }
.skeleton-line--medium { width: 140px; }
.skeleton-line--long   { width: 200px; }

.skeleton-amount {
  width: 48px;
  height: 14px;
  flex-shrink: 0;
}

/* ============================================
   EMPTY / ERROR
   ============================================ */
.donators-empty {
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}

.donators-empty p {
  font-size: 0.825rem;
  color: rgba(255, 255, 255, 0.2);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 860px) {
  .donate-impact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .donate-main {
    padding: 5rem 1.25rem 3rem;
  }

  .donate-card {
    grid-template-columns: 1fr;
  }

  .donate-card-inner {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.75rem 1.5rem;
  }

  .donate-card-aside {
    padding: 1.75rem 1.5rem;
  }

  .donate-btn {
    width: 100%;
    justify-content: center;
  }

  .donator-discord-tag {
    display: none;
  }

  .donator-row {
    padding: 0.875rem 1rem;
  }
}
