/* ======================================================
   GOLF SYSTEM — WHAT IF CALCULATOR
   ====================================================== */

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

.golf-whatif-wrap {
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}

/* ---- Form ---- */
.whatif-form {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.whatif-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.whatif-row label {
  width: 110px;
  font-size: 13px;
  font-weight: bold;
  color: #444;
  flex-shrink: 0;
}

.whatif-row select,
.whatif-row input[type="number"] {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px;
  background: #fff;
  min-width: 0;
}

#wi-calc-btn {
  align-self: flex-end;
  padding: 10px 28px;
  font-size: 12px;
}

/* ---- Error ---- */
.wi-error-box {
  padding: 10px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  color: #dc2626;
  font-size: 13px;
  margin-bottom: 16px;
}

/* ---- Results ---- */
#wi-results { width: 100%; }

.whatif-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
}

.wi-box {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 16px 12px;
  text-align: center;
  min-width: 0;
}

.wi-hcp-box {
  grid-column: 1 / -1;
  text-align: left;
}

.wi-label {
  font-size: 10px;
  font-weight: bold;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
}

.wi-big  { font-size: 28px; font-weight: 800; color: #333; }

.wi-hi-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.wi-cur   { font-size: 18px; color: #999; font-weight: 600; }
.wi-arrow { font-size: 18px; font-weight: 900; }
.wi-new   { font-size: 28px; font-weight: 800; color: #333; }

.wi-change { font-size: 13px; font-weight: bold; margin-top: 6px; }

.wi-up   { color: #d62828; }
.wi-down { color: #1a6e35; }
.wi-same { color: #6b7280; }

/* ---- Table ---- */
.wi-hcp-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.wi-hcp-table th,
.wi-hcp-table td {
  padding: 9px 8px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}

.wi-hcp-table th:nth-child(1),
.wi-hcp-table td:nth-child(1) { width: 40%; text-align: left; }

.wi-hcp-table th:nth-child(2),
.wi-hcp-table td:nth-child(2),
.wi-hcp-table th:nth-child(3),
.wi-hcp-table td:nth-child(3),
.wi-hcp-table th:nth-child(4),
.wi-hcp-table td:nth-child(4) { width: 20%; }

.wi-hcp-table th {
  background: #333 !important;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.wi-hcp-table td { border-bottom: 1px solid #eee; }

.wi-better { color: #1a6e35; font-weight: 700; }
.wi-worse  { color: #d62828; font-weight: 700; }

/* ======================================================
   MOBILE
   ====================================================== */
@media (max-width: 600px) {

  .golf-whatif-wrap { padding: 0; }
  .whatif-form      { padding: 14px; }

  #wi-calc-btn {
    align-self: stretch;
    width: 100%;
    min-height: 44px;
  }

  .whatif-result-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .wi-hcp-box { grid-column: 1; }
  .wi-big     { font-size: 24px; }
  .wi-new     { font-size: 24px; }
  .wi-cur     { font-size: 16px; }

  .wi-hcp-table th,
  .wi-hcp-table td { font-size: 13px; padding: 9px 6px; }

  .tee-badge {
    font-size: 11px !important;
    padding: 3px 8px !important;
  }
}
