/*
  ============================================================================
  FAIRWAY MODERN -- shared theme
  ----------------------------------------------------------------------------
  A reusable, portable style variant: fairway greens + whites, generous
  spacing, modern sans-serif type, soft shadows, rounded corners. Sibling to
  the main fairwayadvisors.ai site's "traditional" (sand/forest/terracotta)
  variant and the dark "Neon Clubhouse" Labs theme -- this is the third,
  meant to be dropped into more than one page over time.

  Usage: link this file, then add data-theme="fairway-modern" to <body>.
  Every color/spacing rule below is scoped under that attribute, so this
  file is safe to link alongside a page's own existing styles without
  clashing -- nothing here fires unless the attribute is present. The
  universal box-sizing reset is left unscoped since it's plain hygiene,
  not a theme choice.

  Component classes this file styles (reuse these names to adopt the
  theme on a new page -- no other markup changes should be needed):
  .container, header, .logo-container (holds one inline SVG combining
  the locked hole/ball/pole/flag icon with the "fairway"/"advisors.ai"
  wordmark -- see any consumer's header markup for the current copy),
  .brand-subtitle,
  .card, .card-title, .card-subtitle, .form-group, .form-group-checkbox,
  label, input, select, .btn, .btn-primary, .btn-delete, .field-error,
  .field-notice, .queue-list, .queue-item (+ .failed/.completed), .queue-item-info,
  .queue-item-title, .queue-item-meta, .status-badge (+ status-pending/
  claimed/failed/error/completed), .empty-state, .toast (+ .error),
  .locked, .unlock-banner.

  Consumers: CH Tee Time Sniper's index.html and register.html (this
  same project).
  ============================================================================
*/

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body[data-theme="fairway-modern"] {
  --fm-green-900: #163928;
  --fm-green-700: #1f6b45;
  --fm-green-600: #2c8657;
  --fm-green-500: #2f9d5e;
  --fm-green-100: #e3f3ea;
  --fm-white: #ffffff;
  --fm-bg: #f6f9f7;
  --fm-ink: #1a2e22;
  --fm-muted: #66796d;
  --fm-border: #dfe9e2;
  --fm-danger: #c1443c;
  --fm-danger-bg: rgba(193, 68, 60, .08);
  --fm-warning: #a06a1f;
  --fm-warning-bg: rgba(212, 149, 42, .12);
  --fm-shadow: 0 12px 32px rgba(22, 57, 40, .08);
  --fm-radius: 16px;
  --fm-radius-sm: 10px;
  --fm-font-display: 'Outfit', sans-serif;
  --fm-font-body: 'Inter', sans-serif;

  background-color: var(--fm-bg);
  color: var(--fm-ink);
  font-family: var(--fm-font-body);
  line-height: 1.55;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

body[data-theme="fairway-modern"] .container {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

body[data-theme="fairway-modern"] header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--fm-green-600);
  padding-bottom: 1.25rem;
  margin-bottom: 0.25rem;
}

body[data-theme="fairway-modern"] .logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

body[data-theme="fairway-modern"] .brand-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--fm-font-display);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--fm-green-600);
  text-transform: uppercase;
  font-weight: 700;
}

/* App mark: the same reticle already used as this app's favicon (see any
   consumer's <link rel="icon">), promoted into the visible header instead
   of staying favicon-only. The pulsing center dot is the one deliberately
   "fun" touch the reticle earns over a plain static mark -- a scope
   actively tracking, matching the "Sniper" name without being gimmicky. */
body[data-theme="fairway-modern"] .brand-subtitle .app-icon {
  flex-shrink: 0;
}
body[data-theme="fairway-modern"] .brand-subtitle .app-icon .pulse {
  animation: fm-reticle-pulse 2.2s ease-in-out infinite;
  transform-origin: center;
}
@keyframes fm-reticle-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

body[data-theme="fairway-modern"] #viewerBadge {
  font-size: 0.7rem;
  color: var(--fm-muted);
}

body[data-theme="fairway-modern"] .card {
  background-color: var(--fm-white);
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius);
  padding: 1.75rem;
  box-shadow: var(--fm-shadow);
}

body[data-theme="fairway-modern"] .card-title {
  font-family: var(--fm-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fm-green-700);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

body[data-theme="fairway-modern"] .card-title + .form-group,
body[data-theme="fairway-modern"] .card-title + form,
body[data-theme="fairway-modern"] .card-title + .queue-list {
  margin-top: 0.9rem;
}

body[data-theme="fairway-modern"] .card-subtitle {
  font-size: 0.85rem;
  color: var(--fm-muted);
  margin-bottom: 1.4rem;
}

body[data-theme="fairway-modern"] .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}

body[data-theme="fairway-modern"] .form-group-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
  background-color: var(--fm-green-100);
  border: 1px solid var(--fm-green-600);
  border-radius: var(--fm-radius-sm);
  padding: 0.9rem 1rem;
}

body[data-theme="fairway-modern"] .form-group-checkbox input {
  width: auto;
  margin-top: 0.2rem;
  accent-color: var(--fm-green-600);
}

body[data-theme="fairway-modern"] .form-group-checkbox label {
  font-family: var(--fm-font-body);
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.9rem;
  color: var(--fm-ink);
}

