@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
  box-sizing: border-box;
}

.disney-ride-checker {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(to bottom right, rgb(59, 130, 246), rgb(147, 51, 234));
  border-radius: 16px;
  color: white;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.drc-container {
  text-align: center;
}

.drc-header {
  margin-bottom: 40px;
}

.drc-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  background: linear-gradient(to right, white, rgb(219, 234, 254));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.drc-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin: 0;
  font-weight: 500;
}

.drc-park-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.drc-filter-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 50px;
  background: rgba(255,255,255,0.1);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.95rem;
}

.drc-filter-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.drc-filter-btn.active {
  background: white;
  color: rgb(59, 130, 246);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.drc-height-section {
  margin-bottom: 40px;
}

.drc-section-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: rgb(219, 234, 254);
  font-weight: 600;
}

.drc-height-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.drc-height-btn {
  padding: 16px 20px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.drc-height-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.drc-height-btn.selected {
  background: rgb(34, 197, 94);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
  border-color: rgb(34, 197, 94);
}

.drc-no-height-btn {
  padding: 16px 32px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.drc-no-height-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.drc-no-height-btn.selected {
  background: rgb(168, 85, 247);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4);
  border-color: rgb(168, 85, 247);
}

.drc-results {
  margin-top: 40px;
}

.drc-results-header {
  margin-bottom: 24px;
}

.drc-results-header h3 {
  font-size: 2rem;
  margin: 0 0 12px 0;
  color: white;
  font-weight: 700;
}

.drc-last-updated {
  font-size: 0.875rem;
  color: rgb(191, 219, 254);
  font-weight: 500;
}

.drc-rides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.drc-ride-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 24px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drc-ride-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  background: rgba(255, 255, 255, 0.15);
}

.drc-ride-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.drc-ride-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
  line-height: 1.4;
  color: white;
}

.drc-ride-status {
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  margin-left: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.drc-ride-status.operating {
  background: rgb(34, 197, 94);
  color: white;
}

.drc-ride-status.down,
.drc-ride-status.closed {
  background: rgb(239, 68, 68);
  color: white;
}

.drc-ride-status.refurbishment {
  background: rgb(249, 115, 22);
  color: white;
}

.drc-ride-status.permanently-closed {
  background: rgb(239, 68, 68);
  color: white;
}

.drc-ride-info {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 12px;
}

.drc-wait-time {
  font-size: 1.125rem;
  font-weight: 700;
  color: rgb(34, 197, 94);
}

.drc-refurbishment-info {
  margin-top: 12px;
  padding: 12px;
  background: rgba(249, 115, 22, 0.1);
  border-radius: 8px;
  border-left: 3px solid rgb(249, 115, 22);
}

.drc-refurbishment-info.drc-scheduled {
  background: rgba(59, 130, 246, 0.1);
  border-left-color: rgb(59, 130, 246);
}

.drc-refurb-dates {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(249, 115, 22);
  margin-bottom: 4px;
}

.drc-refurb-scheduled {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(59, 130, 246);
  margin-bottom: 4px;
}

.drc-refurb-reason {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 4px;
  font-style: italic;
}

.drc-refurb-source {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .disney-ride-checker {
    margin: 16px;
    padding: 20px;
  }
  
  .drc-title {
    font-size: 2.5rem;
  }
  
  .drc-height-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 12px;
  }
  
  .drc-rides-grid {
    grid-template-columns: 1fr;
  }
  
  .drc-park-filter {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  
  .drc-filter-btn {
    width: 100%;
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .drc-title {
    font-size: 2rem;
  }
  
  .drc-subtitle {
    font-size: 1rem;
  }
  
  .drc-ride-card {
    padding: 20px;
  }
  
  .drc-height-btn,
  .drc-no-height-btn {
    padding: 14px 16px;
    font-size: 0.9rem;
  }
}

/* Loading animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.drc-loading {
  animation: pulse 2s infinite;
}

/* Focus states for accessibility */
.drc-filter-btn:focus,
.drc-height-btn:focus,
.drc-no-height-btn:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

/* Loading state for real-time updates */
.drc-updating {
  opacity: 0.7;
  pointer-events: none;
}

.drc-updating::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
