/*
  ============================================================================
  FAIRWAY MODERN -- shared theme (v2, this repo's copy)
  ----------------------------------------------------------------------------
  A reusable, portable style variant: fairway greens + whites, generous
  spacing, modern sans-serif type, soft shadows, rounded corners. A fourth
  visual style alongside the main site's sand/forest/terracotta brand and
  Labs' own dark "Neon Clubhouse" theme -- distinct from both, 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 (e.g. a
  page that keeps a Neon Clubhouse header strip above a Fairway Modern
  body) 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.

  This is an INDEPENDENTLY-VERSIONED COPY of the same theme also used by
  `fairwayadvisors/agents`'s CH Tee Time Sniper app (a separate repo --
  there is no cross-repo file sharing, so this is an intentional,
  human-synced duplication, not a shared file). First consumer here:
  labs/tee-time-sniper/index.html, which links this for color tokens and
  the base component vocabulary below, then adds its own page-specific
  layout (hero, wide sections, FAQ) on top using the same --fm-* tokens.

  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,
  .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.
  ============================================================================
*/

* {
  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-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;
  --fm-font-pencil: 'Architects Daughter', cursive; /* hand/pencil-sketch numeral style, e.g. "How it works" step numbers */

  background-color: var(--fm-bg);
  color: var(--fm-ink);
  font-family: var(--fm-font-body);
  line-height: 1.55;
}

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 {
  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;
}

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;
}

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"] .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: none;
  border: 1px solid var(--fm-danger);
  color: var(--fm-danger);
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  border-radius: 6px;
  width: auto;
  align-self: center;
}

body[data-theme="fairway-modern"] .btn-delete:hover {
  background-color: var(--fm-danger);
  color: var(--fm-white);
}

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);
}
