/* GSL - Gorzowska Squash Liga - Dynamic Jersey Design */
/* Athletic Color Palette: Yellow #f4e917, Black #1a1a1a, Gray #666 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #f8f9eb;
  color: #333;
  line-height: 1.6;
  font-weight: 300;
}

/* Delicate thin borders */
input, select, textarea, button {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 300;
  transition: all 0.2s ease;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: #283593;
  box-shadow: 0 0 0 2px rgba(40, 53, 147, 0.1);
}

button {
  cursor: pointer;
  background: #fff;
  color: #555;
  font-weight: 400;
}

button:hover {
  border-color: #283593;
  color: #283593;
}

button.primary {
  background: linear-gradient(135deg, #283593 0%, #1a237e 100%);
  color: #fff;
  border: none;
}

button.primary:hover {
  opacity: 0.9;
  color: #333;
}

a.primary {
  background: linear-gradient(135deg, #283593 0%, #1a237e 100%);
  color: #fff !important;
  border: none;
  border-radius: 6px;
  font-weight: 600;
}

a.primary:hover {
  opacity: 0.9;
}

button.danger {
  border-color: #e74c3c;
  color: #e74c3c;
}

button.danger:hover {
  background: #e74c3c;
  color: #fff;
}

/* Subtle shadows */
.card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #f0f0f0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation - Old styles, now using header.ejs inline styles */
/* These styles are kept for backward compatibility but overridden by header.ejs */
nav {
  display: none;
}

/* Hero section */
.hero {
  text-align: center;
  padding: 80px 20px;
  background: #fefce8;
  margin-bottom: 40px;
  color: #333;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/logo.png') no-repeat center 20px;
  background-size: 200px auto;
  opacity: 0.1;
  pointer-events: none;
}

.hero h1 {
  font-size: 42px;
  font-weight: 700;
  color: #110c0b;
  margin-bottom: 15px;
}

.hero-subtitle {
  color: #555;
  font-size: 18px;
  font-weight: 300;
  margin-bottom: 30px;
}

.hero-description {
  max-width: 800px;
  margin: 0 auto 30px;
  text-align: center;
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  line-height: 1.8;
}

.hero-description p {
  margin-bottom: 15px;
}

.hero p {
  color: #888;
  font-size: 16px;
  font-weight: 300;
}

/* Result inputs */
.result-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.result-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.result-p1 .player-name { color: #333; }
.result-p2 .player-name { color: #333; }

.sets-input {
  width: 70px;
  height: 70px;
  text-align: center;
  font-size: 36px;
  font-weight: 300;
  padding: 10px;
}

.sets-display {
  font-size: 36px;
  font-weight: 300;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-vs {
  font-size: 20px;
  color: #aaa;
  font-weight: 300;
  margin-top: 20px;
}

.sets-points {
  border-top: 1px solid #f0f0f0;
  padding-top: 20px;
  margin-top: 10px;
}

/* Simplified result score display */
.result-score {
  text-align: center;
  padding: 20px;
}

.score-display {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.score-p1, .score-p2 {
  font-size: 48px;
  font-weight: 300;
  color: #333;
  min-width: 50px;
}

.score-separator {
  font-size: 36px;
  color: #aaa;
}

.score-confirm {
  display: flex;
  justify-content: center;
  gap: 40px;
  font-size: 13px;
  color: #888;
}

.score-confirm span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.score-confirm span.confirmed {
  color: #27ae60;
}

/* Result input form */
.result-inputs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.input-group label {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-group input {
  width: 70px;
  height: 60px;
  text-align: center;
  font-size: 28px;
  font-weight: 300;
}

.sets-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 300px;
  margin: 0 auto;
}

.set-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.set-label {
  width: 50px;
  color: #888;
  font-size: 13px;
  text-align: right;
}

.points-input {
  width: 60px;
  height: 40px;
  text-align: center;
  font-size: 18px;
  font-weight: 300;
  padding: 8px;
}

.points-display {
  width: 60px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 300;
  color: #333;
  border: 1px dashed #e0e0e0;
  border-radius: 6px;
}

.points-divider {
  font-size: 18px;
  color: #aaa;
  font-weight: 300;
}

.pending-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f39c12;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-left: 10px;
  cursor: help;
}

.pending-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f39c12;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-left: 10px;
  cursor: help;
}

/* Notifications */
.nav-notifications {
  display: flex;
  align-items: center;
  position: relative;
  padding: 5px 10px;
}

.nav-notifications:hover {
  color: #667eea;
}

.nav-notifications.has-unread {
  color: #667eea;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: 0;
  background: #e74c3c;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.notifications-page {
  max-width: 600px;
  margin: 0 auto;
}

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.notification-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #f0f0f0;
  transition: all 0.2s ease;
}

.notification-item.unread {
  border-left: 3px solid #e74c3c;
  background: #fef9f9;
}

.notification-item.read {
  opacity: 0.7;
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-icon.rejection {
  background: #fdeaea;
  color: #e74c3c;
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-weight: 400;
  color: #333;
  margin-bottom: 5px;
}

.notification-message {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
}

.notification-time {
  font-size: 11px;
  color: #aaa;
}

.notification-link {
  display: inline-block;
  margin-top: 10px;
  color: #667eea;
  text-decoration: none;
  font-size: 13px;
}

.notification-link:hover {
  text-decoration: underline;
}

.confirm-status {
  font-size: 11px;
  color: #e74c3c;
  margin-top: 5px;
}

.confirm-status.confirmed {
  color: #27ae60;
}

.btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #667eea;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-small:hover {
  background: #5a6fd6;
  transform: scale(1.1);
}

/* Sections */
.section {
  padding: 40px 0;
}

.section h2 {
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 25px;
  color: #333;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #f5f5f5;
}

th {
  font-weight: 400;
  color: #888;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: #fafafa;
}

td {
  font-weight: 300;
  color: #555;
}

tr:hover td {
  background: #f9f9f9;
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: #888;
  font-size: 13px;
  font-weight: 300;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  max-width: 350px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-row .form-group {
  flex: 1;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card h3 {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 10px;
  color: #333;
}

.card p {
  color: #888;
  font-size: 14px;
  font-weight: 300;
}

.card .meta {
  font-size: 12px;
  color: #aaa;
  margin-top: 10px;
}

/* Match cards */
.match-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid #f0f0f0;
  transition: all 0.2s;
}

.match-card:hover {
  border-color: #667eea;
  box-shadow: 0 2px 12px rgba(102, 126, 234, 0.08);
}

.match-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.match-players {
  font-size: 15px;
  font-weight: 300;
}

.match-players .vs {
  color: #aaa;
  margin: 0 8px;
}

.match-date {
  font-size: 13px;
  color: #888;
}

.match-status {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status-open { background: #e8f5e9; color: #4caf50; }
.status-pending { background: #fff3e0; color: #ff9800; }
.status-confirmed { background: #e3f2fd; color: #2196f3; }
.status-completed { background: #f5f5f5; color: #666; }

/* Chat */
.chat-container {
  background: #fafafa;
  border-radius: 8px;
  padding: 15px;
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 15px;
}

.chat-message {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.chat-message:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.chat-author {
  font-size: 12px;
  color: #667eea;
  font-weight: 400;
  margin-bottom: 4px;
}

.chat-text {
  font-size: 14px;
  color: #555;
  font-weight: 300;
}

.chat-time {
  font-size: 11px;
  color: #aaa;
  float: right;
}

/* Buttons inline */
.btn-inline {
  display: inline-block;
  padding: 8px 16px;
  font-size: 13px;
  margin-left: 10px;
}

/* Alert messages */
.alert {
  padding: 12px 18px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 300;
}

.alert-error {
  background: #fef2f2;
  color: #e74c3c;
  border: 1px solid #fecaca;
}

.alert-success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  text-align: center;
  padding: 25px;
}

.stat-number {
  font-size: 42px;
  font-weight: 300;
  color: #667eea;
}

.stat-label {
  font-size: 13px;
  color: #888;
  margin-top: 5px;
}

/* Profile */
.profile-header {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 30px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  font-weight: 300;
}

.profile-info h2 {
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 5px;
}

.profile-info p {
  color: #888;
  font-size: 14px;
}

/* Footer */
footer {
  text-align: center;
  padding: 30px 20px;
  background: #cec94e;
  color: #110c0b;
  font-size: 13px;
  font-weight: 300;
  margin-top: 40px;
  border-top: 1px solid #b3af3f;
}

/* Responsive */
@media (max-width: 768px) {
  nav .container {
    flex-direction: column;
    gap: 15px;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .form-row {
    flex-direction: column;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .match-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #aaa;
}

.empty-state p {
  font-size: 16px;
  font-weight: 300;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  background: #f5f5f5;
  color: #888;
}

.badge-admin {
  background: #fef3c7;
  color: #d97706;
}

/* Dashboard with Sidebar */
.dashboard-container {
  display: flex;
  min-height: calc(100vh - 60px);
}

.top-nav {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-nav .logo {
  font-size: 22px;
  font-weight: 300;
  color: #333;
  text-decoration: none;
  letter-spacing: 2px;
}

.top-nav .logo span {
  font-weight: 600;
  color: #283593;
}

.top-nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

.top-nav a {
  text-decoration: none;
  color: #110c0b;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.top-nav a:hover, .top-nav a.active {
  color: #667eea;
}

/* Sidebar - Jersey Theme */
.sidebar {
  width: 220px;
  background: linear-gradient(180deg, #1a1a1a 0%, #2a2a2a 100%);
  padding: 20px 15px;
  flex-shrink: 0;
  height: calc(100vh - 50px);
  overflow-y: auto;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(244, 233, 23, 0.2);
  margin-bottom: 15px;
}

.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f4e917 0%, #e6d900 100%);
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.sidebar-user-info h4 {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 2px;
}

.badge-admin {
  font-size: 10px;
  padding: 2px 8px;
  background: #f4e917;
  color: #1a1a1a;
  border-radius: 10px;
  font-weight: 600;
}

.sidebar-season {
  background: rgba(244, 233, 23, 0.1);
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 15px;
  border-left: 3px solid #f4e917;
}

.sidebar-season.warning {
  background: rgba(255, 152, 0, 0.15);
  border-left-color: #ff9800;
}

.season-label {
  font-size: 10px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 2px;
}

.season-name {
  font-size: 12px;
  font-weight: 500;
  color: #fff;
}

.sidebar-menu {
  list-style: none;
}

.sidebar-menu li {
  margin-bottom: 3px;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: #bbb;
  font-size: 13px;
  font-weight: 400;
  transition: all 0.2s ease;
}

.sidebar-menu a:hover {
  background: rgba(244, 233, 23, 0.1);
  color: #f4e917;
}

.sidebar-menu li.active a {
  background: #f4e917;
  color: #1a1a1a;
  font-weight: 600;
}

.sidebar-menu svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.sidebar-divider {
  margin-top: 15px;
  margin-bottom: 8px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  font-weight: 500;
  padding-left: 12px;
}

.sidebar-category {
  margin-top: 20px;
  margin-bottom: 8px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #f4e917;
  font-weight: 600;
  padding-left: 12px;
}

.sidebar-info {
  padding: 10px 12px;
  margin: 5px 0;
}

.sidebar-info .info-text {
  font-size: 12px;
  color: #888;
  font-style: italic;
}

/* Dashboard Main */
.dashboard-main {
  flex: 1;
  padding: 30px;
  background: #f8f9fa;
}

.dashboard-section {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #f0f0f0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.section-header h2 {
  font-size: 20px;
  font-weight: 300;
  color: #333;
}

/* Matches Grid */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.match-card {
  background: #fafafa;
  border-radius: 10px;
  padding: 20px;
  border: 1px solid #f0f0f0;
  transition: all 0.2s ease;
}

.match-card:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.match-date {
  font-size: 12px;
  color: #888;
}

.match-players {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.match-players .player {
  flex: 1;
  text-align: center;
}

.match-players .player-name {
  font-size: 14px;
  font-weight: 400;
  color: #333;
}

.match-players .player-name.waiting {
  color: #aaa;
  font-weight: 300;
  font-style: italic;
}

.match-players .vs {
  padding: 0 15px;
  color: #aaa;
  font-size: 12px;
}

.match-score {
  text-align: center;
  padding: 10px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 8px;
  margin-bottom: 15px;
}

.match-score .score {
  font-size: 28px;
  font-weight: 600;
  color: #667eea;
}

.match-actions {
  display: flex;
  gap: 10px;
}

.match-actions .button {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-size: 13px;
}

.match-actions .button.secondary {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
}

.match-actions .button.secondary:hover {
  background: #e9ecef;
}

/* Matches List Layout */
.matches-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.match-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: #fafafa;
  border-radius: 10px;
  border: 1px solid #f0f0f0;
  transition: all 0.2s ease;
}

.match-list-item:hover {
  border-color: #667eea;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
}

.match-info {
  flex: 1;
}

.match-players-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 400;
}

.match-players-row .player1 {
  color: #333;
}

.match-players-row .vs {
  color: #aaa;
  font-size: 12px;
  font-weight: 300;
}

.match-players-row .player2 {
  color: #333;
}

.match-players-row .player2.waiting {
  color: #aaa;
  font-style: italic;
}

.match-meta {
  display: flex;
  align-items: center;
  gap: 15px;
}

.match-result {
  padding: 0 30px;
}

.match-result .score {
  font-size: 24px;
  font-weight: 600;
  color: #667eea;
}

.match-result .score-pending {
  color: #ccc;
  font-weight: 300;
}

.match-actions {
  display: flex;
  gap: 10px;
}

.match-actions .button {
  padding: 8px 16px;
  font-size: 13px;
}

/* Win/Loss Colors */
.match-list-item.match-win {
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.08) 0%, rgba(39, 174, 96, 0.03) 100%);
  border-color: rgba(39, 174, 96, 0.3);
}

.match-list-item.match-loss {
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.08) 0%, rgba(231, 76, 60, 0.03) 100%);
  border-color: rgba(231, 76, 60, 0.3);
}

.match-result .score-win {
  color: #27ae60;
}

.match-result .score-loss {
  color: #e74c3c;
}

/* ============================================
   LEAGUES PAGE - Modern Card Design
   ============================================ */

.leagues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.league-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.league-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.league-header {
  background: linear-gradient(135deg, #cec94e 0%, #b3af3f 100%);
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.league-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: #110c0b;
  margin: 0;
}

.league-status {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 12px;
  border-radius: 20px;
}

.league-status.active {
  background: rgba(17, 12, 11, 0.15);
  color: #110c0b;
}

.league-status.inactive {
  background: rgba(255, 255, 255, 0.3);
  color: #666;
}

.league-description {
  padding: 20px 25px;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  border-bottom: 1px solid #f5f5f5;
}

/* League Membership Section */
.league-membership {
  padding: 20px 25px;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}

.membership-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.membership-action {
  display: flex;
  justify-content: flex-start;
}

.membership-action .button.primary,
.membership-action button.primary {
  background: linear-gradient(135deg, #79711c 0%, #5a5315 100%);
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.membership-action .button.primary:hover,
.membership-action button.primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(121, 113, 28, 0.3);
}

/* Current Season Section */
.current-season-section {
  padding: 25px;
  flex: 1;
}

.current-season-section h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #888;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}

.season-item {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  border: 1px solid #e8e8e8;
  transition: all 0.2s ease;
}

.season-item:hover {
  background: #f0f1f3;
  border-color: #cec94e;
}

.season-item:last-child {
  margin-bottom: 0;
}

.season-info {
  margin-bottom: 15px;
}

.season-info h5 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px 0;
}

.season-meta {
  font-size: 13px;
  color: #888;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.season-meta::before {
  content: '📅';
  font-size: 12px;
}

.season-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.season-actions .button,
.season-actions button {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.season-actions .button.primary,
.season-actions button.primary {
  background: linear-gradient(135deg, #79711c 0%, #5a5315 100%);
  color: #fff;
}

.season-actions .button.primary:hover,
.season-actions button.primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(121, 113, 28, 0.3);
}

.season-actions .button.secondary,
.season-actions button.secondary {
  background: #fff;
  color: #666;
  border: 1px solid #e0e0e0;
}

.season-actions .button.secondary:hover,
.season-actions button.secondary:hover {
  background: #f8f9fa;
  border-color: #ccc;
}

.season-actions .hint {
  font-size: 12px;
  color: #888;
  font-style: italic;
  margin: 0;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.badge-success {
  background: #e8f5e9;
  color: #2e7d32;
}

.badge-success::before {
  content: '✓';
  font-weight: 700;
}

.badge-warning {
  background: #fff3e0;
  color: #f57c00;
}

.badge-warning::before {
  content: '⏳';
}

/* No Seasons Message */
.no-seasons {
  text-align: center;
  padding: 40px 20px;
  color: #aaa;
  font-size: 14px;
  font-style: italic;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: #aaa;
}

.empty-state svg {
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 16px;
  font-weight: 300;
  margin: 0;
}

.empty-state p + p {
  margin-top: 10px;
  font-size: 14px;
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 10px;
}

.section-header h2 {
  font-size: 24px;
  font-weight: 300;
  color: #333;
  margin: 0;
}

.section-subtitle {
  font-size: 14px;
  color: #888;
  margin: 5px 0 0 0;
}

/* Responsive */
@media (max-width: 768px) {
  .leagues-grid {
    grid-template-columns: 1fr;
  }
  
  .league-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .season-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .season-actions .button,
  .season-actions button {
    width: 100%;
    text-align: center;
  }
}
