/* Reset margins and padding to remove gray space */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  color: #dce3f1; /* soft white for readability on dark bg */
  background-color: #0a0f1c; /* deep navy background */
}

/* Global Color System for Let'CourtSide */

/* Headers and Titles */
h1, h2, h3, h4, h5, h6 {
  color: #ffffff; /* pure white for strong contrast */
  font-weight: 600;
}

/* White background sections need dark text */
.bg-white h1, .bg-white h2, .bg-white h3, .bg-white h4, .bg-white h5, .bg-white h6 {
  color: #1e293b; /* dark slate for white backgrounds */
}

.bg-white p {
  color: #475569; /* slate gray for body text on white */
}

.bg-white .text-slate-400 {
  color: #64748b !important; /* override for better contrast */
}

.bg-white .text-white {
  color: #1e293b !important; /* convert white text to dark for white backgrounds */
}

/* Subheadings or Section Labels */
.section-heading {
  color: #b4bed2;
  font-weight: 500;
}

/* Highlight/Accent Text */
.highlight {
  color: var(--csc-green); /* brand green accent */
  font-weight: 500;
}

/* Link Styling */
a {
  color: #5db8ff;
  text-decoration: none;
}

a:hover {
  color: #a0ff73;
  transition: color 0.3s ease;
}

/* Button Text */
.button, .btn, button {
  color: #ffffff;
}

.button-outline, .btn-outline {
  color: #ffffff;
  border-color: #ffffff;
}

/* CSS Variables for Brand Colors */
:root {
  --csc-green: #4a5d2a;
  --csc-gold: #EDB418;
  --csc-blue: #318BE8;
}

