/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* CSS Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  /* Friendly Color Palette */
  --primary-green: #22c55e;
  --primary-green-light: #34d399;
  --primary-green-dark: #16a34a;
  --accent-coral: #fb7185;
  --accent-blue: #60a5fa;
  --accent-purple: #a78bfa;
  --warm-orange: #fb923c;

  /* Neutral Colors */
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-400: #a3a3a3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;

  /* Semantic Colors */
  --success: var(--primary-green);
  --warning: var(--warm-orange);
  --error: #ef4444;
  --info: var(--accent-blue);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-full: 9999px;

  /* Common Background Patterns */
  --bg-glass-primary: rgba(255, 255, 255, 0.9);
  --bg-glass-secondary: rgba(255, 255, 255, 0.95);
  --bg-glass-light: rgba(255, 255, 255, 0.6);
  --bg-glass-subtle: rgba(255, 255, 255, 0.5);
  --bg-overlay: rgba(255, 255, 255, 0.1);
}

body {
  margin: 0;
  font-family: "Gabarito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--neutral-700);
  /* background: linear-gradient(135deg, #fef3c7 0%, #fce7f3 50%, #ddd6fe 100%); */
  background: linear-gradient(
    135deg,
    #fef3c7 0%,
    #fce7f3 20%,
    #f9e0ef 67%,
    #ddd6fe 100%
  );
  background-attachment: fixed;
  min-height: 100vh;
}

/* Layout */
.layout-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0 auto;
  padding: 1rem 0;
  width: 94%;
  max-width: 90ch;
}

/* Main content container */
.main-content.no-header {
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Helpers */
.hidden {
  display: none;
  visibility: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
  color: var(--neutral-800);
}

h1 {
  font-size: 1.75rem;
  background: linear-gradient(135deg, var(--primary-green), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 1.5rem;
  color: var(--neutral-700);
}

h3 {
  font-size: 1.5rem;
  color: var(--neutral-700);
}

p {
  margin: 0 0 1rem 0;
  color: var(--neutral-600);
}

a:hover {
  cursor: pointer;
}

.hide {
  display: none !important;
}

/* Buttons */
.btn-back {
  color: var(--neutral-300);
  display: inline-block;
  text-decoration: none;
  font-size: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  font-size: 0.925rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  background-clip: padding-box;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2));
  border-radius: inherit;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
}

.btn:focus {
  outline: 3px solid var(--accent-blue);
  outline-offset: 2px;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-green),
    var(--primary-green-light)
  );
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: linear-gradient(
    135deg,
    var(--primary-green-dark),
    var(--primary-green)
  );
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--accent-coral), var(--warm-orange));
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #f43f5e, var(--accent-coral));
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--neutral-600);
  border: 2px solid var(--neutral-300);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--primary-green);
  color: var(--primary-green-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-danger {
  background: linear-gradient(135deg, var(--error), #dc2626);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  border-radius: var(--radius-lg);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

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

/* Forms */
.form {
}

.form-group {
  margin-top: 0.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: var(--neutral-700);
  font-size: 0.95rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

.form-help {
  margin: 0.15rem 0 0 0;
  font-size: 0.875rem;
  color: var(--neutral-500);
  font-weight: 500;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-checkbox {
  width: auto;
  margin: 0;
  accent-color: var(--primary-green);
}

.form-checkbox-label {
  margin: 0;
  font-weight: 500;
  cursor: pointer;
  color: var(--neutral-700);
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: end;
  margin-top: 1rem;
}

/* Cards */
.card {
  padding: 1.25rem;
  background: var(--bg-glass-primary);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Page Layout */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-glass-primary);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-title-group {
  flex: 1;
}

.page-title-group-flex {
  align-items: center;
  display: flex;
  gap: 1rem;
}

.page-title {
  color: var(--neutral-800);
  position: relative;
}

.page-subtitle {
  margin: 0;
  color: var(--neutral-500);
  font-size: 1.1rem;
  font-weight: 500;
}

.breadcrumb {
  color: var(--neutral-500);
  font-size: 0.925em;
  margin: 0;

  a {
    color: inherit;
    text-decoration: none;

    &:hover {
      text-decoration: underline;
    }
  }
}

.page-actions {
  display: flex;
  gap: 0.75rem;
}

/* Alerts */
.alert {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  border: 1px solid transparent;
  backdrop-filter: blur(10px);
  font-weight: 500;
}

.alert-error {
  background: rgba(248, 215, 218, 0.9);
  color: #721c24;
  border-color: rgba(241, 174, 181, 0.5);
}

.alert-success,
.alert-notice {
  background: rgba(212, 237, 218, 0.9);
  color: #155724;
  border-color: rgba(195, 230, 203, 0.5);
}

.alert-title {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.alert-list {
  margin: 0;
  padding-left: 1.25rem;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-glass-light);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  border: 2px dashed var(--neutral-300);
  transition: all 0.3s ease;
}

.empty-state:hover {
  border-color: var(--primary-green);
  background: rgba(255, 255, 255, 0.8);
}

.empty-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--neutral-700);
  margin-bottom: 0.75rem;
}

.empty-description {
  font-size: 1.1rem;
  color: var(--neutral-500);
  margin-bottom: 2rem;
  font-weight: 500;
}

/* Authentication */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-card {
  background: var(--bg-glass-secondary);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 420px;
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--primary-green),
    var(--accent-blue),
    var(--accent-purple)
  );
}

.auth-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-title {
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--primary-green), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2rem;
  font-weight: 800;
}

