/* GiveMeCryptos — Clean, Minimal, Personal Cryptocurrency Support Page */

:root {
  --bg-page: #fafaf9;
  --bg-surface: #ffffff;
  --bg-subtle: #f4f4f5;
  --bg-hover: #ececeeed;
  --text-main: #18181b;
  --text-muted: #52525b;
  --text-dim: #71717a;
  --border-color: #e4e4e7;
  --border-subtle: #f0f0f2;
  --border-focus: #18181b;
  --accent: #18181b;
  --accent-hover: #3f3f46;
  --network-tag-bg: #f4f4f5;
  --network-tag-border: #d4d4d8;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Consolas, Menlo, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  padding: 48px 16px 64px 16px;
}

.page-container {
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}

/* Introduction */
.intro-section {
  margin-bottom: 24px;
}

.main-heading {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 8px;
}

.intro-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Notice box */
.notice-box {
  border-left: 3px solid var(--text-main);
  padding: 8px 12px;
  margin-bottom: 28px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

.notice-box p strong {
  color: var(--text-main);
}

/* Wallets Section */
.wallets-section {
  margin-bottom: 32px;
}

.wallet-list {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.wallet-item {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-surface);
}

.wallet-item:last-child {
  border-bottom: none;
}

.wallet-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.wallet-title-group {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.wallet-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.wallet-symbol {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-dim);
}

.wallet-network-text {
  font-size: 12.5px;
  color: var(--text-dim);
}

/* Address container & Click-to-copy box */
.wallet-address-container {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.wallet-address-box {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 9px 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  user-select: all;
}

.wallet-address-box:hover {
  background-color: var(--bg-hover);
  border-color: #d4d4d8;
}

.wallet-address-box:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 1px;
}

.wallet-address-box.just-copied {
  border-color: var(--text-main);
  background-color: #f4f4f5;
}

.wallet-address-text {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text-main);
  word-break: break-all;
  line-height: 1.4;
}

.wallet-address-box.placeholder-warning .wallet-address-text {
  color: #71717a;
  font-style: italic;
}

.copy-hint {
  font-size: 11px;
  color: var(--text-dim);
  margin-left: 10px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.wallet-address-box:hover .copy-hint {
  opacity: 1;
}

.wallet-actions {
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  background-color: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  height: 40px;
}

.btn:hover {
  background-color: var(--bg-subtle);
  border-color: #d4d4d8;
}

.btn:active {
  background-color: #e4e4e7;
}

.btn-copy.copied {
  background-color: var(--text-main);
  color: #ffffff;
  border-color: var(--text-main);
}

/* Network notice */
.wallet-network-notice {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 7px;
}

/* QR Code Display Pane */
.wallet-qr-pane {
  display: none;
  margin-top: 14px;
  padding: 16px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  align-items: center;
  gap: 20px;
}

.wallet-qr-pane.is-open {
  display: flex;
}

.qr-display-frame {
  background: #ffffff;
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.qr-display-frame .qr-image,
.qr-display-frame img,
.qr-display-frame canvas {
  display: block;
  width: 140px;
  height: 140px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

.qr-details {
  flex: 1;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.qr-details p {
  margin-bottom: 2px;
}

.qr-details .qr-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  word-break: break-all;
  margin-top: 6px;
}

/* Accessibility & Focus States */
:focus-visible {
  outline: 2px solid var(--text-main);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  body {
    padding: 24px 12px 48px 12px;
  }

  .main-heading {
    font-size: 30px;
  }

  .wallet-item {
    padding: 16px 14px;
  }

  .wallet-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .wallet-address-container {
    flex-direction: column;
  }

  .wallet-actions {
    width: 100%;
    margin-top: 4px;
  }

  .wallet-actions .btn {
    flex: 1;
  }

  .wallet-qr-pane {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .qr-display-frame {
    margin: 0 auto;
  }

  .copy-hint {
    display: none;
  }
}
