/* =========================================================
   golf-style.css
   Full replacement stylesheet rebuilt to use colors.css tokens
   and the centralized hybrid color system.

   IMPORTANT:
   Load colors.css BEFORE this file.
   Example:
   <link rel="stylesheet" href="./colors.css" />
   <link rel="stylesheet" href="./golf-style.css" />
   ========================================================= */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg, #0F1A14);
  color: var(--text, #ffffff);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  -webkit-text-size-adjust: 100%;
}

.app-shell {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) 14px calc(env(safe-area-inset-bottom, 0px) + 24px);
}

.page-header {
  text-align: center;
  padding: 4px 4px 14px;
}

.page-header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 6vw, 3rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.subtitle {
  margin: 6px 0 0;
  font-size: clamp(0.86rem, 2.8vw, 1rem);
  color: var(--muted, #b8c0bb);
  font-weight: 500;
}

.stripe {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 10px;
  box-shadow: var(--shadow, 0 14px 36px rgba(0, 0, 0, 0.32));
}

.stripe-alert { color: #fff; }
.stripe-course { background: var(--course-yellow); color: var(--course-text); }
.stripe-start { background: var(--start-blue); color: #fff; }

.commissioner-stamp {
  margin: -2px 2px 12px;
  font-size: 0.84rem;
  color: var(--muted, #b8c0bb);
  text-align: right;
}

.alert-purple { background: var(--alert-purple); color: #fff; }
.alert-red { background: var(--alert-red); color: #fff; }
.alert-red-orange { background: var(--alert-red-orange); color: #fff; }
.alert-orange { background: var(--alert-orange); color: #fff; }
.alert-amber { background: var(--alert-amber); color: #111; }
.alert-green { background: var(--alert-green); color: #fff; }

.black-text { color: #111 !important; }
.hidden { display: none !important; }

.hero-card,
.card {
  background: var(--panel, rgba(255, 255, 255, 0.045));
  border: 1px solid var(--panel-border, rgba(255, 255, 255, 0.08));
  border-radius: 18px;
  box-shadow: var(--shadow, 0 14px 36px rgba(0, 0, 0, 0.32));
  backdrop-filter: blur(8px);
}

.hero-card {
  text-align: center;
  padding: 24px 18px 16px;
  margin-bottom: 12px;
}

.current-temp {
  font-size: clamp(4rem, 18vw, 8rem);
  line-height: 0.95;
  font-weight: 850;
  letter-spacing: -0.06em;
  text-shadow: 0 4px 20px rgba(0,0,0,0.38);
}

.feels-like {
  margin-top: 10px;
  font-size: 1rem;
  color: var(--muted, #b8c0bb);
}

.lightning-line,
.updated-line {
  margin-top: 14px;
  font-size: 1.02rem;
  font-weight: 650;
}

.updated-line {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted, #b8c0bb);
}

.card {
  padding: 16px 14px;
  margin-bottom: 12px;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1.08rem;
  line-height: 1.15;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.forecast-rows,
.form-stack {
  display: grid;
  gap: 10px;
}

.forecast-row,
.info-row,
.button-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.forecast-row + .forecast-row,
.info-row + .info-row {
  border-top: 1px solid var(--divider, rgba(255, 255, 255, 0.08));
  padding-top: 10px;
}

.forecast-time,
.label,
.field-label {
  font-size: 1rem;
  color: var(--text);
  font-weight: 700;
}

.forecast-value,
.value,
.wind-line {
  font-size: 1rem;
  color: var(--text);
  font-weight: 650;
  text-align: right;
}

.text-forecast,
.help-text,
.status-line {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text);
}

.help-text {
  color: #ffb4b4;
  min-height: 1.2em;
}

.status-line {
  color: var(--muted, #b8c0bb);
}

.top-gap { margin-top: 10px; }

.text-input {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid var(--panel-border, rgba(255, 255, 255, 0.08));
  background: rgba(255,255,255,0.06);
  color: #fff;
  padding: 12px 14px;
  font-size: 1rem;
}

.button-grid {
  display: grid;
  gap: 10px;
}

.two-col {
  grid-template-columns: 1fr 1fr;
}

.choice-button,
.action-button,
.secondary-button,
.secondary-link,
.commissioners-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  padding: 14px 12px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  background: var(--button);
  border: 1px solid var(--button-border);
  box-shadow: var(--shadow, 0 14px 36px rgba(0, 0, 0, 0.32));
}

.secondary-button,
.secondary-link {
  background: rgba(255,255,255,0.06);
}

.choice-button.selected {
  background: var(--button-active);
  outline: 2px solid rgba(255,255,255,0.4);
}

.danger-choice.selected,
.danger-choice {
  background: #7a2121;
}

.commissioners-button {
  display: block;
  margin-top: 14px;
}

.stack-mobile {
  flex-direction: column;
}

@media (min-width: 640px) {
  .app-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .card {
    padding: 18px 18px;
  }

  .stack-mobile {
    flex-direction: row;
  }
}

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

/* =========================================================
   Signup / game status color classes
   Rebuilt to use the centralized system from colors.css
   ========================================================= */

.signup-alert-line.time-alert.status-green,
.signup-alert-line.time-alert.status-yellow,
.signup-alert-line.time-alert.status-red,
.signup-alert-line.time-alert.status-blue,
.signup-alert-line.time-alert.status-orange,
.signup-alert-line.time-alert.status-purple,
.signup-alert-line.time-alert.status-gray {
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    0 8px 20px rgba(0,0,0,0.18);
}

.signup-alert-line.time-alert.status-green {
  background: var(--panel, rgba(255, 255, 255, 0.045));
  border-color: var(--green-border);
  color: var(--green-text);
  text-shadow: 0 1px 0 rgba(0,0,0,0.25);
}

.signup-alert-line.time-alert.status-green::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--top-bar-height);
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  background: linear-gradient(180deg, var(--green-top), var(--green-bottom));
}

.signup-alert-line.time-alert.status-yellow {
  background: var(--panel, rgba(255, 255, 255, 0.045));
  border-color: var(--yellow-border);
  color: var(--yellow-text);
  text-shadow: 0 1px 0 rgba(0,0,0,0.30);
}

.signup-alert-line.time-alert.status-yellow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--top-bar-height);
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  background: linear-gradient(180deg, var(--yellow-top), var(--yellow-bottom));
}

.signup-alert-line.time-alert.status-red {
  background: linear-gradient(180deg, var(--red-top), var(--red-deep), var(--red-top));
  border-color: transparent;
  color: var(--red-text);
  text-shadow: 0 1px 0 rgba(0,0,0,0.28);
}

.signup-alert-line.time-alert.status-red::before {
  display: none;
}

.signup-alert-line.time-alert.status-blue {
  background: var(--panel, rgba(255, 255, 255, 0.045));
  border-color: var(--blue-border);
  color: var(--blue-text);
  text-shadow: 0 1px 0 rgba(0,0,0,0.26);
}

.signup-alert-line.time-alert.status-blue::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--top-bar-height);
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  background: linear-gradient(180deg, var(--blue-top), var(--blue-bottom));
}

.signup-alert-line.time-alert.status-orange {
  background: var(--panel, rgba(255, 255, 255, 0.045));
  border-color: var(--orange-border);
  color: var(--orange-text);
  text-shadow: 0 1px 0 rgba(0,0,0,0.30);
}

.signup-alert-line.time-alert.status-orange::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--top-bar-height);
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  background: linear-gradient(180deg, var(--orange-top), var(--orange-bottom));
}

.signup-alert-line.time-alert.status-purple {
  background: linear-gradient(180deg, var(--purple-top), var(--purple-bottom), var(--purple-top));
  border-color: transparent;
  color: var(--purple-text);
  text-shadow: 0 1px 0 rgba(0,0,0,0.28);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    var(--purple-glow-1),
    var(--purple-glow-2);
}

.signup-alert-line.time-alert.status-purple::before {
  display: none;
}

.signup-alert-line.time-alert.status-gray {
  background:
    radial-gradient(circle at 50% 10%, var(--status-highlight-soft), rgba(255,255,255,0) 46%),
    linear-gradient(180deg, var(--status-gray-top-rgba), var(--status-gray-mid-rgba) 26%, rgba(15,23,42,0.96) 100%);
  border-color: var(--status-gray-border-rgba);
  color: var(--gray-text);
  text-shadow: 0 1px 0 rgba(0,0,0,0.25);
}

.signup-alert-line.time-alert.status-gray::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow:
    inset 0 0 18px rgba(148,163,184,0.07),
    0 0 10px rgba(148,163,184,0.05);
}

/* Top alert classes that should follow the centralized palette */
.signup-alert-line.nws-alert {
  background: linear-gradient(180deg, var(--orange-production-top), var(--orange-production-bottom));
  border-color: rgba(255, 210, 170, 0.35);
  color: var(--orange-text);
}

.signup-alert-line.course-alert {
  background: linear-gradient(180deg, rgba(29,78,216,0.9), rgba(30,64,175,0.9));
  color: var(--blue-text);
}

/* Forecast POP bands */
.signup-alert-line.forecast-alert[data-pop-band="1"] {
  background: linear-gradient(180deg, var(--pop-1-top), var(--pop-1-bottom));
  border-color: var(--pop-1-border);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    0 0 10px rgba(59,130,246,0.07);
}

.signup-alert-line.forecast-alert[data-pop-band="2"] {
  background: linear-gradient(180deg, var(--pop-2-top), var(--pop-2-bottom));
  border-color: var(--pop-2-border);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    0 0 11px rgba(59,130,246,0.10);
}

.signup-alert-line.forecast-alert[data-pop-band="3"] {
  background: linear-gradient(180deg, var(--pop-3-top), var(--pop-3-bottom));
  border-color: var(--pop-3-border);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    0 0 12px rgba(37,99,235,0.13);
}

.signup-alert-line.forecast-alert[data-pop-band="4"] {
  background: linear-gradient(180deg, var(--pop-4-top), var(--pop-4-bottom));
  border-color: var(--pop-4-border);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    0 0 13px rgba(30,64,175,0.18);
}

.signup-alert-line.forecast-alert[data-pop-band="5"] {
  background: linear-gradient(180deg, var(--pop-5-top), var(--pop-5-bottom));
  border-color: var(--pop-5-border);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    0 0 15px rgba(29,78,216,0.24);
}

.signup-alert-line.forecast-alert:not([data-pop-band]),
.signup-alert-line.forecast-alert[data-pop-band="0"] {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    0 0 0 rgba(0,0,0,0);
}

/* Button aliases to central colors */
.btn-in {
  background: linear-gradient(180deg, var(--green-top), var(--green-bottom));
  color: var(--green-text);
}

.btn-maybe {
  background: linear-gradient(180deg, var(--yellow-top), #ca8a04);
  color: var(--yellow-button-text);
}

.btn-out {
  background: linear-gradient(180deg, var(--red-top), var(--red-bottom));
  color: var(--red-text);
}

.btn-scratch {
  background: linear-gradient(180deg, var(--gray-top), var(--gray-bottom));
  color: var(--gray-text);
}

/* Tee colors */
.tee-gold { background: var(--tee-gold); }
.tee-orange { background: var(--tee-orange); }
.tee-white { background: var(--tee-white); }
.tee-red { background: var(--tee-red); }