.auth-subtitle {
  color: var(--neutral-500);
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Dashboard */
.dashboard-grid {
  display: grid;
  gap: 1rem;
}

.dashboard-section {
  margin-top: 1.5rem;
}

/* Groups */
.group-list,
.groups-grid,
.group-content {
  display: grid;
  gap: 1.5rem;
}

.group-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  padding: 1rem 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  @media (min-width: 500px) {
    grid-template-columns: minmax(10%, 100%) max-content max-content;
  }
}

.group-card-header {
  grid-column: span 2;

  @media (min-width: 500px) {
    grid-column: span 1;
  }
}

.group-card-title {
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
  font-weight: 700;
}

.group-link {
  color: var(--neutral-800);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

.group-link:hover {
  color: var(--primary-green);
  text-decoration: none;
}

.group-meta {
  color: var(--neutral-500);
  font-size: 0.95rem;
  font-weight: 500;
}

.group-stats {
  display: flex;
  gap: 1rem;
}

.stat {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  text-align: center;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.2s ease;
  width: max-content;
}

.stat:hover {
  transform: scale(1.05);
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary-green), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--neutral-500);
  text-transform: uppercase;
  letter-spacing: 0.25px;
  font-weight: 600;
}

.group-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-left: auto;
  width: max-content;
}

/* Players */
.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.player-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  color: var(--neutral-800);
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
  padding: 1rem;
  text-decoration: none;
}

.player-card.inactive {
  opacity: 0.7;
}

.status-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-active {
  background-color: #d4edda;
  color: #155724;
}

.status-inactive {
  background-color: #f8d7da;
  color: #721c24;
}

.player-notes {
  margin: 0.5rem 0;
  font-size: 0.875rem;
  color: #6c757d;
}

.player-actions {
  display: flex;
  gap: 0.5rem;
}

/* Games */
.game-generator-form {
  background: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.player-selection {
  margin: 0 0 1.5rem 0;
}

.player-selection-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(31%, 1fr));
  gap: 0.5rem;
}

.select-all {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}

.player-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border: 1px solid #e9ecef;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.player-card:hover {
  background-color: #f8f9fa;
  border-color: #0066cc;
}

.player-checkbox {
  margin: 0;
  width: auto;
}

.player-status {
  font-size: 0.75rem;
  color: #6c757d;
}

.games-grid {
  display: grid;
  gap: 1rem;
}

