/*
Theme Name: Nassau Bus Maps
Description: Interactive bus route mapping theme for Nassau, Bahamas public transportation with admin route management
Version: 1.0
Author: Your Name
License: GPL v2 or later
*/

/* Import Tailwind CSS */
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');

/* Custom theme styles */
:root {
  --primary-blue: #3b82f6;
  --primary-green: #10b981;
  --primary-purple: #8b5cf6;
  --dark-bg: #1f2937;
  --dark-card: #374151;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  padding: 0;
}

.nassau-bus-app {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Dark mode styles */
.dark .nassau-bus-app {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

/* Route Cards Grid */
#routes-grid {
  min-height: 400px;
}

.route-card {
  transition: all 0.3s ease;
  cursor: pointer;
  border-left: 4px solid transparent;
}

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

.route-card.selected {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.15);
  border-left-color: var(--primary-blue);
}

.dark .route-card.selected {
  border-left-color: #60a5fa;
}

/* Route Line Visualization */
.route-line-viz {
  height: 40px;
  background: #f8fafc;
  border-radius: 8px;
  margin: 12px 0;
  position: relative;
  overflow: hidden;
}

.dark .route-line-viz {
  background: #374151;
}

.route-line {
  position: absolute;
  top: 50%;
  left: 8px;
  right: 8px;
  height: 4px;
  border-radius: 2px;
  transform: translateY(-50%);
}

.route-stops-indicator {
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 50%;
  left: 8px;
  right: 8px;
  transform: translateY(-50%);
  z-index: 1;
}

.route-stop-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Route Badge */
.route-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 12px;
  color: white;
  font-size: 12px;
  font-weight: 600;
}

/* Text truncation utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Loading animations */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Responsive grid adjustments */
@media (max-width: 1536px) {
  #routes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  #routes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 640px) {
  #routes-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .route-card {
    margin-bottom: 0;
    padding: 16px;
  }
  
  .route-line-viz {
    height: 35px;
    margin: 8px 0;
  }
  
  .route-line {
    height: 3px;
  }
  
  .route-stop-dot {
    width: 6px;
    height: 6px;
    border-width: 1px;
  }
  
  .route-badge {
    padding: 6px 10px;
    font-size: 11px;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .nassau-bus-app {
    padding: 8px;
  }
  
  .stats-bar {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .route-card {
    padding: 12px;
  }
  
  .route-line-viz {
    height: 30px;
    margin: 6px 0;
  }
}

/* Route list styles */
.route-list {
  max-height: 500px;
  overflow-y: auto;
}

.route-item {
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border-left: 4px solid transparent;
}

.route-item:hover {
  background: #f1f5f9;
  transform: translateX(2px);
}

.dark .route-item:hover {
  background: #4b5563;
}

/* Route Details Section (No Modal Approach) */
.route-details-section {
  animation: slideIn 0.3s ease-out;
  margin-top: 24px;
}

.route-details-section.hidden {
  display: none;
}

.route-details-section .route-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.route-details-section .route-visualization {
  background: #f8fafc;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  position: relative;
}

.dark .route-details-section .route-visualization {
  background: #374151;
}

.route-details-section .route-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.route-details-section .stops-container {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 8px;
}

.route-details-section .stop-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.route-details-section .stop-item:hover {
  background: #f1f5f9;
}

.dark .route-details-section .stop-item:hover {
  background: #4b5563;
}

.route-details-section .stop-number {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  color: white;
  flex-shrink: 0;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stats bar styles */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--primary-blue);
}

.dark .stat-card {
  background: #374151;
  color: white;
}

/* Responsive styles */
@media (max-width: 768px) {
  .nassau-bus-app {
    padding: 10px;
  }
  
  .map-container {
    height: 400px;
  }
  
  .stats-bar {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* WordPress specific overrides */
.site-header,
.site-footer {
  display: none;
}

#wpadminbar {
  display: none !important;
}

html {
  margin-top: 0 !important;
}