/*
 * 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.
 */

/* Layout */
.sticky-top {
  top: 55px;
}

/* Event Actions Section */
.event-actions .card {
  transition: all 0.2s ease-in-out;
}

.event-actions .card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Mobile responsive utilities */
@media (min-width: 576px) {
  .w-sm-auto {
    width: auto !important;
  }
}

@media (min-width: 768px) {
  .w-md-auto {
    width: auto !important;
  }
}

.month-header {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95) !important;
  z-index: 100;
}

.month-header h2 {
  font-weight: 700;
  font-size: 1.75rem;
}

/* Event Cards */
.event-card {
  background: #fff;
  border-radius: 12px;
  transition: all 0.2s ease-in-out;
  border: 1px solid #e9ecef;
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

.track-image-container {
  border-radius: 12px 12px 0 0;
  background: #f8f9fa;
}

.track-layout {
  transition: transform 0.2s ease-in-out;
}

.event-card:hover .track-layout {
  transform: scale(1.02);
}

.date-badge {
  z-index: 10;
}

.date-badge > div {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-width: 45px;
}

.event-title {
  font-size: 1.1rem;
  line-height: 1.3;
  color: #212529;
}

.event-title a:hover {
  color: #0d6efd !important;
}

.event-meta {
  font-size: 0.9rem;
}

.event-meta i {
  font-size: 0.8rem;
  width: 16px;
  text-align: center;
}

.badge {
  font-size: 0.75rem;
  font-weight: 500;
}

.badge.bg-light {
  border: 1px solid #dee2e6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .event-card {
    margin-bottom: 1rem;
  }
  
  .track-layout {
    height: 120px !important;
  }
  
  .event-title {
    font-size: 1rem;
  }
  
  /* Make event cards more compact on mobile */
  .event-card .p-3 {
    padding: 0.75rem !important;
  }
  
  .event-card .event-title h5 {
    font-size: 0.95rem !important;
    margin-bottom: 0.25rem !important;
  }
  
  .event-card .event-meta {
    margin-bottom: 0.5rem !important;
    font-size: 0.8rem !important;
  }
  
  .event-card .event-meta > div {
    margin-bottom: 0.25rem !important;
  }
  
  .event-card .event-details {
    margin-bottom: 0.75rem !important;
  }
  
  .event-card .badge {
    font-size: 0.65rem !important;
    padding: 0.2rem 0.4rem !important;
  }
  
  .event-card .btn {
    font-size: 0.75rem !important;
    padding: 0.3rem 0.6rem !important;
  }
  
  .date-badge {
    transform: scale(0.85);
    transform-origin: top right;
  }
  
  /* Reduce spacing between elements */
  .event-card .row.g-0 > .col-12 {
    margin-bottom: 0.25rem !important;
  }
  
  .event-card .row.g-0 > .col-12:last-child {
    margin-bottom: 0 !important;
  }
}

/* Filter section styling */
.form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
}

.form-select, .form-control {
  border: 1px solid #ced4da;
  border-radius: 6px;
}

.form-select:focus, .form-control:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-check-label {
  font-weight: 500;
  color: #495057;
}

/* Badge styling for active filters */
.badge a {
  text-decoration: none;
}

.badge a:hover {
  opacity: 0.8;
}

/* Vehicle type badges */
.badge-motorcycle {
  background-color: #4a1f72 !important;
  color: white !important;
}

.badge-car {
  background-color: #6c757d !important;
  color: white !important;
}

/* Availability status badges - pastel colors that complement purple */
.availability-available {
  background-color: #d4edda !important;
  color: #0f5132 !important;
  border: 1px solid #c3e6cb !important;
}

.availability-limited {
  background-color: #fff3cd !important;
  color: #664d03 !important;
  border: 1px solid #ffecb5 !important;
}

.availability-sold-out {
  background-color: #f8d7da !important;
  color: #721c24 !important;
  border: 1px solid #f5c2c7 !important;
}

.availability-unknown {
  background-color: #e2e3e5 !important;
  color: #41464b !important;
  border: 1px solid #d3d3d4 !important;
}

/* CSS variables */
:root {
  --primary-purple: #667eea;
  --secondary-purple: #764ba2;
  --light-purple: #8b94f0;
  --purple-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Navigation styles */
.nav-link-custom {
  transition: all 0.3s ease;
  border-radius: 6px;
  padding: 8px 12px !important;
}

.nav-link-custom:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.nav-link-custom:active {
  transform: translateY(0);
}

.navbar-toggler:focus {
  box-shadow: none;
}

@media (max-width: 767.98px) {
  .navbar-nav {
    padding-top: 1rem;
  }
  
  .nav-link-custom {
    margin-bottom: 0.5rem;
    text-align: left;
  }
  
  .navbar form {
    margin-top: 1rem;
    width: 100%;
  }
  
  .navbar form .input-group {
    width: 100%;
  }
  
  .navbar form .form-control {
    max-width: 100% !important;
  }
}

/* Purple theme overrides */
.btn-primary {
  background: var(--purple-gradient) !important;
  border: none !important;
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3) !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4) !important;
}

.btn-outline-primary {
  color: var(--primary-purple) !important;
  border-color: var(--primary-purple) !important;
}

.btn-outline-primary:hover {
  background: var(--purple-gradient) !important;
  border-color: transparent !important;
  transform: translateY(-1px);
}

.badge.bg-primary {
  background: var(--purple-gradient) !important;
}

.text-primary {
  color: var(--primary-purple) !important;
}

.month-header h2 {
  background: var(--purple-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.date-badge .bg-primary {
  background: var(--purple-gradient) !important;
}

.form-control:focus, .form-select:focus {
  border-color: var(--light-purple) !important;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25) !important;
}

.clickable-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.clickable-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.hover-shadow {
  transition: all 0.3s ease;
}

.hover-shadow:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}