body[data-theme="fairway-modern"] .field-error {
  font-size: 0.8rem;
  color: var(--fm-danger);
  min-height: 1.1em;
}

/* Informational, not an error -- e.g. "this date's release window has
   likely already passed." Amber, not red, and no min-height reservation
   since it's shown/hidden via display:none rather than always occupying
   layout space like .field-error does. */
body[data-theme="fairway-modern"] .field-notice {
  font-size: 0.8rem;
  color: var(--fm-warning);
  background: var(--fm-warning-bg);
  border-radius: var(--fm-radius-sm);
  padding: 0.5rem 0.7rem;
  margin-top: 0.35rem;
}

body[data-theme="fairway-modern"] label {
  font-family: var(--fm-font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--fm-muted);
  text-transform: uppercase;
}

body[data-theme="fairway-modern"] input,
body[data-theme="fairway-modern"] select {
  background-color: var(--fm-white);
  border: 1px solid var(--fm-border);
  color: var(--fm-ink);
  font-family: var(--fm-font-body);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--fm-radius-sm);
  width: 100%;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

body[data-theme="fairway-modern"] input:focus,
body[data-theme="fairway-modern"] select:focus {
  border-color: var(--fm-green-600);
  box-shadow: 0 0 0 3px rgba(47, 157, 94, .15);
}

body[data-theme="fairway-modern"] input[readonly] {
  background-color: var(--fm-bg);
  color: var(--fm-muted);
  cursor: default;
}
body[data-theme="fairway-modern"] input[readonly]:focus {
  border-color: var(--fm-border);
  box-shadow: none;
}

body[data-theme="fairway-modern"] .btn {
  font-family: var(--fm-font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--fm-radius-sm);
  border: none;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body[data-theme="fairway-modern"] .btn-primary {
  background-color: var(--fm-green-600);
  color: var(--fm-white);
}

body[data-theme="fairway-modern"] .btn-primary:hover {
  background-color: var(--fm-green-700);
  box-shadow: 0 10px 22px -8px rgba(31, 107, 69, .5);
}

body[data-theme="fairway-modern"] .btn-delete {
  background-color: var(--fm-danger);
  border: none;
  color: var(--fm-white);
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  width: auto;
  align-self: center;
  cursor: pointer;
}

body[data-theme="fairway-modern"] .btn-delete:hover {
  filter: brightness(0.9);
}

body[data-theme="fairway-modern"] .queue-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

body[data-theme="fairway-modern"] .queue-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: var(--fm-green-100);
  border-left: 4px solid var(--fm-green-600);
  border-top: 1px solid var(--fm-border);
  border-right: 1px solid var(--fm-border);
  border-bottom: 1px solid var(--fm-border);
  border-radius: var(--fm-radius-sm);
  font-size: 0.95rem;
}

body[data-theme="fairway-modern"] .queue-item.failed {
  border-left-color: var(--fm-danger);
  background-color: var(--fm-danger-bg);
}

body[data-theme="fairway-modern"] .queue-item.completed {
  border-left-color: var(--fm-muted);
  background-color: rgba(102, 121, 109, .06);
}

body[data-theme="fairway-modern"] .queue-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

body[data-theme="fairway-modern"] .queue-item-title {
  font-weight: 600;
  font-size: 1rem;
}

body[data-theme="fairway-modern"] .queue-item-meta {
  font-size: 0.8rem;
  color: var(--fm-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

body[data-theme="fairway-modern"] .status-badge {
  display: inline-block;
  font-family: var(--fm-font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

body[data-theme="fairway-modern"] .status-pending,
body[data-theme="fairway-modern"] .status-claimed {
  background-color: var(--fm-white);
  color: var(--fm-green-600);
  border: 1px solid var(--fm-green-600);
}

body[data-theme="fairway-modern"] .status-failed,
body[data-theme="fairway-modern"] .status-error {
  background-color: var(--fm-danger-bg);
  color: var(--fm-danger);
  border: 1px solid var(--fm-danger);
}

body[data-theme="fairway-modern"] .status-completed {
  background-color: rgba(102, 121, 109, .1);
  color: var(--fm-ink);
  border: 1px solid var(--fm-muted);
}

body[data-theme="fairway-modern"] .empty-state {
  text-align: center;
  color: var(--fm-muted);
  padding: 2rem 0;
  font-size: 0.9rem;
}

body[data-theme="fairway-modern"] .toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--fm-green-900);
  border: 1px solid var(--fm-green-600);
  color: var(--fm-white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--fm-radius-sm);
  box-shadow: 0 8px 24px rgba(22, 57, 40, .25);
  font-size: 0.9rem;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

body[data-theme="fairway-modern"] .toast.show {
  opacity: 1;
}

body[data-theme="fairway-modern"] .toast.error {
  border-color: var(--fm-danger);
}

body[data-theme="fairway-modern"] .locked {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}

body[data-theme="fairway-modern"] .unlock-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background-color: var(--fm-green-100);
  border: 1px solid var(--fm-green-600);
  border-radius: var(--fm-radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--fm-ink);
}

body[data-theme="fairway-modern"] .unlock-banner a {
  font-family: var(--fm-font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fm-white);
  background-color: var(--fm-green-600);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
}

body[data-theme="fairway-modern"] .unlock-banner a:hover {
  background-color: var(--fm-green-700);
}