/* === Mobile Spacing Optimizations Start === */
/* Mobile-First Utility Classes for Consistent Spacing */
@media (max-width: 767px) {
  /* Padding Utilities */
  .pt-mobile-xs { padding-top: 0.5rem !important; }
  .pt-mobile-sm { padding-top: 1rem !important; }
  .pt-mobile-md { padding-top: 1.5rem !important; }
  .pt-mobile-lg { padding-top: 2rem !important; }
  .pt-mobile-xl { padding-top: 2.5rem !important; }
  .pt-mobile-hero { padding-top: 4rem !important; }
  
  .pb-mobile-xs { padding-bottom: 0.5rem !important; }
  .pb-mobile-sm { padding-bottom: 1rem !important; }
  .pb-mobile-md { padding-bottom: 1.5rem !important; }
  .pb-mobile-lg { padding-bottom: 2rem !important; }
  .pb-mobile-xl { padding-bottom: 2.5rem !important; }
  
  .p-mobile-xs { padding: 0.5rem !important; }
  .p-mobile-sm { padding: 1rem !important; }
  .p-mobile-md { padding: 1.25rem !important; }
  .p-mobile-compact { padding: 0.75rem !important; }
  
  .px-mobile-sm { padding-left: 1rem !important; padding-right: 1rem !important; }
  .py-mobile-sm { padding-top: 1rem !important; padding-bottom: 1rem !important; }
  .py-mobile-md { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
  .py-mobile-lg { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  
  /* Margin Utilities */
  .mt-mobile-xs { margin-top: 0.5rem !important; }
  .mt-mobile-sm { margin-top: 1rem !important; }
  .mt-mobile-md { margin-top: 1.5rem !important; }
  
  .mb-mobile-xs { margin-bottom: 0.5rem !important; }
  .mb-mobile-sm { margin-bottom: 0.75rem !important; }
  .mb-mobile-md { margin-bottom: 1rem !important; }
  .mb-mobile-lg { margin-bottom: 1.25rem !important; }
  .mb-mobile-xl { margin-bottom: 1.5rem !important; }
  
  .my-mobile-sm { margin-top: 0.75rem !important; margin-bottom: 0.75rem !important; }
  .my-mobile-md { margin-top: 1rem !important; margin-bottom: 1rem !important; }
  
  /* Gap Utilities for Flexbox/Grid */
  .gap-mobile-xs { gap: 0.5rem !important; }
  .gap-mobile-sm { gap: 0.75rem !important; }
  .gap-mobile-md { gap: 1rem !important; }
  
  /* Section-Specific Utilities */
  .hero-clear-nav {
    padding-top: 6rem;
  }

  @media (max-width: 768px) {
    .hero-clear-nav {
      padding-top: 7rem; /* Force generous top space on mobile */
    }
  }

  .hero-inner {
    padding-top: 1rem; /* Prevents margin collapse */
  }

  .hero-mobile-compact {
    padding-top: clamp(4rem, 6vw, 6rem) !important; /* 4rem minimum to clear header */
    padding-bottom: clamp(2rem, 5vw, 4rem) !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    min-height: auto !important;
  }
  
  .section-mobile-compact {
    padding: clamp(1.5rem, 3vw, 2rem) 1rem !important;
  }
  
  .card-mobile-compact {
    margin-bottom: 1rem !important;
    border-radius: 8px !important;
  }
  
  .card-body-mobile-compact {
    padding: 1rem !important;
  }
  
  .card-header-mobile-compact {
    padding: 1rem !important;
  }
}
/* === End Mobile Spacing Optimizations === */

/* Site Header Styles - Unified Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: white;
  border-bottom: 1px solid #e5e5e5;
}

.header-container {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .header-container {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .header-container {
    padding: 0 3rem;
  }
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  border-radius: 0.375rem;
  background: #4a6b4a;
  padding: 0.375rem;
}

.logo-icon span {
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

.logo-text {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #171717;
  text-decoration: none;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #525252;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: #3a5a3a;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-sign-in {
  display: none;
  color: #525252;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

@media (min-width: 768px) {
  .btn-sign-in {
    display: inline;
  }
}

.btn-sign-in:hover {
  color: #3a5a3a;
}

.btn-join-club {
  display: none;
  align-items: center;
  background: #4a6b4a;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: none;
}

@media (min-width: 768px) {
  .btn-join-club {
    display: inline-flex;
  }
}

.btn-join-club:hover {
  background: #3a5a3a;
  color: white;
}

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: none;
  padding: 0.5rem;
  color: #404040;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Menu Panel */
.mobile-menu {
  position: fixed;
  top: 4rem;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 50;
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.2s ease-in-out;
}

.mobile-menu.active {
  display: block !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.mobile-menu-content {
  padding: 1rem;
  max-width: 1280px;
  margin: 0 auto;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.mobile-nav-link {
  color: #525252;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f5f5f5;
  transition: all 0.2s ease;
}

.mobile-nav-link:hover {
  color: #3a5a3a;
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

.mobile-auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e5e5;
}

.mobile-btn-sign-in {
  color: #525252;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 0;
  text-align: center;
  transition: all 0.2s ease;
}

.mobile-btn-sign-in:hover {
  color: #3a5a3a;
}

.mobile-btn-join-club {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #4a6b4a;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: none;
}

.mobile-btn-join-club:hover {
  background: #3a5a3a;
  color: white;
}

/* Consistent hero headline styling */
.hero-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
}



@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }
}

.hero-gradient {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 2.75rem;
  color: var(--csc-green);
  display: inline-block;
}

@media (max-width: 768px) {
  .hero-gradient {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-gradient {
    font-size: 1.75rem;
  }
}

/* Brand color utility classes */
.text-csc-green {
  color: var(--csc-green);
}

.text-csc-gold {
  color: var(--csc-gold);
}

.text-csc-blue {
  color: var(--csc-blue);
}

.bg-csc-green {
  background-color: var(--csc-green);
}

.bg-csc-gold {
  background-color: var(--csc-gold);
}

.bg-csc-blue {
  background-color: var(--csc-blue);
}

.hover\:bg-csc-green:hover {
  background-color: var(--csc-green);
}

.hover\:bg-csc-gold:hover {
  background-color: var(--csc-gold);
}

.hover\:bg-csc-blue:hover {
  background-color: var(--csc-blue);
}

.border-csc-green {
  border-color: var(--csc-green);
}

.border-csc-gold {
  border-color: var(--csc-gold);
}

.border-csc-blue {
  border-color: var(--csc-blue);
}

/* Legacy classes for backward compatibility */
.hero-gradient-text {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  background: linear-gradient(to right, #F2CC63, #A4E447, #6DB1F7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero h1 span.highlight {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  background: linear-gradient(to right, #F2CC63, #A4E447, #6DB1F7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-subtitle {
  font-family: 'Inter', sans-serif;
  color: #dce3f1 !important;
}

/* Font family classes */
.font-inter {
  font-family: 'Inter', system-ui, sans-serif;
}

/* Legacy classes for backward compatibility */
.body-text-dark {
  color: #dce3f1 !important;
}

.body-text-light {
  color: #dce3f1 !important;
}

.cta-primary-text {
  color: #ffffff !important;
}

.cta-secondary-text {
  color: var(--csc-green) !important;
}

.feature-label {
  color: #b4bed2 !important;
}

.footer-text {
  color: #b4bed2 !important;
}

/* Tournament Detail Page Wrapper */
.tournament-wrapper {
  padding-top: 80px;
}

.page-intro-message {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #333;
}

/* Top Navigation Wrapper - Cream Background Only */
.top-nav-wrapper {
  background-color: #fdfdf7;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

/* Mobile Header - No Background */
.mobile-header {
  background: none;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: none;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-weight: bold;
  color: #004d26;
  font-size: 1.1rem;
}

.menu-toggle {
  background: none;
  border: none;
  color: #004d26;
  font-size: 1.2rem;
  padding: 0.25rem;
  cursor: pointer;
  line-height: 1;
}

/* Ensure body and main content have white background */
body {
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  width: 100%;
}

.main-content {
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  width: 100%;
}

.mobile-menu-old {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #fdfdf7;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  flex-direction: column;
  padding: 1rem;
  gap: 0.75rem;
}

.mobile-menu-old a {
  color: #004d26;
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 77, 38, 0.1);
}

.mobile-menu-old a:hover {
  color: #2c8c56;
}

.mobile-menu-old a:last-child {
  border-bottom: none;
}

/* Tournament name link styles */
.tournament-name a, .tournament-title a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #2c8c56;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.tournament-name a:hover, .tournament-title a:hover {
  color: #2c8c56;
  text-decoration: underline;
}

/* Hide empty search results container */
#tournament-results:empty,
.autocomplete-results:empty {
  display: none;
}

/* Mobile optimizations for profile tournament search */
@media (max-width: 768px) {
  .autocomplete-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin: 8px 0;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
  }

  .add-btn {
    background-color: #007c5f;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: bold;
    margin-left: 8px;
    white-space: nowrap;
    min-width: 70px;
    text-align: center;
  }
  
  /* Fix tournament search results */
  #tournament-results {
    padding: 8px;
  }
  
  .search-result {
    padding: 4px !important;
    margin-bottom: 5px;
    border-bottom: none !important;
  }
  
  .search-result span {
    width: calc(100% - 80px);
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Shared history link styles */
.shared-history-link {
  margin-top: 0.4rem;
  text-align: center;
  font-size: 14px;
}

.shared-history-link a {
  color: #1a5cff;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.3;
}

.shared-history-link a:hover {
  text-decoration: underline;
}

/* Lanyard introduction styling */
.lanyard-intro {
  max-width: 650px;
  margin: 0 auto 1.5rem;
}

.lanyard-intro p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 1rem;
}

/* Lanyard section spacing improvements */
.lanyard-section h2 {
  margin-bottom: 12px;
}

.lanyard-section p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.lanyard-section .button-primary {
  margin-top: 16px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.nav-left .nav-logo {
  font-weight: bold;
  font-size: 1.2rem;
  color: #333;
  text-decoration: none;
}

.nav-right {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.admin-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  width: 100%;
  flex-wrap: wrap;
}

.nav-link {
  color: #525252;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--sage-700);
}

.admin-link {
  background-color: #f0e6ff;
  color: #6a0dad;
}

.admin-link:hover {
  background-color: #e3d0ff;
}

@media (max-width: 600px) {
  .nav-right {
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    margin-top: 0.5rem;
  }
}

/* Let'CourtSide - Main Stylesheet */

/* Navigation */
.nav-container {
    background-color: #ffffff;
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-left .nav-logo {
    font-weight: bold;
    font-size: 1.2rem;
    color: #333;
    text-decoration: none;
}

.nav-right {
    display: flex;
    gap: 0.75rem;
}



/* Flash Messages */
.flashes {
  margin: 1rem 0;
}

.flash-message {
  background: #e0ffe0;
  border-left: 5px solid #2c5f2d;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  color: #2c5f2d;
}

/* Error Pages */
.error-container {
    text-align: center;
    padding: 4rem 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: 6rem;
    font-weight: bold;
    color: #2c5f2d;
    margin-bottom: 0.5rem;
}

.error-message {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #555;
}

.error-btn {
    background-color: #e6f2e6;
    color: #2c5f2d;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease;
}

.error-btn:hover {
    background-color: #cde8cd;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .nav-right {
        flex-direction: column;
        align-items: flex-end;
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* Tournament Listing */
.tournament-row {
  display: block;
  text-decoration: none;
  border: 1px solid #e0e0e0;
  border-radius: 1rem;
  padding: 1rem;
  transition: all 0.2s ease;
  color: inherit;
}

.tournament-row:hover {
  background-color: #f5fdf5;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tournament-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: #2c5f2d;
  margin-bottom: 0.25rem;
}

.tournament-meta {
  color: #666;
  font-size: 0.9rem;
}

.tournament-type {
  font-size: 0.8rem;
  color: #2c5f2d;
  opacity: 0.8;
  margin-left: 0.5rem;
  font-weight: normal;
}

/* Mobile-First Styles */
body {
  font-family: sans-serif;
  padding: 1rem;
  max-width: 100%;
  box-sizing: border-box;
}

table {
  width: 100%;
  overflow-x: auto;
  display: block;
}

td, th {
  padding: 8px;
  min-width: 120px;
}

/* Session selection styles */
.day-sessions-container {
  margin-top: 1rem;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

.day-session-group {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-light);
}

.day-session-group:last-child {
  border-bottom: none;
}

.day-label {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.session-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.session-checkbox {
  min-width: 100px;
}

.sessions-select-container .form-check {
  margin-bottom: 0;
  padding-left: 30px;
}

.sessions-select-container .checkmark {
  height: 22px;
  width: 22px;
}

.attending-summary {
  margin-top: 0.5rem;
}

.attending-day, .raised-hand-day {
  padding: 0.25rem 0;
}

@media (max-width: 600px) {
  h1, h2, h3 {
    font-size: 1.2em;
  }

  input[type="checkbox"] {
    transform: scale(1.2);
  }

  button {
    width: 100%;
    font-size: 1rem;
    padding: 12px;
    margin-top: 1rem;
  }

  .form-section {
    display: block;
    width: 100%;
  }

  .session-checkboxes {
    gap: 0.5rem;
  }

  .sessions-select-container .form-check {
    padding-left: 26px;
  }

  .card-body {
    padding: var(--spacing-sm);
  }
}

:root {
  /* Color Palette */
  --primary: #1e8449;       /* Tennis court green */
  --primary-dark: #196f3d;  /* Darker green */
  --primary-light: #52be80; /* Lighter green */
  --secondary: #e67e22;     /* Tennis ball orange */
  --accent: #8e44ad;        /* Purple accent */
  --gray-light: #f2f2f2;    /* Light gray */
  --gray: #bdbdbd;          /* Medium gray */
  --gray-dark: #4f4f4f;     /* Dark gray */
  --white: #ffffff;         /* White */
  --black: #333333;         /* Off-black */
  --success: #2ecc71;       /* Success messages */
  --warning: #f39c12;       /* Warning messages */
  --danger: #e74c3c;        /* Error messages */

  /* Typography */
  --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-size-base: 16px;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-xxl: 2rem;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;

  /* Border Radius */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

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

html {
  font-size: var(--font-size-base);
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--black);
  background-color: var(--gray-light);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

/* Grid system for responsive layouts */
.col-12 {
  width: 100%;
  padding: 0 15px;
}

@media (min-width: 576px) {
  .col-sm-6 {
    width: 50%;
    padding: 0 15px;
  }
}

@media (min-width: 768px) {
  .col-md-4 {
    width: 33.333333%;
    padding: 0 15px;
  }
  .col-md-6 {
    width: 50%;
    padding: 0 15px;
  }
  .col-md-8 {
    width: 66.666667%;
    padding: 0 15px;
  }
}

@media (min-width: 992px) {
  .col-lg-3 {
    width: 25%;
    padding: 0 15px;
  }
  .col-lg-4 {
    width: 33.333333%;
    padding: 0 15px;
  }
  .col-lg-6 {
    width: 50%;
    padding: 0 15px;
  }
  .col-lg-8 {
    width: 66.666667%;
    padding: 0 15px;
  }
  .col-lg-9 {
    width: 75%;
    padding: 0 15px;
  }
}

/* Navbar */
.navbar {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) var(--spacing-md);
}

.navbar-brand {
  font-size: var(--font-size-xl);
  font-weight: bold;
  color: var(--white);
}

.navbar-nav {
  display: flex;
  list-style: none;
}

.navbar-item {
  margin-left: var(--spacing-md);
}

.navbar-link {
  color: var(--white);
  font-weight: 500;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .navbar-toggle {
    display: block;
  }

  .navbar-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--primary);
    flex-direction: column;
    padding: var(--spacing-md);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
  }

  .navbar-nav.show {
    transform: translateY(0);
  }

  .navbar-item {
    margin: var(--spacing-sm) 0;
  }
}

/* Cards */
.card {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--spacing-lg);
  overflow: hidden;
}

.card-header {
  background-color: var(--primary);
  color: var(--white);
  padding: var(--spacing-md);
  font-weight: bold;
}

.card-body {
  padding: var(--spacing-lg);
}

.card-footer {
  background-color: white;
  padding: var(--spacing-md);
  border-top: none;
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--font-size-md);
  line-height: 1.5;
  border-radius: var(--border-radius-md);
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  cursor: pointer;
}

.btn-primary {
  color: var(--white);
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-secondary {
  color: var(--white);
  background-color: var(--secondary);
  border-color: var(--secondary);
}

.btn-secondary:hover {
  background-color: #d35400;
  border-color: #d35400;
}

.btn-outline {
  color: var(--primary);
  background-color: transparent;
  border-color: var(--primary);
}

.btn-outline:hover {
  color: var(--white);
  background-color: var(--primary);
}

.btn-danger {
  color: var(--white);
  background-color: var(--danger);
  border-color: var(--danger);
}

.btn-danger:hover {
  background-color: #c0392b;
  border-color: #c0392b;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Forms */
.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 500;
}

.form-control {
  display: block;
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--black);
  background-color: var(--white);
  background-clip: padding-box;
  border: 1px solid var(--gray);
  border-radius: var(--border-radius-md);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  border-color: var(--primary);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(39, 174, 96, 0.25);
}

/* Checkbox & Radio styles */
.form-check {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: var(--spacing-md);
  cursor: pointer;
}

.form-check-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.form-check-label {
  margin-bottom: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--border-radius-sm);
}

