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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #f0f4f0;
  background-image: url('assets/fairway-bg.svg');
  background-size: cover;
  background-attachment: fixed;
  color: #1a1a1a;
  min-height: 100vh;
}

header {
  background: linear-gradient(135deg, #1a4a1a 0%, #2d6a2d 60%, #3d8b3d 100%);
  color: white;
  padding: 16px 20px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

header h1 {
  font-size: 1.6rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

header p {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 4px;
}

nav {
  background: #145214;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 12px;
}

nav a {
  color: #c8e6c8;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  transition: background 0.2s;
}

nav a:hover, nav a.active {
  background: #2d8a2d;
  color: white;
}

.container {
  max-width: 860px;
  margin: 24px auto;
  padding: 0 16px 40px;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border-top: 4px solid #2d6a2d;
}

.card h2 {
  color: #1a4a1a;
  font-size: 1.2rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.nav-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  color: #1a4a1a;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border-bottom: 4px solid #2d6a2d;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.nav-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.nav-card .icon { font-size: 2.2rem; }
.nav-card .label { font-weight: 600; font-size: 0.95rem; }
.nav-card .desc { font-size: 0.78rem; color: #666; }

label {
  display: block;
  font-weight: 600;
  color: #1a4a1a;
  margin-bottom: 5px;
  font-size: 0.9rem;
}

input, select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #c8d8c8;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 16px;
  background: #fafffe;
  transition: border-color 0.2s;
}

input:focus, select:focus {
  outline: none;
  border-color: #2d6a2d;
}

.toggle-group {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.toggle-group input[type="radio"] { display: none; }

.toggle-group label {
  flex: 1;
  text-align: center;
  padding: 10px;
  border: 1.5px solid #c8d8c8;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  color: #555;
  margin-bottom: 0;
  transition: all 0.2s;
}

.toggle-group input[type="radio"]:checked + label {
  background: #2d6a2d;
  color: white;
  border-color: #2d6a2d;
}

.player-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.player-checks input[type="checkbox"] { display: none; }

.player-checks label {
  padding: 8px 16px;
  border: 1.5px solid #c8d8c8;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  color: #555;
  margin-bottom: 0;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.player-checks input[type="checkbox"]:checked + label {
  background: #2d6a2d;
  color: white;
  border-color: #2d6a2d;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  background: #2d6a2d;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.btn:hover { background: #1a4a1a; }
.btn-danger { background: #c0392b; }
.btn-danger:hover { background: #922b21; }

.success-msg {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: none;
}

.error-msg {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th {
  background: #1a4a1a;
  color: white;
  padding: 10px 12px;
  text-align: left;
}

td {
  padding: 10px 12px;
  border-bottom: 1px solid #e8f0e8;
}

tr:nth-child(even) td { background: #f5fbf5; }
tr:hover td { background: #e8f5e8; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-summer { background: #fff3cd; color: #856404; }
.badge-winter { background: #cce5ff; color: #004085; }
.badge-9 { background: #e2e3e5; color: #383d41; }
.badge-18 { background: #d1ecf1; color: #0c5460; }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.stat-card {
  background: #f5fbf5;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  border: 1px solid #c8e6c8;
}

.stat-card .stat-label {
  font-size: 0.75rem;
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card .stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a4a1a;
  line-height: 1.2;
  margin: 4px 0;
}

.stat-card .stat-meta {
  font-size: 0.75rem;
  color: #555;
}

.no-data {
  text-align: center;
  color: #aaa;
  font-style: italic;
  padding: 20px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #e8f5e8;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 16px 0 10px;
  font-weight: 700;
  color: #1a4a1a;
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  header h1 { font-size: 1.3rem; }
  .container { padding: 0 10px 30px; }
  .card { padding: 16px; }
  table { font-size: 0.8rem; }
  th, td { padding: 8px 8px; }
}

.holes-block {
  margin: 0.5rem 0 1rem 0;
}

.holes-title {
  font-size: 0.95rem;
  color: #a8d5a2;
  margin: 0.25rem 0 0.4rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.empty-state-small {
  font-size: 0.85rem;
  color: #888;
  font-style: italic;
  margin: 0.2rem 0 0.5rem 0;
}
