/* Light mode page overrides (park theme toggle sets data-theme="light") */
[data-theme="light"] body {
  background: #f8f8fa;
  color: #1a1a2e;
}

[data-theme="light"] .gb-nav {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .gb-nav-brand {
  color: #1a1a2e;
}

[data-theme="light"] .gb-nav-link {
  color: #555;
}

[data-theme="light"] .gb-nav-link:hover {
  color: #1a1a2e;
}

[data-theme="light"] .gb-body-text,
[data-theme="light"] .text-gray-400 {
  color: #555 !important;
}

[data-theme="light"] .text-gray-500 {
  color: #666 !important;
}

[data-theme="light"] .gb-footer {
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .gb-footer-text {
  color: #666 !important;
}

[data-theme="light"] .gb-footer-text a {
  color: #6c5ce7;
}

[data-theme="light"] .gb-footer-text a:hover {
  color: #5a4bd1;
}

/* On-site tip jar: respond to park theme toggle, not OS preference */
[data-theme="light"] .gb-site-box {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .gb-site-box .gb-s-header {
  color: #1a1a2e !important;
}

[data-theme="light"] .gb-site-box .gb-s-message {
  color: #333333 !important;
}

[data-theme="light"] .gb-site-box .gb-s-sub {
  color: #666666 !important;
}

[data-theme="light"] .gb-site-box .gb-s-crypto-code {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #666666 !important;
}

[data-theme="light"] .gb-site-box .gb-s-crypto-copy {
  color: #666666 !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Generator page styles */

.generator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .generator-grid {
    grid-template-columns: 1fr;
  }
}

/* Form styling */
.form-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
}

[data-theme="light"] .form-section {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

.payment-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
}

.payment-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .payment-toggle:hover {
  background: rgba(0, 0, 0, 0.04);
}

.payment-fields {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.payment-fields.open {
  max-height: 200px;
  padding: 0.5rem 1rem 1rem;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: #444;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.3s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
  background: #6c5ce7;
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* Form inputs */
.gen-input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #e0e0e0;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.gen-input:focus {
  border-color: #6c5ce7;
}

.gen-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .gen-input {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.15);
  color: #333;
}

[data-theme="light"] .gen-input::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

.gen-textarea {
  resize: vertical;
  min-height: 60px;
}

/* Preview area */
.preview-container {
  position: sticky;
  top: 2rem;
}

.preview-frame {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 2rem;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-frame.dark-preview {
  background: #1a1a2e;
}

/* Code output */
.code-output {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1rem;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: #a0a0a0;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 300px;
  overflow-y: auto;
  line-height: 1.4;
}

[data-theme="light"] .code-output {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #555;
}

/* Copy button */
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: #6c5ce7;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.copy-btn:hover {
  background: #5a4bd1;
}

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

.copy-btn.copied {
  background: #00b894;
}

/* Steps section */
.step-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

[data-theme="light"] .step-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #6c5ce7;
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

/* Style toggle */
.style-toggle {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .style-toggle {
  border-color: rgba(0, 0, 0, 0.12);
}

.style-toggle button {
  flex: 1;
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  color: #999;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.style-toggle button.active {
  background: #6c5ce7;
  color: white;
}

/* Payment method brand colors */
.pm-label-paypal { color: #0070ba; }
.pm-label-cashapp { color: #00d632; }
.pm-label-venmo { color: #3d95ce; }
.pm-label-btc { color: #f7931a; }
.pm-label-eth { color: #627eea; }

/* Helper text */
.input-hint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 0.25rem;
}

[data-theme="light"] .input-hint {
  color: rgba(0, 0, 0, 0.4);
}

/* Help tooltip */
.help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #999;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.help-icon:hover {
  background: #6c5ce7;
  color: white;
}

[data-theme="light"] .help-icon {
  background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .help-icon:hover {
  background: #6c5ce7;
  color: white;
}

.help-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  padding: 0.75rem 1rem;
  background: #2a2a3e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  font-size: 0.8rem;
  font-weight: 400;
  color: #d0d0d0;
  line-height: 1.5;
  z-index: 100;
  text-align: left;
}

.help-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #2a2a3e;
}

[data-theme="light"] .help-tooltip {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  color: #444;
}

[data-theme="light"] .help-tooltip::after {
  border-top-color: #ffffff;
}

.help-icon:hover .help-tooltip,
.help-icon:focus .help-tooltip {
  display: block;
}

/* Platform guide cards */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
}

.platform-card:hover {
  border-color: #6c5ce7;
  background: rgba(108, 92, 231, 0.06);
}

[data-theme="light"] .platform-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .platform-card:hover {
  border-color: #6c5ce7;
  background: rgba(108, 92, 231, 0.04);
}

.platform-card .platform-icon {
  font-size: 1.5rem;
}

.platform-card .platform-name {
  font-size: 0.8rem;
  font-weight: 600;
}

/* Platform instructions modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open {
  display: flex;
}

.modal-content {
  background: #1e1e2e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  max-width: 520px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .modal-content {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #999;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
}

.modal-close:hover {
  color: white;
}

[data-theme="light"] .modal-close:hover {
  color: #333;
}

.modal-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.modal-content ol {
  padding-left: 1.25rem;
  margin: 0;
}

.modal-content li {
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  color: #c0c0c0;
  line-height: 1.5;
}

[data-theme="light"] .modal-content li {
  color: #555;
}

.modal-content code {
  background: rgba(108, 92, 231, 0.15);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.8rem;
}