.form-check:hover .checkmark {
  background-color: var(--gray-light);
}

.form-check-input:checked ~ .checkmark {
  background-color: var(--primary);
  border-color: var(--primary);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.form-check-input:checked ~ .checkmark:after {
  display: block;
}

.form-check .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Tournament Cards */
.tournament-card {
  border-left: 4px solid var(--primary);
  margin-bottom: var(--spacing-md);
}

.tournament-card.attending {
  border-left-color: var(--secondary);
}

.tournament-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tournament-date {
  color: var(--gray-dark);
  font-size: var(--font-size-sm);
}

.tournament-location {
  margin-top: var(--spacing-xs);
  color: var(--gray-dark);
}

.tournament-type {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  background-color: var(--primary-light);
  color: var(--white);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-sm);
}

/* Alert Messages */
.alert {
  position: relative;
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  border: 1px solid transparent;
  border-radius: var(--border-radius-md);
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.alert-warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeeba;
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

/* === Mobile Navigation === */
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

/* Mobile Header Button Visibility Control */
.btn-join-club {
  display: none !important;
}

@media (min-width: 768px) {
  .btn-join-club {
    display: inline-flex !important;
  }
}

.btn-sign-in {
  display: none !important;
}

@media (min-width: 768px) {
  .btn-sign-in {
    display: inline !important;
  }
}

.mobile-header {
  background-color: #ffffff;
  color: #004d26;
  font-family: sans-serif;
  width: 100%;
  border-bottom: 1px solid #e0e0e0;
  z-index: 1000;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  position: relative;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  width: 100%;
  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  color: #004d26;
  font-weight: bold;
  font-size: 20px;
  white-space: nowrap;
}

.menu-toggle {
  color: #004d26;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.mobile-menu-legacy {
  display: none;
  flex-direction: column;
  background-color: #f8f8f8;
  padding: 10px 0;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 1001;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mobile-menu-legacy a {
  color: #004d26;
  padding: 12px 20px;
  text-decoration: none;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-weight: 500;
  margin: 2px 0;
}

.mobile-menu-legacy a:hover {
  background-color: #e0f2eb;
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 70px;
  }

  .logo {
    margin-right: 20px;
  }

  .mobile-menu-legacy {
    display: flex !important;
    flex-direction: row;
    justify-content: flex-end;
    background-color: transparent;
    padding: 0;
    position: static;
    width: auto;
    box-shadow: none;
  }

  .mobile-menu-legacy a {
    border-top: none;
    padding: 10px 15px;
    margin: 0;
    font-weight: normal;
  }
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25em 0.4em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: var(--border-radius-sm);
}

.badge-primary {
  background-color: var(--primary);
  color: var(--white);
}

.badge-secondary {
  background-color: var(--secondary);
  color: var(--white);
}

/* Hand Raise Feature */
.hand-raised {
  display: flex;
  align-items: center;
  padding: var(--spacing-sm);
  background-color: #e8f5e9;
  border-radius: var(--border-radius-md);
  margin-bottom: var(--spacing-sm);
}

.hand-raised svg {
  margin-right: var(--spacing-sm);
  color: var(--primary);
}

.hand-raised-info {
  flex: 1;
}

.hand-raised-name {
  font-weight: 500;
}

.hand-raised-details {
  font-size: var(--font-size-sm);
  color: var(--gray-dark);
}

/* Hero Section - Full Width */
.hero-section {
  background-image: url('/static/images/hero-tennis.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 20px;
  color: white;
  text-align: center;
  position: relative;
  max-width: none;
  margin: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Mobile optimization for hero section */
@media (max-width: 768px) {
  .hero-section {
    padding: 30px 20px;
    min-height: 80vh;
    justify-content: flex-start;
    padding-top: 40px;
  }
  
  .hero-section h1 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.2;
  }
  
  .hero-section p {
    margin-bottom: 0.75rem;
    line-height: 1.4;
    font-size: 0.95rem;
  }
  
  .hero-buttons {
    margin-top: 1rem;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 20px 15px;
    min-height: 70vh;
    padding-top: 25px;
  }
  
  .hero-section h1 {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
    line-height: 1.1;
  }
  
  .hero-section p {
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    line-height: 1.25;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
    margin-top: 0.8rem;
  }
  
  .cta-button, .secondary-button {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    padding: 10px 16px;
    font-size: 1rem;
  }
}

/* Hero dark overlay - 75% black for balanced readability */
.hero-dark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 10;
}

/* Hero content wrapper - positioned above overlay */
.hero-content {
  position: relative;
  z-index: 20;
}

.hero-section h1,
.hero-section h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: white;
}

