/* ============ DONATION WIDGET STYLES ============ */

.donation-widget {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin: 24px auto;
  max-width: 600px;
  position: relative;
  box-shadow: 0 2px 8px var(--shadow);
}

.donation-widget-heading {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

.donation-widget-subtext {
  font-size: 0.9em;
  color: var(--text-muted);
  margin: 0 0 20px;
  line-height: 1.5;
}

.donation-widget-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.donation-widget-close:hover {
  color: var(--text);
  background: var(--border);
}

.donation-widget-close:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* Tabs */
.donation-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 16px;
  overflow-x: auto;
}

.donation-tab {
  background: none;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.donation-tab:hover {
  color: var(--text);
}

.donation-tab.active {
  color: var(--secondary);
  border-bottom-color: var(--secondary);
  font-weight: 600;
}

.donation-tab:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* Panels */
.donation-panel {
  padding: 16px 0;
  line-height: 1.6;
}

.donation-panel p {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 0.9em;
}

/* Interac section */
.interac-email-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.interac-email {
  font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
  font-size: 1em;
  background: var(--input-bg);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 6px;
  color: var(--text);
  user-select: all;
  flex: 1;
  overflow-x: auto;
}

.btn-copy-email {
  background: var(--secondary);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85em;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-copy-email:hover {
  background: var(--secondary-dark);
}

.btn-copy-email:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

.interac-note {
  font-size: 0.85em !important;
  color: var(--text-muted) !important;
  margin: 8px 0 0 !important;
  font-style: italic;
}

.interac-noscript {
  margin-top: 8px;
}

.interac-noscript input {
  font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--input-bg);
  color: var(--text);
  width: 100%;
}

/* External donation links */
.donation-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9em;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}

.donation-link:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.donation-link:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

.kofi-link {
  background: #29abe0;
  color: #fff;
}

.bmc-link {
  background: #5F7FFF;
  color: #fff;
}

/* Disclaimer */
.donation-disclaimer {
  font-size: 0.8em !important;
  color: var(--text-muted) !important;
  margin: 16px 0 0 !important;
  line-height: 1.4;
}

/* Feedback prompt */
.feedback-prompt {
  text-align: center;
  padding: 16px;
  font-size: 0.9em;
  color: var(--text-muted);
}

.feedback-prompt a {
  color: var(--secondary);
  text-decoration: underline;
}

.feedback-prompt a:hover {
  color: var(--secondary-dark);
}

/* Responsive */
@media (max-width: 640px) {
  .donation-widget {
    margin: 16px 12px;
    padding: 16px;
  }

  .donation-tabs {
    gap: 0;
  }

  .donation-tab {
    padding: 8px 10px;
    font-size: 0.82em;
  }

  .interac-email-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-copy-email {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .donation-widget,
  .donation-tab,
  .donation-link,
  .btn-copy-email,
  .donation-widget-close,
  .support-card,
  .support-methods {
    transition: none;
  }
}

/* ============ SUPPORT PAGE STYLES ============ */

.support-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.support-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

.support-card:hover {
  box-shadow: 0 4px 16px var(--shadow);
  transform: translateY(-2px);
}

.support-card h3 {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
}

.support-card p {
  font-size: 0.9em;
  color: var(--text-muted);
  margin: 0 0 12px;
  line-height: 1.5;
}

.support-card .btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9em;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: var(--secondary);
  transition: opacity 0.2s;
}

.support-card .btn:hover {
  opacity: 0.9;
}

.support-card .btn:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

.support-note {
  font-size: 0.85em;
  color: var(--text-muted);
  font-style: italic;
}

.support-disclaimer {
  font-size: 0.85em;
  color: var(--text-muted);
  margin-top: 24px;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .support-methods {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .support-card {
    padding: 16px;
  }
}
