/* SF TENNIS KIDS Club - Premium Design System */

:root {
  --navy: #1A237E;
  --navy-light: rgba(26, 35, 126, 0.05);
  --navy-muted: rgba(26, 35, 126, 0.1);
  --accent: #F57C00;
  --accent-light: rgba(245, 124, 0, 0.05);
  --clay: #D32F2F;
  --mist: #F8F9FA;
  --obsidian: #0A0D2E;
  --white: #FFFFFF;
}

/* V2 Theme - Royal Blue + Golden Yellow */
.theme-v2 {
  --navy: #163E85;
  --navy-light: rgba(22, 62, 133, 0.05);
  --navy-muted: rgba(22, 62, 133, 0.1);
  --accent: #E6C200;
  --accent-light: rgba(230, 194, 0, 0.05);
  --mist: #EEF0F5;
}

/* Base Styles */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--mist);
  color: var(--obsidian);
  margin: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-serif {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  font-weight: 900;
}

/* Premium Components */
.btn-primary {
  background-color: var(--navy);
  color: var(--white) !important;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  text-decoration: none;
  border: none;
}

.btn-primary:hover {
  background-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(245, 124, 0, 0.2);
}

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

.btn-outline {
  background-color: transparent;
  color: var(--navy) !important;
  padding: 0.75rem 2rem;
  border: 2px solid var(--navy);
  border-radius: 9999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.4s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-outline:hover {
  background-color: var(--navy);
  color: var(--white) !important;
}

.card-premium {
  background: var(--white);
  border-radius: 2.5rem;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(10, 13, 46, 0.03);
  border: 1px solid var(--navy-light);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.card-premium:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(10, 13, 46, 0.08);
  border-color: var(--navy-muted);
}

.card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--accent));
  opacity: 0;
  transition: opacity 0.5s ease;
}

.card-premium:hover::before {
  opacity: 1;
}

/* Dashboard Header Animations */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-slide-up {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
  animation: fadeIn 1s ease forwards;
}

/* Header Visuals */
.header-glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--navy-light);
}

/* Forms */
.form-input {
  width: 100%;
  background-color: var(--mist);
  border: 2px solid transparent;
  border-radius: 1.25rem;
  padding: 1rem 1.5rem;
  color: var(--navy);
  font-weight: 600;
  transition: all 0.3s ease;
  min-height: 48px;
}

/* Mobile touch targets */
@media (max-width: 640px) {
  .btn-primary,
  .btn-outline {
    min-height: 52px;
    padding: 0.875rem 1.5rem;
  }
  
  .form-input,
  select.form-input {
    padding: 0.875rem 1.25rem;
    font-size: 16px;
  }
  
  select.form-input {
    min-height: 52px;
  }
}

.form-input:focus {
  background-color: var(--white);
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 4px var(--accent-light);
}

/* Tables */
.premium-table thead th {
  background: var(--navy-light);
  color: var(--navy);
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  padding: 1rem 2rem;
}

.premium-table tbody tr {
  transition: background 0.3s ease;
}

.premium-table tbody tr:hover {
  background: var(--mist);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--mist);
}

::-webkit-scrollbar-thumb {
  background: var(--navy-muted);
  border-radius: 10px;
  border: 2px solid var(--mist);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--navy);
}