.hero-section p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Hero Buttons Container */
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

/* CTA Buttons */
.howitworks-cta-button, .hero-cta-button, .cta-button {
  display: inline-block;
  background-color: #006400;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  min-width: 120px;
  text-align: center;
}

.howitworks-cta-button:hover, .hero-cta-button:hover, .cta-button:hover {
  background-color: #004d00;
  color: white;
  text-decoration: none;
}

/* Secondary button style for login */
.hero-secondary-button, .secondary-button {
  display: inline-block;
  background-color: #006400;
  color: white;
  border: 2px solid #006400;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  min-width: 120px;
  text-align: center;
}

.hero-secondary-button:hover, .secondary-button:hover {
  background-color: #004d00;
  color: white;
  text-decoration: none;
}

/* Homepage Footer - Full Width */
.homepage-footer {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
  background-color: #f8f9fa;
  color: #666;
  font-size: 0.9rem;
}

.homepage-footer p {
  margin: 0;
}

/* How It Works Steps */
.how-it-works-step {
  margin-bottom: 1.25rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #007a4d;
}

.how-it-works-step h2,
.how-it-works-step h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #004d26;
  font-size: 1.25rem;
}

/* Mobile optimization for how-it-works */
@media (max-width: 768px) {
  .how-it-works-step {
    margin-bottom: 1rem;
    padding: 0.75rem;
  }
  
  .how-it-works-step h2,
  .how-it-works-step h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
  }
  
  .how-it-works-step p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

