/* ============================================================
   SWING FORE SIGHT 2026 - Cassique Golf RSVP
   Premium golf tournament feel - dark greens, golds, clean
   ============================================================ */

:root {
  --forest: #1B4332;
  --forest-light: #2D6A4F;
  --emerald: #40916C;
  --sage: #74C69D;
  --gold: #D4A843;
  --gold-light: #F0D78C;
  --cream: #FDFDF5;
  --white: #FFFFFF;
  --charcoal: #1A1A1A;
  --gray: #6B7280;
  --gray-light: #F3F4F6;
  --confirmed: #22C55E;
  --confirmed-bg: #DCFCE7;
  --declined: #EF4444;
  --declined-bg: #FEE2E2;
  --pending-bg: #FEF9E7;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--charcoal);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  background: var(--forest);
  padding: 48px 20px 36px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,67,50,0.95) 0%, rgba(45,106,79,0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 500px;
  margin: 0 auto;
}

.hero-org {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--sage);
  margin-bottom: 8px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-title .fore {
  color: var(--gold);
  font-style: italic;
}

.hero-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.detail-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.detail-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.detail-row strong {
  display: block;
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
}

.detail-sub {
  display: block;
  color: var(--sage);
  font-size: 13px;
  margin-top: 1px;
}

.cal-btn {
  display: inline-block;
  padding: 12px 24px;
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s;
}

.cal-btn:active {
  background: var(--gold);
  color: var(--forest);
}

/* ---- Sections ---- */
.section {
  padding: 24px 16px;
  max-width: 500px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 4px;
}

.section-sub {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 16px;
}

.hidden { display: none !important; }

/* ---- Player Grid ---- */
.player-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--white);
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  transition: all 0.2s;
}

.player-btn:active {
  transform: scale(0.98);
  background: var(--gray-light);
}

.player-info {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.player-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.player-name-text {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.player-tagline {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--gray);
  font-style: italic;
}

.player-btn .player-status {
  font-size: 13px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 50px;
}

.player-btn .status-confirmed {
  background: var(--confirmed-bg);
  color: var(--confirmed);
}

.player-btn .status-declined {
  background: var(--declined-bg);
  color: var(--declined);
}

.player-btn .status-pending {
  background: var(--pending-bg);
  color: var(--gold);
}

.player-btn.selected {
  border-color: var(--forest);
  background: #F0FFF4;
}

/* ---- RSVP Card ---- */
.rsvp-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px 20px;
}

.rsvp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.rsvp-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--forest);
}

.change-btn {
  background: none;
  border: none;
  color: var(--gray);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}

/* ---- Status Buttons ---- */
.rsvp-status-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.status-btn {
  flex: 1;
  padding: 14px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.status-btn:active { transform: scale(0.97); }

.status-btn.confirmed.active {
  border-color: var(--confirmed);
  background: var(--confirmed-bg);
  color: #166534;
}

.status-btn.declined.active {
  border-color: var(--declined);
  background: var(--declined-bg);
  color: #991B1B;
}

/* ---- Detail Fields ---- */
.detail-fields {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.field-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.field-group input,
.field-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  background: var(--white);
}

.field-group input:focus,
.field-group textarea:focus {
  border-color: var(--emerald);
}

.field-group textarea { resize: none; }

/* ---- Shirt Size Row ---- */
.size-row {
  display: flex;
  gap: 8px;
}

.size-btn {
  flex: 1;
  padding: 10px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.size-btn:active { transform: scale(0.95); }

.size-btn.active {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--white);
}

/* ---- Toggle Row ---- */
.toggle-row {
  display: flex;
  gap: 8px;
}

.toggle-btn {
  flex: 1;
  padding: 10px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.toggle-btn:active { transform: scale(0.95); }

.toggle-btn.active {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--white);
}

/* ---- Submit ---- */
.submit-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--forest);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.submit-btn:active {
  transform: scale(0.98);
  background: var(--forest-light);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.saved-msg {
  text-align: center;
  padding: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--confirmed);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---- Roster ---- */
.roster {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.roster-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.roster-name {
  font-weight: 600;
  font-size: 15px;
}

.roster-details {
  font-size: 12px;
  color: var(--gray);
  margin-top: 2px;
}

.roster-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  flex-shrink: 0;
}

.badge-confirmed { background: var(--confirmed-bg); color: #166534; }
.badge-declined { background: var(--declined-bg); color: #991B1B; }
.badge-pending { background: var(--pending-bg); color: #92400E; }

/* ---- Export ---- */
.export-btn {
  display: block;
  width: 100%;
  padding: 16px;
  text-align: center;
  background: var(--gold);
  color: var(--forest);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s;
}

.export-btn:active {
  transform: scale(0.98);
  opacity: 0.9;
}

/* ---- Footer ---- */
.app-footer {
  text-align: center;
  padding: 24px 16px 40px;
  color: var(--gray);
  font-size: 13px;
}

/* ---- Responsive ---- */
@media (min-width: 768px) {
  .hero { padding: 64px 24px 48px; }
  .hero-title { font-size: 48px; }
}
