/* Side Hustle Calculator – shared custom styles (supplements Tailwind CDN) */

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* ── Calculator card ── */
.hustle-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  position: relative;
}

/* Results panel */
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px dashed #e5e7eb;
}
.result-row:last-child { border-bottom: none; }
.result-label { color: #6b7280; font-size: 0.9rem; }
.result-value { font-weight: 700; color: #111827; }

/* Take-home highlight */
.takehome-value {
  font-size: 2rem;
  font-weight: 800;
  color: #16a34a;
}

/* Affiliate card */
.affiliate-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  background: #f9fafb;
  transition: box-shadow .2s;
}
.affiliate-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }

/* Nav active link */
.nav-link-active { color: #16a34a; font-weight: 700; }

/* Article prose spacing */
.prose-content h2 { margin-top: 2rem; margin-bottom: 0.75rem; font-size: 1.35rem; font-weight: 700; color: #1f2937; }
.prose-content p  { margin-bottom: 1rem; color: #374151; line-height: 1.75; }
.prose-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose-content li { margin-bottom: 0.4rem; color: #374151; }
.prose-content a  { color: #2563eb; text-decoration: underline; }

/* Mobile table scroll */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 0.65rem 1rem; border: 1px solid #e5e7eb; text-align: left; font-size: 0.875rem; }
th { background: #f3f4f6; font-weight: 700; }

/* Hero gradient */
.hero-gradient {
  background: linear-gradient(135deg, #052e16 0%, #14532d 50%, #166534 100%);
}

/* CTA button */
.btn-primary {
  background: #16a34a;
  color: #fff;
  padding: 0.65rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 700;
  transition: background .2s;
  display: inline-block;
  text-decoration: none;
}
.btn-primary:hover { background: #15803d; }

/* Remove card button */
.remove-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: #fee2e2;
  color: #dc2626;
  border: none;
  border-radius: 0.4rem;
  padding: 0.2rem 0.55rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
}
.remove-btn:hover { background: #fca5a5; }

/* ── W2 Comparison cards ── */
.comparison-card {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  transition: border-color .25s, box-shadow .25s;
}
.comparison-card.highlight-green {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .15);
}
.comparison-card.highlight-orange {
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, .15);
}
.comparison-hourly {
  font-size: 2rem;
  font-weight: 800;
}
.comparison-hourly.text-highlight-green { color: #16a34a; }
.comparison-hourly.text-highlight-orange { color: #ea580c; }
.compare-toggle-btn {
  background: #0f766e;
  color: #fff;
  padding: 0.65rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.compare-toggle-btn:hover { background: #0d6460; }

/* State compare button */
.state-compare-btn {
  background: #4338ca;
  color: #fff;
  padding: 0.65rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.state-compare-btn:hover { background: #3730a3; }