.round-section {
  background: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.round-title {
  margin-bottom: 1rem;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 0.5rem;
}

.round-games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.game-card {
  border: 1px solid #e9ecef;
  border-radius: 0.375rem;
  padding: 1rem;
  background: #f8f9fa;
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.game-format {
  font-weight: 600;
  color: #0066cc;
}

.game-court {
  font-size: 0.875rem;
  color: #6c757d;
}

.game-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.team {
  text-align: center;
}

.team-label {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #495057;
}

.team-players {
  list-style: none;
  margin: 0;
  padding: 0;
}

.team-player {
  padding: 0.25rem 0;
  font-weight: 500;
}

.vs-divider {
  font-weight: bold;
  color: #6c757d;
  font-size: 0.875rem;
}

.benched-players {
  align-items: center;
  border-top: 1px solid #e9ecef;
  display: flex;
  gap: 1rem;
  padding-top: 0.75rem;
  text-align: center;
}

.benched-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6c757d;
}

.benched-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.benched-player {
  background: #e9ecef;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  color: #495057;
}

/* Header */
.app-header {
  /* background: rgba(255, 255, 255, 0.95); */
  backdrop-filter: blur(20px);
  /* border-bottom: 1px solid rgba(255, 255, 255, 0.2); */
  /* box-shadow: var(--shadow-md); */
  border-radius: var(--radius-lg);
}

.header-nav {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.25rem 0.5rem;

  .header-brand {
    justify-self: center;
  }
}

.brand-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.brand-link:hover {
  text-decoration: none;
  transform: scale(1.05);
}

.brand-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--primary-green),
    var(--accent-blue),
    var(--accent-purple)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.brand-title::after {
  content: "🏓";
  position: absolute;
  right: -2rem;
  top: -0.25rem;
  font-size: 1.5rem;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

/* Flash Messages */
.flash {
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  margin: 0;
  text-align: center;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: none;
  font-size: 1rem;
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translate(-50%);
  animation: fadeOut 1s 2.5s 1 ease-out forwards;
  z-index: 10000;
}

.flash-notice {
  background: rgba(212, 237, 218, 0.95);
  color: #155724;
}

.flash-alert,
.flash-error {
  background: rgba(248, 215, 218, 0.95);
  color: #721c24;
}

.flash-success {
  background: rgba(209, 236, 241, 0.95);
  color: #0c5460;
}

.flash-success {
  background-color: #d1ecf1;
  color: #0c5460;
  border-color: #bee5eb;
}

/* Adjust main content when header is present */
body:has(.app-header) main {
  padding-top: 0;
}

/* Public Homepage Styles */
.public-layout {
  background: linear-gradient(
    135deg,
    #fef3c7 0%,
    #fce7f3 20%,
    #f9e0ef 67%,
    #ddd6fe 100%
  );
  background-attachment: fixed;
  min-height: 100vh;
}

.homepage {
  display: flex;
  flex-direction: column;
  gap: 8rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem 8rem 1rem;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
  padding: 4rem 0 0 0;
  text-align: left;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-green), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--neutral-700);
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--neutral-600);
  margin-bottom: 1rem;
  line-height: 1.6;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-icon {
  font-size: 8rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* Features Section */
.features {
  align-items: center;
  display: grid;
}

.section-title {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  color: var(--neutral-800);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  text-align: center;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  transform: translateY(-8px) rotate(1deg);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  font-size: 3rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: block;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--neutral-800);
}

.feature-description {
  color: var(--neutral-600);
  line-height: 1.6;
  margin: 0;
}

/* CTA Section */
.cta {
  padding: 6rem 0;
  text-align: center;
  /* background: linear-gradient(135deg, var(--primary-green), var(--accent-blue)); */
  background: linear-gradient(
    135deg,
    var(--primary-green),
    var(--primary-green-light)
  );
  border-radius: var(--radius-lg);
  margin: 0 0 4rem 0;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: white;
}

.cta-description {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn-primary {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-green);
  font-weight: 800;
  backdrop-filter: blur(20px);
}

.cta .btn-primary:hover {
  background: white;
  transform: translateY(-4px) scale(1.05);
}

