/* knife.golf custom styles */

/* Base */
body {
  background-color: #0f1117;
  color: #e5e7eb;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1a1d27; }
::-webkit-scrollbar-thumb { background: #374151; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #4b5563; }

/* Golf term colors */
.term-ace { color: #FFD700; }
.term-eagle { color: #9B59B6; }
.term-birdie { color: #2ECC71; }
.term-par { color: #FFFFFF; }
.term-bogey { color: #F39C12; }
.term-double-bogey { color: #E74C3C; }

/* Tab styles */
.tab-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 150ms;
  color: #9ca3af;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
}

.tab-btn:hover {
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
}

/* Table styles */
.lb-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.lb-table thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  border-bottom: 1px solid #1f2937;
}

.lb-table tbody tr {
  transition: background 150ms;
  cursor: pointer;
}

.lb-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.lb-table tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.875rem;
}

/* Expandable row */
.expand-row {
  display: none;
  background: rgba(0, 0, 0, 0.2);
}

.expand-row.open {
  display: table-row;
}

/* Scorecard */
.scorecard {
  display: grid;
  gap: 2px;
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.scorecard-cell {
  padding: 0.375rem 0.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}

.scorecard-header {
  color: #6b7280;
  font-weight: 600;
}

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.filter-select {
  background: #1a1d27;
  border: 1px solid #374151;
  color: #e5e7eb;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 150ms;
}

.filter-select:hover {
  border-color: #4b5563;
}

.filter-select:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.3);
}

/* Stat cards */
.stat-card {
  background: #1a1d27;
  border: 1px solid #1f2937;
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: border-color 150ms;
}

.stat-card:hover {
  border-color: #374151;
}

.stat-card .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}

.stat-card .stat-label {
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* Fun stat cards */
.fun-card {
  background: linear-gradient(135deg, #1a1d27 0%, #0f1117 100%);
  border: 1px solid #1f2937;
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-align: center;
  transition: all 200ms;
}

.fun-card:hover {
  border-color: #22c55e;
  transform: translateY(-2px);
}

.fun-card .fun-title {
  font-size: 0.75rem;
  color: #22c55e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.fun-card .fun-player {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 0.5rem;
}

.fun-card .fun-detail {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

/* Distribution bar */
.dist-bar {
  display: flex;
  height: 1.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
}

.dist-bar .dist-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 600;
  color: #000;
  transition: width 300ms ease;
}

/* Course card */
.course-card {
  background: #1a1d27;
  border: 1px solid #1f2937;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 200ms;
  cursor: pointer;
}

.course-card:hover {
  border-color: #22c55e;
  transform: translateY(-2px);
}

.course-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.course-card .course-info {
  padding: 1rem;
}

/* Pagination */
.pagination {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.page-btn {
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: #9ca3af;
  background: #1a1d27;
  border: 1px solid #1f2937;
  cursor: pointer;
  transition: all 150ms;
}

.page-btn:hover { border-color: #374151; color: #e5e7eb; }
.page-btn.active { background: rgba(34, 197, 94, 0.1); border-color: #22c55e; color: #22c55e; }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* Hero section */
.hero-gradient {
  background: radial-gradient(ellipse at 50% 0%, rgba(34, 197, 94, 0.15) 0%, transparent 60%);
}

/* Hole stats grid */
.hole-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 4px;
}

.hole-cell {
  background: #1a1d27;
  border: 1px solid #1f2937;
  border-radius: 0.375rem;
  padding: 0.5rem;
  text-align: center;
  font-size: 0.75rem;
}

.hole-cell .hole-num {
  color: #6b7280;
  font-weight: 600;
}

.hole-cell .hole-avg {
  font-weight: 700;
  margin-top: 0.25rem;
}

/* Player badge */
.player-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
}
