/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #e8edf5;
  --surface:      #ffffff;
  --surface-2:    #f1f5f9;
  --border:       #e2e8f0;
  --border-light: #cbd5e1;
  --text:         #0f172a;
  --text-muted:   #64748b;
  --text-dim:     #94a3b8;
  --accent:       #4f46e5;
  --accent-glow:  #4f46e520;

  --blue:   #2563eb;
  --amber:  #d97706;
  --purple: #7c3aed;
  --red:    #dc2626;
  --green:  #16a34a;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

/* ===== SUBTLE TOP ACCENT LINE ===== */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4f46e5, #7c3aed, #2563eb);
  pointer-events: none;
  z-index: 100;
}

/* ===== LAYOUT ===== */
.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ===== HEADER ===== */
.site-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.site-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-title span {
  font-size: 1rem;
  font-weight: 400;
  display: block;
  -webkit-text-fill-color: var(--text-muted);
  background: none;
  letter-spacing: 0;
  margin-top: 2px;
}

/* GoFundMe button */
.gofundme-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s;
  border: 1px solid #166534;
  box-shadow: 0 0 20px #16a34a30;
  white-space: nowrap;
}

.gofundme-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 32px #16a34a50;
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.gofundme-btn .icon { font-size: 1.1em; }

/* ===== NOTICE BANNER ===== */
.notice-banner {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.notice-banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4f46e5, #7c3aed, #2563eb);
}

.notice-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #4f46e5;
  margin-bottom: 8px;
}

.notice-text {
  font-size: 1rem;
  color: #1e1b4b;
  line-height: 1.7;
}

.notice-text strong {
  color: #1e1b4b;
  font-size: 1.05rem;
}

/* ===== COUNTERS ===== */
.counters-section {
  padding: 40px 0 32px;
}

.counters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .counters-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.counter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
}

.counter-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.13), 0 2px 6px rgba(0,0,0,0.08);
}

.counter-card::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
}

.counter-card.card-applied::after      { background: #2563eb; }
.counter-card.card-interviewing::after { background: #d97706; }
.counter-card.card-waiting::after      { background: #7c3aed; }
.counter-card.card-rejected::after     { background: #dc2626; }

.counter-card:hover.card-applied      { border-color: #bfdbfe; }
.counter-card:hover.card-interviewing { border-color: #fde68a; }
.counter-card:hover.card-waiting      { border-color: #ddd6fe; }
.counter-card:hover.card-rejected     { border-color: #fecaca; }

.counter-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.counter-value {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
}

.card-applied      .counter-value { color: #2563eb; }
.card-interviewing .counter-value { color: #d97706; }
.card-waiting      .counter-value { color: #7c3aed; }
.card-rejected     .counter-value { color: #dc2626; }

/* ===== JOBS TABLE SECTION ===== */
.jobs-section {}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.section-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 2px 10px;
  border-radius: 20px;
}

.table-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  overflow-x: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

thead tr {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.job-row {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  animation: fadeSlideIn 0.4s ease both;
}

.job-row:last-child { border-bottom: none; }

.job-row:hover { background: var(--surface-2); }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

td {
  padding: 14px 16px;
  font-size: 0.875rem;
  color: var(--text);
  vertical-align: middle;
}

.col-num     { color: var(--text-muted); font-size: 0.75rem; width: 40px; }
.col-date    { color: var(--text-dim); white-space: nowrap; }
.col-updated { color: var(--text-dim); white-space: nowrap; font-size: 0.8rem; }
.col-company { min-width: 140px; }
.col-title   { min-width: 200px; }

.role-link {
  color: #4f46e5;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.8rem;
  white-space: nowrap;
  transition: color 0.15s;
}
.role-link:hover { color: #3730a3; text-decoration: underline; }

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid;
  white-space: nowrap;
}

.method-tag {
  font-size: 0.72rem;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 64px 24px !important;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.empty-sub {
  font-size: 0.8rem;
  margin-top: 8px;
  font-style: italic;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== HEADER BUTTONS ===== */
.header-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Dogecoin button */
.doge-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #c9a227, #a88520);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid #8a6d18;
  white-space: nowrap;
}
.doge-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #ddb82e, #c9a227);
  box-shadow: 0 4px 16px rgba(201,162,39,0.35);
}
.doge-btn-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: block;
}

/* ===== MODAL ===== */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 500;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}
.modal-backdrop.open { display: flex; }

.modal-card {
  background: white;
  border-radius: 16px;
  padding: 36px 32px 28px;
  width: min(420px, 92vw);
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  text-align: center;
  animation: modal-in 0.2s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.modal-close:hover { color: var(--text); background: var(--surface-2); }

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.modal-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: -8px;
}

/* Spinning coin */
.coin-wrap { perspective: 600px; }

@keyframes coin-spin {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}

.doge-coin {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  animation: coin-spin 3s linear infinite;
  display: block;
}

/* Address row */
.doge-address-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.doge-address {
  flex: 1;
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 10px;
  color: #334155;
  word-break: break-all;
  text-align: left;
}

.doge-copy-btn {
  padding: 7px 14px;
  background: #c2a633;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.doge-copy-btn:hover  { background: #a88c28; }
.doge-copy-btn.copied { background: #64748b; }

#doge-qr canvas, #doge-qr img {
  border-radius: 6px;
  border: 2px solid var(--border);
}

/* ===== FOOTER ===== */
.site-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 0.75rem;
  color: #94a3b8;
}