.how-it-works-step p {
  margin-bottom: 0;
  color: #333;
  line-height: 1.5;
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.py-5 { 
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
}

/* Login & Register */
.auth-container {
  max-width: 450px;
  margin: var(--spacing-xxl) auto;
}

.auth-logo {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.auth-logo h1 {
  color: var(--primary);
  font-size: var(--font-size-xxl);
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: var(--spacing-lg) 0;
}

.auth-divider:before,
.auth-divider:after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--gray);
}

.auth-divider-text {
  padding: 0 var(--spacing-md);
  color: var(--gray-dark);
}

.social-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  background-color: #4285F4;
  color: white;
  margin-bottom: var(--spacing-md);
}

.social-login-btn img {
  margin-right: var(--spacing-md);
}

/* Profile Page */
.profile-header {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-lg);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-right: var(--spacing-md);
}

.profile-info h2 {
  margin-bottom: var(--spacing-xs);
}

.profile-email {
  color: var(--gray-dark);
}

.profile-actions {
  margin-top: var(--spacing-lg);
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

/* Settings toggles */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--gray);
  transition: .4s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--primary);
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

/* Footer */
.footer {
  background-color: var(--gray-dark);
  color: var(--white);
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-xxl);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  margin-bottom: var(--spacing-lg);
}

.footer-title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-md);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: var(--gray-light);
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
  color: #007a4d;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive design for mobile first */