/* Public Footer */
.public-footer {
  padding: 2rem 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin-top: 2rem;
}

.footer-text {
  text-align: center;
  color: var(--neutral-600);
  margin: 0;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-actions {
    justify-content: stretch;
  }

  .group-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .brand-title {
    font-size: 1.5rem;
  }

  .brand-title::after {
    right: -1.5rem;
    font-size: 1.25rem;
  }

  .header-actions {
    gap: 0.75rem;
  }

  .empty-state {
    padding: 3rem 1.5rem;
  }

  .auth-card {
    padding: 2rem;
    margin: 0.5rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-icon {
    width: 150px;
    height: 150px;
    font-size: 6rem;
  }

  .cta {
    padding: 4rem 0;
  }

  .cta-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .court-surface {
    padding: 0.75rem;
    min-height: 180px;
  }

  /* Extra small screen court lines */
  .court-surface::after {
    left: calc(50% - 3rem);
  }

  .court-service-line-left {
    margin-right: 3rem;
  }

  .court-service-line-right {
    margin-left: 3rem;
  }

  .court-sideline-right {
    left: calc(50% + 3rem);
  }

  .court-team-area {
    width: 90%;
    gap: 0.375rem;
    padding: 0.375rem;
  }

  .court-player-card {
    padding: 0.375rem 0.5rem;
    font-size: 0.8rem;
  }

  .court-number {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    top: -1.5rem;
  }

  .court-net-area {
    font-size: 0.5rem;
  }
}

/* Micro-interactions and animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    top: -100px;
  }
}

/* Enhance button interactions */
.btn:hover::before {
  opacity: 1;
}

/* Add subtle hover effects to form inputs */
.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--primary-green-light);
}

/* Fun loading states */
.btn:active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: inherit;
  animation: pulse 0.3s ease-out;
}

/* Enhanced focus states for accessibility */
.btn:focus-visible {
  outline: 3px solid var(--accent-blue);
  outline-offset: 3px;
}

.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
  outline: 3px solid var(--primary-green);
  outline-offset: 2px;
}

/* Sessions */
.sessions-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.session-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  padding: 1rem 1.25rem;
}

.session-card-header {
  grid-column: span 2;
}

.session-date {
  align-items: center;
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  color: var(--neutral-800);
}

.session-meta {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.session-courts {
  padding: 0.25rem 0.75rem;
  background: rgba(96, 165, 250, 0.1);
  color: var(--accent-blue);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
}

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

.session-notes {
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--accent-blue);
}

.session-notes p {
  margin: 0;
  font-style: italic;
  color: var(--neutral-600);
}

.session-actions {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: end;
}

/* Action Cards for group show page */
.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1.5rem;
}

.action-card {
  display: block;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg);
  padding: 1rem 1rem 1.5rem 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-align: center;

  @media (max-width: 768px) {
    padding: 0.75rem 0.75rem 1rem 0.75rem;
  }
}

.action-card:hover {
  transform: translateY(-4px) scale(1.01) rotate(0.5deg);
  box-shadow: var(--shadow-xl);
  text-decoration: none;
}

.action-icon {
  display: block;
  font-size: 2rem;
  line-height: 1.4;

  @media (min-width: 768px) {
    font-size: 3rem;
  }
}

.action-title {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--neutral-800);
}

.action-description {
  margin: 0;
  color: var(--neutral-600);
  font-size: 0.95rem;
  line-height: 1.5;
}

