/* css/donate.css */

/* --- Page Layout --- */
.donate-page {
  /* Dynamic padding based on viewport height/width */
  padding-top: var(--top-gap, 64px); 
  padding-bottom: clamp(60px, 8vw, 120px);
}

/* --- Hero Section --- */
.donate-hero {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 80px);
  padding-top: clamp(20px, 4vw, 60px);
  border-bottom: 1px solid var(--border-subtle, #262626);
  padding-bottom: clamp(40px, 6vw, 80px);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px; /* Safety padding for mobile */
}

.page-title {
  font-family: var(--font-ui, sans-serif);
  /* Responsive font size scaling */
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  color: var(--text-primary, #E0E0E0);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  font-weight: 700;
}

.page-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary, #666);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Wallet Grid --- */
.wallet-grid {
  display: grid;
  /* Auto-fit: Creates as many columns as fit. 
     minmax(290px, 1fr): Cards won't get smaller than 290px, preventing squashing on phones. */
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin-bottom: clamp(60px, 8vw, 100px);
}

/* Wallet Card Style */
.wallet-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle, #262626);
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  /* Ensure consistent height in row */
  height: 100%;
}

.wallet-card:hover {
  border-color: var(--border-focus, #444);
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.04);
}

/* Preferred Card (Monero) Highlight */
.wallet-card.preferred {
  border-color: rgba(255, 255, 255, 0.25);
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.coin-icon {
  width: 32px;
  height: 32px;
  color: var(--text-primary, #E0E0E0);
  flex-shrink: 0;
}

.coin-name {
  font-family: var(--font-mono, monospace);
  font-size: 16px;
  color: var(--text-primary, #E0E0E0);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.badge {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  background: var(--text-primary, #E0E0E0);
  color: var(--bg-app, #0A0A0A);
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: auto;
  font-weight: bold;
  letter-spacing: 0.05em;
}

.coin-desc {
  font-size: 15px;
  color: var(--text-secondary, #666);
  margin-bottom: 28px;
  line-height: 1.5;
  flex-grow: 1; /* Pushes address box to bottom */
}

/* Address Box (The "Input" look) */
.address-box {
  margin-top: auto; 
  background: #000;
  border: 1px solid var(--border-subtle, #262626);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px; /* Touch target size */
}

.address-text {
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  color: var(--text-secondary, #666);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* Prevent text from taking over the button space */
  max-width: calc(100% - 30px);
}

.copy-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary, #666);
  cursor: pointer;
  padding: 6px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  flex-shrink: 0; /* Don't shrink icon */
}

.copy-btn:hover {
  color: var(--text-primary, #E0E0E0);
  background: rgba(255,255,255,0.1);
}

.copy-btn:active {
  transform: scale(0.95);
}

.copy-btn svg { width: 18px; height: 18px; }

/* --- Transparency Section --- */
.transparency-section {
  border-top: 1px solid var(--border-subtle, #262626);
  padding-top: clamp(40px, 6vw, 80px);
}

.transparency-block {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px;
}

.transparency-block h3 {
  font-family: var(--font-mono, monospace);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted, #808080);
  margin-bottom: 28px;
  text-align: center;
}

.cost-list {
  list-style: none;
  padding: 0;
}

.cost-list li {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-secondary, #666);
  margin-bottom: 16px;
  padding-left: 24px;
  position: relative;
  line-height: 1.7;
}

.cost-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--border-focus, #444);
  font-family: var(--font-mono, monospace);
  top: 1px;
}

.cost-list strong {
  color: var(--text-primary, #E0E0E0);
  font-weight: 500;
}

/* Header/Footer Consistency */
.nav-utils {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 24px;
  padding-left: 24px;
  border-left: 1px solid var(--border-subtle, #262626);
}

/* --- FOOTER --- */
.site-footer { padding-bottom: var(--s-48); }
.footer-links { display: flex; gap: var(--s-18); flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); opacity: 0.8; }
.footer-links a:hover { color: var(--text-bright); opacity: 1; }
.footer-note { margin-top: 10px; color: var(--text-muted); font-size: 12px; opacity: 0.6; }


.util-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted, #808080);
  text-decoration: none;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono, monospace);
}

.util-item:hover { color: var(--text-primary, #E0E0E0); }
.util-icon { width: 18px; height: 18px; }

/* --- RESPONSIVE ADJUSTMENTS --- */

/* Tablet & Mobile (Break layout sooner for cleaner look) */
@media (max-width: 900px) {
  /* Stack nav utils on mobile */
  .nav-utils {
    width: 100%;
    margin-left: 0; 
    padding-left: 0; 
    border-left: none; 
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle, #262626);
    justify-content: flex-start;
  }
}

/* Mobile Specific */
@media (max-width: 600px) {
  /* Allow grid to go full width */
  .wallet-grid { 
    grid-template-columns: 1fr; 
    gap: 20px;
  }
  
  /* Left align hero on mobile for better readability? 
     Or keep centered. Centered usually looks better for hero. */
  
  /* Tweak card padding for small screens */
  .wallet-card {
    padding: 20px;
  }
  
  .address-text {
    font-size: 12px;
  }
}

/* Large Screens */
@media (min-width: 1400px) {
  .wallet-grid {
    gap: 40px; /* More breathing room on huge screens */
  }
  
  .wallet-card {
    padding: 32px;
  }
}