@media (max-width: 576px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

  .card-body {
    padding: var(--spacing-md);
  }

  .auth-container {
    margin: var(--spacing-lg) auto;
    padding: 0 1rem;
  }
  
  .card-header h2 {
    text-align: center;
  }
  
  .card-footer {
    text-align: center;
  }

  .btn {
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .profile-avatar {
    margin-right: 0;
    margin-bottom: var(--spacing-sm);
  }

  .profile-actions {
    justify-content: center;
  }
}

/* Tournament styles */
.tournament-detail h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.tournament-meta {
  color: #555;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.tournament-about, .tournament-links {
  margin-top: 2rem;
}

.tournament-about p {
  font-size: 1rem;
  line-height: 1.5;
}

.tournament-links ul {
```text
  list-style: none;
  padding-left: 0;
}

.tournament-links li {
  margin-bottom: 0.5rem;
}

.tournament-links a {
  color: #2c5f2d;
  text-decoration: none;
  font-weight: 500;
}

.tournament-links a:hover {
  text-decoration: underline;
}

.tournament-row {
  border: 1px solid #e0e0e0;
  border-radius: 1rem;
  padding: 1rem;
  transition: background-color 0.2s ease;
}

.tournament-row:hover {
  background-color: #f5fdf5;
}

.tournament-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: #2c5f2d;
  margin-bottom: 0.25rem;
}

.tournament-meta {
  color: #666;
  font-size: 0.9rem;
}

.error-btn {
  background-color: #e6f2e6;
  color: #2c5f2d;
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease;
}

.error-btn:hover {
  background-color: #cde8cd;
}

/* Removed duplicate .main-content rules that added padding constraints */

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 16px 0;
  font-size: 14px;
}

.footer-links a {
  color: #004d26;
  text-decoration: none;
}

/* Page intro message styling */
.page-intro-message {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #333;
}/* Welcome message styling */
.welcome-message {
  background-color: #f0f9f4;
  border-left: 4px solid #4CAF50;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  color: #333;
}

/* Session container layout for tournament detail page */
.session-container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.session-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.fan-count {
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.25rem;
  text-align: center;
}

.day-count {
  color: #15803d; /* green */
}

.night-count {
  color: #1e40af; /* blue */
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
  .session-container {
    gap: 0.5rem;
  }
  
  .fan-count {
    font-size: 0.8rem;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  background: url('/static/images/hero-tennis.jpg') center center / cover no-repeat;
  color: white;
  padding: 4rem 1rem;
  text-align: center;
  border-radius: 1rem;
  margin: 2rem auto;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: auto;
}
.hero-heading {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.hero-subtext {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
.cta-button {
  background-color: #1d4ed8;
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  display: inline-block;
  margin: 0.5rem 0;
}
.cta-button.secondary {
  background-color: #2563eb;
}

/* Sections */
.info-section {
  padding: 2rem 1rem;
}
.section-heading {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Cards */
.info-cards,
.tournament-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media screen and (min-width: 768px) {
  .info-cards,
  .tournament-cards {
    flex-direction: row;
    justify-content: space-between;
  }
}
.info-card,
.tournament-card {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 0.5rem;
  flex: 1;
  text-align: center;
}
.tournament-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 0.5rem;
}
.tournament-info {
  padding: 0.5rem 0;
}

/* Lanyard highlight */
.lanyard-highlight {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}
.lanyard-highlight img {
  width: 100%;
  max-width: 400px;
  border-radius: 0.5rem;
}
.lanyard-text h3 {
  margin: 0 0 0.5rem;
}
@media screen and (min-width: 768px) {
  .lanyard-highlight {
    flex-direction: row;
    align-items: center;
  }
  .lanyard-text {
    padding-left: 1rem;
  }
}

/* Footer */
.homepage-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #666;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.footer-links a {
  color: #666;
  text-decoration: none;
}





/* Browse Tournaments Page */
.tournaments-header {
  padding: 2rem 1rem 1rem;
  text-align: center;
}

/* Fix text cutoff on mobile for Tournaments page */
@media (max-width: 768px) {
  .tournaments-header {
    padding: 12rem 1rem 1rem;
  }
}
.page-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}
.search-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}
.search-input {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  width: 100%;
  max-width: 400px;
  border: none;
  border-radius: 0.75rem;
  background-color: #e6f2e6;
}

.tournament-table-wrapper {
  padding: 0 1rem 3rem;
  overflow-x: auto;
}
.tournament-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fdfdfd;
  border-radius: 1rem;
  overflow: hidden;
  font-size: 0.95rem;
}
.tournament-table thead {
  background: #f5f5f5;
}
.tournament-table th,
.tournament-table td {
  padding: 1rem;
  text-align: left;
  white-space: nowrap;
}
.tournament-table th {
  font-weight: 600;
  color: #333;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid #ddd;
}
.tournament-table td {
  border-bottom: 1px solid #eee;
}
.tournament-table tr:last-child td {
  border-bottom: none;
}
.tournament-name {
  color: #14532d;
  text-decoration: none;
  font-weight: 500;
}
.tournament-name:hover {
  text-decoration: underline;
}
.type-text,
.attending-count {
  color: #3b7f4f;
  font-weight: 500;
}

/* Sort indicators (↑ ↓) can be added via pseudo-elements if needed */
.sortable::after {
  content: " ↕";
  color: #aaa;
}
.sortable.sort-asc::after {
  content: " ↑";
}
.sortable.sort-desc::after {
  content: " ↓";
}

/* Empty State Onboarding Styles */
.empty-onboarding {
  text-align: center;
  padding: 3rem 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.onboarding-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.onboarding-text {
  font-size: 1rem;
  color: #444;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.onboarding-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.onboarding-button {
  display: block;
  padding: 0.85rem 1.5rem;
  border-radius: 2rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}

.onboarding-button.primary {
  background-color: #007a4d;
  color: #fff;
}

.onboarding-button.secondary {
  background-color: #f1f5f3;
  color: #222;
}

.onboarding-button.primary:hover {
  background-color: #00613e;
}

.onboarding-button.secondary:hover {
  background-color: #e2ece8;
}

/* Browse all tournaments link */
.browse-all-link {
  text-align: center;
  margin-top: 1.5rem;
}

.browse-all-link a {
  color: #007a4d;
  text-decoration: none;
  font-weight: 500;
}

.browse-all-link a:hover {
  text-decoration: underline;
}

/* Lanyard image mobile styling */
@media (max-width: 768px) {
  .lanyard-image {
    max-height: 250px;
    object-fit: cover;
  }
}

/* Mission section styling */
.mission-section {
  text-align: center;
  padding: 3rem 1rem;
}

.mission-text {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  color: #444;
}

/* Future Vision Section */
.future-vision-section {
  background: #f8f9fa;
  text-align: center;
}

.future-vision-content {
  max-width: 700px;
  margin: 0 auto;
}

.future-intro {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.future-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 1.5rem;
}

.future-benefits {
  margin-bottom: 1.5rem;
}

.benefits-intro {
  font-size: 1.1rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 0.75rem;
}

.benefits-list {
  list-style: none;
  padding: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

.benefits-list li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.benefits-list li:before {
  content: "•";
  color: #006400;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.community-message {
  font-size: 1.1rem;
  font-style: italic;
  color: #333;
  font-weight: 500;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .future-intro {
    font-size: 1.1rem;
  }
  
  .future-description,
  .benefits-intro,
  .community-message {
    font-size: 1rem;
  }
  
  .benefits-list {
    font-size: 0.95rem;
  }
}

/* Tournament List - Redesigned for logged-in users */
.tournament-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 1rem;
}

.tournament-row {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 12px;
  background-color: #fff;
  font-family: 'Inter', sans-serif;
}

.tournament-name {
  font-family: 'Crimson Text', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
}

.tournament-dates {
  font-size: 0.95rem;
  color: #4b4b4b;
  margin-bottom: 0.5rem;
}

.tournament-attending {
  font-size: 0.9rem;
  display: flex;
  gap: 0.25rem;
  align-items: baseline;
  color: #446c1a;
}

.attending-count {
  font-weight: bold;
  font-size: 1rem;
}

.attending-label {
  font-size: 0.85rem;
  color: #777;
}

@media (min-width: 600px) {
  .tournament-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .tournament-name,
  .tournament-dates,
  .tournament-attending {
    margin: 0;
  }
}

/* Browse Tournaments - Tighter Layout */
.tournament-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  font-family: Inter, sans-serif;
}

.tournament-title {
  font-family: 'Crimson Text', serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1a1a1a;
}

.tournament-meta {
  font-size: 15px;
  color: #5a5a5a;
  line-height: 1.4;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.details-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 15px;
  color: #335533;
  text-decoration: none;
  font-weight: 500;
}

.details-link:hover {
  text-decoration: underline;
}

/* Mobile responsive helpers */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
  
  .mobile-only {
    display: block;
  }
}

/* Mobile tournament cards */
.tournament-cards {
  padding: 1rem;
}

.tournament-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 1rem;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.card-header h3 {
  margin: 0;
  font-size: 1.1rem;
  flex: 1;
}

.card-header h3 a {
  color: #007a4d;
  text-decoration: none;
}

.card-header h3 a:hover {
  text-decoration: underline;
}

.attending-badge {
  background: #007a4d;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
  white-space: nowrap;
  margin-left: 0.5rem;
}

.card-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #666;
}

.tournament-date {
  font-weight: 500;
}

.tournament-type {
  color: #888;
}

/* Four Simple Steps Section */
.four-steps {
  padding: 2rem 1rem;
  text-align: center;
}

.four-steps .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1e293b;
}

.four-steps .section-subtitle {
  font-size: 1.2rem;
  color: #475569;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.step-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  position: relative;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.step-number {
  position: absolute;
  top: -15px;
  left: 20px;
  background: #a0ff73;
  color: #0a0f1c;
  font-weight: 800;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 20px;
  min-width: 35px;
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #1e293b;
}

.step-card p {
  color: #64748b;
  line-height: 1.6;
}

/* Hero Text Shadow Styles */
.hero-text-shadow {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7) !important;
}

/* Ensure text shadow applies to all hero elements */
h1.hero-text-shadow,
h1.hero-text-shadow span {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7) !important;
}

/* Soho-style homepage support */
.hero-title {
  font-family: "Georgia", "Times New Roman", serif !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* Primary green flat color - no gradients */
.btn-flat-green {
  background-color: #4a5d2a !important;
  color: white !important;
  border: none !important;
  transition: background-color 0.2s ease !important;
}

.btn-flat-green:hover {
  background-color: #3d4b22 !important;
  color: white !important;
}

/* Remove conflicting Tailwind gradients */
.no-gradients {
  background-image: none !important;
}

/* Ensure mobile responsiveness for grid layouts */
@media (max-width: 768px) {
  .features {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    padding: 2rem 1rem !important;
  }
}

@media (max-width: 480px) {
  .features {
    padding: 1.5rem 0.75rem !important;
  }
}

/* CourtSide Experience Section */
.courtside-experience {
  display: flex;
  flex-direction: column;
  padding: 3rem 1rem;
}

.experience-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.experience-left {
  flex: 1;
  max-width: 500px;
}

.experience-left h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1e293b;
}

.experience-left .highlight {
  background: linear-gradient(90deg, #A4E447, #6DB1F7, #F2CC63);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.experience-left p {
  color: #475569;
}

.experience-benefits {
  margin-top: 1rem;
  list-style: none;
  padding: 0;
}

.experience-benefits li {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #64748b;
}

.experience-right {
  flex: 1;
  max-width: 500px;
}

.testimonial-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial-icon {
  font-size: 1.8rem;
}

.testimonial-card blockquote {
  font-style: italic;
  margin: 1rem 0;
  color: #475569;
}

.testimonial-card footer {
  font-size: 0.9rem;
  color: #64748b;
}

/* Membership Signal Section */
.membership-signal {
  padding: 3rem 1rem;
}

.signal-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.signal-image {
  flex: 1;
  max-width: 400px;
  text-align: center;
}

.lanyard-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.lanyard-card svg {
  color: #64748b;
}

.signal-text {
  flex: 1;
  max-width: 600px;
}

.signal-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1e293b;
}

.signal-text .highlight {
  background: linear-gradient(90deg, #A4E447, #6DB1F7, #F2CC63);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.signal-text p {
  color: #475569;
  margin-bottom: 1rem;
}

.signal-highlight {
  color: #a0ff73;
  font-weight: 600;
}

.signal-benefits {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.signal-benefits li {
  margin-bottom: 0.5rem;
  color: #64748b;
  font-weight: 500;
}

/* Final CTA Section */
.final-cta {
  padding: 2.5rem 1.5rem 5rem;
  background: #464C3F;
  border-top: 1px solid #e5e5e5;
}

.cta-container {
  max-width: 1024px;
  margin: 0 auto;
  text-align: center;
}

.final-cta h2 {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 600;
  color: #FBFAFB !important;
  margin-bottom: 1.5rem;
}

.final-cta p {
  font-size: 1.125rem;
  color: #FBFAFB !important;
  margin-bottom: 2rem;
  max-width: 512px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.final-cta .cta-button {
  background: white;
  color: #464C3F !important;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.final-cta .cta-button:hover {
  background: #f8f9fa;
  transform: translateY(-1px);
}

.join-cta {
  padding: 3rem 1rem;
  text-align: center;
}n: 0 auto;
}

.cta-container h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1e293b;
}

.cta-highlight {
  background: linear-gradient(90deg, #A4E447, #6DB1F7, #F2CC63);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-container p {
  color: #475569;
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-gradient {
  background: linear-gradient(90deg, #84CC16, #3B82F6);
  color: #ffffff;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(132, 204, 22, 0.3);
}

@media (max-width: 768px) {
  .four-steps .section-title {
    font-size: 2rem;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .experience-content {
    flex-direction: column;
  }
}

/* Membership Signal Section */
.membership-signal {
  background: #1a1e2a;
  padding: 3rem 1.5rem;
  margin-top: 3rem;
  border-radius: 1.5rem;
}

.signal-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.signal-image {
  flex: 1;
  max-width: 300px;
  display: flex;
  justify-content: center;
}

.lanyard-card {
  background: linear-gradient(to right, #a4e447, #6db1f7);
  border-radius: 1rem;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.signal-text {
  flex: 1;
  max-width: 500px;
}

.signal-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
}

.signal-text .highlight {
  color: #a4e447;
}

.signal-highlight {
  color: #a4e447;
  font-weight: bold;
}

.signal-benefits {
  margin-top: 1rem;
  list-style: none;
  padding-left: 0;
}

.signal-benefits li {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #dce3f1;
}

.btn-gradient {
  margin-top: 1.5rem;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(to right, #a4e447, #6db1f7);
  color: #fff;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(164, 228, 71, 0.3);
}

/* Final CTA Section */
.join-cta {
  background: #ffffff;
  text-align: center;
  padding: 4rem 1rem;
  border-top: 1px solid #e2e8f0;
}

.cta-container h2 {
  font-size: 2.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1e293b;
}

.cta-highlight {
  background: linear-gradient(to right, #6db1f7, #a4e447);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.cta-container p {
  font-size: 1.125rem;
  color: #475569;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-buttons .btn-outline {
  border: 2px solid #6db1f7;
  color: #dce3f1;
  background: transparent;
}

.cta-buttons .btn-outline:hover {
  background: #6db1f7;
  color: #ffffff;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .membership-signal {
    padding: 2rem 1rem;
    margin-top: 2rem;
  }
  
  .signal-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cta-container h2 {
    font-size: 1.75rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* Rebuilt Tournament Detail Page Styles */
.flash-message.success {
  background-color: #dff6e2;
  color: #1d632f;
  border-left: 4px solid #4a6b4a;
  max-width: 100%;
}

.flash-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
  max-width: 100%;
}

/* Mobile-first session selection styles */
.mobile-scroll {
  max-height: 400px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.session-option {
  padding: 12px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.session-option:hover {
  background-color: #f8f9fa;
}

.session-option:last-child {
  border-bottom: none;
}

.attendance-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 768px) {
  .attendance-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

.attendance-btn {
  min-height: 44px;
  padding: 12px 24px;
  font-weight: 500;
  border-radius: 8px;
  border: 2px solid #4a6b4a;
  background: white;
  color: #4a6b4a;
  transition: all 0.2s ease;
}

.attendance-btn:hover {
  background-color: #f8f9fa;
  transform: translateY(-1px);
}

.attendance-btn.btn-success {
  background-color: #4a6b4a;
  color: white;
}

.session-group-container {
  background: white;
  border: 1px solid #e9ecef;
}

.session-day-group {
  border-bottom: 1px solid #f1f3f4;
}

.session-day-group:last-child {
  border-bottom: none;
}


