/* Donate Page Styles */

/* Disable tap highlight on mobile */
.donate-primary-btn,
.donate-binance-btn,
.donate-binance-id,
.donate-base-ens,
.donate-qr-container,
.donate-qr-toggle,
.donate-card-address,
.donate-show-more-btn {
  -webkit-tap-highlight-color: transparent;
}

/* Primary Cards Grid (Ko-fi and Gift Cards) */
.donate-primary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

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

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

.donate-primary-card p {
  flex-grow: 1;
}

.donate-primary-card h2 {
  margin: 0;
  font-size: 1.5rem;
}

.donate-primary-card > p {
  margin: 0;
  margin-top: 8px;
  color: #555;
  font-size: 15px;
}

.donate-giftcard-link {
  color: #0d7ba7;
  text-decoration: underline;
}

.donate-giftcard-link:hover {
  color: #096B8C;
}

/* Gift Cards card - subtle silver to white gradient */
.donate-primary-giftcard {
  background: linear-gradient(135deg, #e8e8e8, #ffffff);
}

/* Ko-fi card - blue gradient background */
.donate-primary-kofi {
  background: linear-gradient(135deg, rgb(13, 123, 167), rgb(0, 168, 204));
  color: #fff;
  border: 1px solid #8b8b8b;
}

.donate-primary-kofi h2,
.donate-primary-kofi p {
  color: #fff;
}

/* Primary buttons */
.donate-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: #fff;
  color: #0d7ba7;
  border-radius: 24px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 14px;
}

.donate-primary-btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

.donate-primary-btn:active {
  transform: scale(0.98);
}

.donate-primary-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Gift card button - gradient style */
.donate-primary-btn-white {
  position: relative;
  background: transparent;
  color: #fff;
  overflow: hidden;
  z-index: 1;
}

.donate-primary-btn-white::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(13, 123, 167), rgb(0, 168, 204));
  border-radius: inherit;
  transition: opacity 0.2s ease;
  z-index: -1;
}

.donate-primary-btn-white::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(11, 108, 147), rgb(0, 150, 182));
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: -1;
}

.donate-primary-btn-white:hover::after {
  opacity: 1;
}

.donate-primary-btn-white:hover {
  background: transparent;
}

.donate-primary-btn-white:active {
  transform: scale(0.98);
}

/* Crypto Primary Grid (Binance Pay and Base) */
.donate-crypto-primary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

/* Binance Pay Card */
.donate-binance-card {
  background: linear-gradient(135deg, #F0B90B, #FCD535);
  border: 1px solid rgb(212, 212, 212);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease;
}

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

.donate-binance-card h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #1E2329;
}

.donate-binance-card p {
  margin: 0;
  margin-top: 8px;
  color: #1E2329;
  font-size: 15px;
  opacity: 0.85;
  flex-grow: 1;
}

.donate-binance-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: #1E2329;
  color: #F0B90B;
  border-radius: 24px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 14px;
}

.donate-binance-btn:hover {
  background: #2B3139;
}

.donate-binance-btn:active {
  transform: scale(0.98);
}

.donate-binance-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.donate-binance-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.donate-binance-actions > * {
  flex: 1;
}