.section-header {
  align-items: center;
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

/* Section count for headers */
.section-count {
  padding: 0.25rem 0.75rem;
  background: rgba(251, 113, 133, 0.6);
  color: var(--neutral-700);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
}

.session-list {
  margin-top: 1.5rem;
}

/* Grid-based Pickleball Court Layout */
.court-container {
  padding: 0.25rem;
  max-width: 80rem;
  width: 100%;
}

.court-surface {
  background: rgb(152, 167, 198);
  padding: 1rem 1rem;
  position: relative;
  box-shadow: inset 0px 0px 0px 0.4rem rgb(255 255 255),
    inset 0 0 0px 0.5rem rgb(255 255 255);
  min-height: 200px;
  display: grid;
  grid-template-columns: 1fr 4px 1fr;
  grid-template-rows: 1fr;
  gap: 0;
}

/* Court lines - consolidated base styles */
.court-surface::before,
.court-surface::after,
.court-service-line-left,
.court-service-line-right,
.court-sideline-right {
  content: "";
  position: absolute;
  background: white;
}

.court-surface::before,
.court-surface::after,
.court-sideline-right {
  top: 2px;
  bottom: 2px;
  width: 4px;
}

.court-service-line-left,
.court-service-line-right {
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
}

/* Specific positioning */
.court-surface::before {
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.court-surface::after {
  left: calc(50% - 8rem);
}

.court-service-line-left {
  left: 2px;
  right: 50%;
  margin-right: 8rem;
}

.court-service-line-right {
  right: 2px;
  left: 50%;
  margin-left: 8rem;
}

.court-sideline-right {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: calc(50% + 8rem);
  width: 4px;
  background: white;
}

/* Team areas */
.court-team-area {
  display: grid;
  gap: 1.5rem;
  padding: 0.25rem 1rem;
  align-items: center;
  justify-self: center;
  width: 75%;
}

.court-team-left {
  grid-column: 1;
  grid-row: 1;
}

.court-team-right {
  grid-column: 3;
  grid-row: 1;
}

/* Net area */
.court-net-area {
  grid-column: 2;
  grid-row: 1 / -1;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #f0f0f0 20%,
    #e0e0e0 40%,
    #f0f0f0 60%,
    #ffffff 80%,
    #f8f8f8 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.6rem;
  color: #2d5016;
  letter-spacing: 0.1em;
  position: relative;
  box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.1),
    inset -1px 0 0 rgba(0, 0, 0, 0.1);
}

/* Player cards */
.court-player-card {
  background: rgba(255, 255, 255, 0.85);
  color: #1f2937;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 1rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  z-index: 1;
}

/* Court number styling */
.court-number {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background: #2d5016;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 20;
  top: -1.75rem;
}

.court-number::before {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #2d5016;
}

/* Round bench area - shared across all games in the round */
.round-bench-area {
  background: linear-gradient(
    135deg,
    rgba(139, 69, 19, 0.08),
    rgba(160, 82, 45, 0.05)
  );
  border-radius: 0.25rem;
  padding: 0.5rem 0.75rem;
  margin: 0.5rem 0.75rem 0 0.75rem;
}

.round-bench-area {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bench-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #8b4513;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.bench-players {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex: 1;
}

.round-bench-area .bench-player,
.bench-player {
  background: rgba(139, 69, 19, 0.12);
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #8b4513;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  /* Responsive court lines for mobile */
  .court-surface::after {
    left: calc(50% - 4rem);
  }

  .court-service-line-left {
    margin-right: 4rem;
  }

  .court-service-line-right {
    margin-left: 4rem;
  }

  .court-sideline-right {
    left: calc(50% + 4rem);
  }

  .court-player-card {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }

  .court-team-area {
    gap: 0.5rem;
    padding: 0.5rem;
    width: 85%;
  }

  .court-number {
    font-size: 0.75rem;
    top: -1.75rem;
  }
}

@media (max-width: 480px) {
  .court-surface {
    padding: 0.75rem;
    min-height: 180px;
  }

  /* Extra small screen court lines */
  .court-surface::after {
    left: calc(50% - 3rem);
  }

  .court-service-line-left {
    margin-right: 3rem;
  }

  .court-service-line-right {
    margin-left: 3rem;
  }

  .court-sideline-right {
    left: calc(50% + 3rem);
  }

  .court-team-area {
    width: 90%;
    gap: 0.375rem;
    padding: 0.375rem;
  }

  .court-player-card {
    padding: 0.375rem 0.5rem;
    font-size: 0.8rem;
  }

  .court-number {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    top: -1.5rem;
  }

  .court-net-area {
    font-size: 0.5rem;
  }
}
