/* =========================
   ENHANCED STYLING
   ========================= */

/* Hero Section Enhancements */
.hero-section {
  background: linear-gradient(135deg, #052c65 0%, #052c65 100%);
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  pointer-events: none;
}

.hero-section .hero-content {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  font-weight: 700;
}

.hero-section .lead {
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Card Enhancements */
.card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.card-header {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-weight: 600;
  padding: 1rem 1.25rem;
}

.card-body {
  padding: 1.25rem;
}

.card-header h5 {
  margin-bottom: 0;
  font-size: 1.1rem;
  color: #334155;
}

/* Remove redundant card spacing rule - handled by margin-bottom */

/* Button Enhancements */
.btn {
  border-radius: 0.75rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border: none;
}

.btn-outline-secondary {
  border: 2px solid #e2e8f0;
  color: #64748b;
  background: transparent;
}

.btn-outline-secondary:hover {
  background: #64748b;
  border-color: #64748b;
  color: white;
  transform: translateY(-2px);
}

/* Table Enhancements */
.table {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.table thead th {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border: none;
  font-weight: 600;
  color: #334155;
  padding: 1rem;
}

.table tbody tr {
  transition: all 0.2s ease;
}

.table tbody tr:hover {
  background-color: rgba(59, 130, 246, 0.05);
  transform: scale(1.01);
}

/* Badge Enhancements */
.badge {
  border-radius: 0.5rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
}

.badge.bg-warning {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
}

.badge.bg-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.badge.bg-secondary {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
}

/* List Group Enhancements */
.list-group-item {
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all 0.2s ease;
  padding: 1rem;
}

.list-group-item:hover {
  background-color: rgba(59, 130, 246, 0.05);
  padding-left: 1.25rem;
}

.list-group-item:last-child {
  border-bottom: none;
}

/* Cara Booking Cards */
.cara-booking-box {
  transition: all 0.3s ease;
  border: 2px solid transparent;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.cara-booking-box:hover {
  transform: translateY(-5px);
  border-color: #3b82f6;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
}

.cara-booking-box .display-6 {
  color: #3b82f6;
  transition: all 0.3s ease;
}

.cara-booking-box:hover .display-6 {
  transform: scale(1.1);
}

/* Court Cards */
.court-card {
  transition: all 0.3s ease;
  border: 2px solid #e2e8f0;
  border-radius: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.court-card:hover {
  border-color: #3b82f6;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.1);
}

/* Layout & Alignment Improvements */
.container-fluid {
  max-width: 1400px;
  margin: 0 auto;
}

/* Consistent spacing for sections */
.hero-section + .row {
  margin-top: 2rem;
}

/* Better alignment for flex items */
.d-flex.justify-content-between {
  align-items: center;
}

.d-flex.gap-2 {
  gap: 0.75rem !important;
}

/* Improved text alignment */
.text-center h1,
.text-center h2,
.text-center h3,
.text-center h4,
.text-center h5 {
  margin-bottom: 1rem;
}

/* Better spacing for buttons */
.btn + .btn {
  margin-left: 0.5rem;
}

.btn-group .btn {
  margin-left: 0;
}

/* Consistent padding for content areas */
.hero-content {
  padding: 1rem 0;
}

/* Better alignment for icons and text */
.bi + span,
.fa + span {
  margin-left: 0.5rem;
}

/* Responsive Enhancements */
/* Mobile First - Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero-section {
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0.75rem;
  }
  
  .hero-section h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }
  
  .hero-section .lead {
    font-size: 1rem;
  }
  
  .card {
    margin-bottom: 1rem;
    border-radius: 0.75rem;
  }
  
  .card-header {
    padding: 0.75rem 1rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .btn-lg {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  
  .table-responsive {
    border-radius: 0.75rem;
    overflow-x: auto;
    font-size: 0.875rem;
  }
  
  .table {
    font-size: 0.8rem;
  }
  
  .table th,
  .table td {
    padding: 0.5rem;
  }
  
  .cara-booking-box {
    padding: 1.5rem 1rem;
    margin-bottom: 1rem;
  }
  
  .cara-booking-box .display-6 {
    font-size: 1.5rem;
  }
  
  .court-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .list-group-item {
    padding: 0.75rem;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
  }
  
  /* Stack columns on mobile */
  .row.g-4 {
    gap: 1rem;
  }
  
  .col-lg-6 {
    margin-bottom: 1rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .btn {
    width: auto;
    min-width: 120px;
  }
  
  .cara-booking-box {
    padding: 2rem 1rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    padding: 2.5rem 2rem;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .card {
    margin-bottom: 1.5rem;
  }
  
  .cara-booking-box {
    padding: 2rem;
  }
  
  .court-card {
    padding: 1.5rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-section {
    padding: 3rem 2.5rem;
  }
  
  .hero-section h1 {
    font-size: 3rem;
  }
  
  .card:hover {
    transform: translateY(-8px);
  }
  
  .cara-booking-box:hover {
    transform: translateY(-8px);
  }
  
  .court-card:hover {
    transform: translateY(-5px);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section {
    padding: 4rem 3rem;
  }
  
  .container {
    max-width: 1140px;
  }
}

/* Print styles */
@media print {
  .hero-section {
    background: none !important;
    color: #000 !important;
    box-shadow: none !important;
  }
  
  .card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
  
  .btn {
    display: none !important;
  }
  
  .navbar {
    display: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .hero-section {
    background: #000 !important;
    color: #fff !important;
  }
  
  .card {
    border: 2px solid #000 !important;
  }
  
  .btn {
    border: 2px solid #000 !important;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .fade-in-up {
    animation: none;
  }
  
  .pulse {
    animation: none;
  }
  
  .card:hover,
  .cara-booking-box:hover,
  .court-card:hover {
    transform: none;
  }
  
  .btn::before {
    display: none;
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Pulse Animation for Important Elements */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Dark Mode Enhancements */
[data-theme="dark"] .hero-section {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

[data-theme="dark"] .card {
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

[data-theme="dark"] .card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

[data-theme="dark"] .cara-booking-box {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

[data-theme="dark"] .court-card {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border-color: #374151;
}

[data-theme="dark"] .table thead th {
  background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
  color: #e5e7eb;
}

/* Mobile-first enhancements for better responsive design */
.table-responsive {
  overflow-x: auto;
  border-radius: 0.75rem;
}

.footer {
  position: relative;
  margin-top: 3rem;
  padding: 2rem 0;
}