.donate-binance-id {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: rgba(30, 35, 41, 0.2);
  color: #1E2329;
  border-radius: 24px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.donate-binance-id:hover {
  background: rgba(30, 35, 41, 0.3);
}

.donate-binance-id:active {
  transform: scale(0.98);
}

.donate-binance-id .donate-copy-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.donate-binance-id.copied {
  background: rgba(32, 53, 18, 0.3);
}

/* Base (Coinbase L2) Card */
.donate-base-card {
  background: linear-gradient(135deg, #3B5EE8, #6B8FFF);
  border: 1px solid #8b8b8b;
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease;
}

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

.donate-base-card h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #fff;
}

.donate-base-card p {
  margin: 0;
  margin-top: 8px;
  color: #fff;
  font-size: 15px;
  opacity: 0.9;
  flex-grow: 1;
}

.donate-base-ens {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: #fff;
  color: #4472FA;
  border-radius: 24px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.donate-base-ens:hover {
  background: rgba(255, 255, 255, 0.8);
}

.donate-base-ens:active {
  transform: scale(0.98);
}

.donate-copy-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.donate-ens-name {
  font-weight: 600;
}

.donate-base-ens.copied {
  background: #d1fae5;
  color: #16a34a;
}

/* Crypto Section */
.donate-crypto-container {
  position: relative;
}

/* Crypto Cards Grid */
.donate-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

/* Hidden crypto cards */
.donate-card.donate-card-hidden {
  display: none;
}

.donate-cards-grid.expanded .donate-card.donate-card-hidden {
  display: flex;
}

/* Fourth card - hidden on 3-column, visible on 2-column */
.donate-card.donate-card-fourth {
  display: none;
}

.donate-cards-grid.expanded .donate-card.donate-card-fourth {
  display: flex;
}

/* Crypto Card - matching horizontal-card pattern */
.donate-card {
  background-color: #fff;
  border: 1px solid rgb(212, 212, 212);
  border-radius: 24px;
  padding: 8px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

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

/* Title at top */
.donate-card-header {
  padding: 6px 12px 6px;
}

.donate-card-title {
  font-size: 16px;
  font-weight: bold;
  color: #000;
  margin: 0;
}

.donate-network-tag {
  font-size: 11px;
  font-weight: 500;
  color: #666;
  background: #e5e7eb;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 4px;
  vertical-align: middle;
}

/* Content area */
.donate-card-content {
  background: #f3f4f6;
  border-radius: 16px;
  padding: 16px 8px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 1;
}

/* QR Code */
.donate-qr-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  cursor: pointer;
}

.donate-qr {
  width: 100px;
  height: 100px;
  border-radius: 0 !important;
  margin-top: 0 !important;
  filter: blur(8px);
  transition: filter 0.2s ease;
}

.donate-qr-container.visible .donate-qr {
  filter: blur(0);
}

.donate-qr-toggle {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.donate-qr-toggle:hover {
  background: #fff;
  transform: scale(1.05);
}

.donate-qr-toggle:active {
  transform: scale(0.95);
}

.donate-qr-toggle svg {
  width: 18px;
  height: 18px;
  color: #374151;
}

.donate-qr-container.visible .donate-qr-toggle {
  opacity: 0;
  pointer-events: none;
}

/* Address box */
.donate-card-address {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 4px;
  background-color: transparent;
  border-radius: 12px;
  padding: 8px 10px 8px 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
  margin-top: auto;
}

.donate-card-address:hover {
  background-color: rgba(0, 0, 0, 0.06);
}

.donate-card-address:hover .donate-copy-icon {
  color: #374151;
}

.donate-card-address:active {
  transform: scale(0.98);
}

.donate-card-address code {
  flex: 1;
  font-size: 12px;
  background: none;
  border: none;
  padding: 0;
  color: #374151;
  font-family: Consolas, 'Roboto Mono', 'SF Mono', Monaco, monospace;
  word-break: break-all;
  text-align: left;
}

.donate-copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  background-color: transparent;
  transition: all 0.2s ease;
}


.donate-copy-btn .donate-copy-icon {
  width: 14px;
  height: 14px;
  color: #6b7280;
  transition: color 0.2s ease;
}

.donate-card-address.copied {
  background-color: rgba(34, 197, 94, 0.15);
}

.donate-card-address.copied code {
  color: #16a34a;
}

.donate-card-address.copied .donate-copy-icon {
  color: #16a34a;
}

/* Show More Button */
.donate-show-more {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.donate-show-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
}

.donate-show-more-btn:hover {
  background: #e5e7eb;
}

.donate-show-more-btn:active {
  transform: scale(0.98);
}

.donate-show-more-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.donate-show-more-btn.expanded svg {
  transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 800px) {
  .donate-primary-grid {
    grid-template-columns: 1fr;
  }

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

  .donate-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Show 4th card on 2-column layout to fill the grid */
  .donate-card.donate-card-fourth {
    display: flex;
  }

  .donate-binance-card p,
  .donate-base-card p {
    flex-grow: 0;
    margin-bottom: 16px;
  }

  .donate-binance-actions {
    flex-direction: column;
    margin-top: auto;
  }

  .donate-base-ens {
    margin-top: auto;
  }
}

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

  .donate-card-address code {
    font-size: 12px;
  }
}

@media (max-width: 240px) {
  .donate-copy-btn {
    display: none;
  }
}

