/**
 * Weather CSS for Smart Commute
 * Styles for weather information and recommendations
 */

/* Weather Card Styles */
.weather-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  overflow: hidden;
}

.weather-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.weather-title {
  display: flex;
  flex-direction: column;
}

.weather-title h4 {
  margin: 0 0 5px 0;
  font-size: 18px;
  font-weight: 600;
}

.weather-icon img {
  width: 50px;
  height: 50px;
}

.weather-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.weather-main {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.temperature {
  font-size: 32px;
  font-weight: 700;
  margin-right: 15px;
}

.description {
  font-size: 16px;
  text-transform: capitalize;
  color: #666;
}

.weather-details {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.detail {
  flex: 1 1 50%;
  margin-bottom: 8px;
  font-size: 14px;
  color: #555;
}

.detail i {
  margin-right: 5px;
  color: #4285F4;
}

.weather-commute-impact {
  padding: 15px;
  background-color: #f8f9fa;
  border-top: 1px solid #eee;
}

.weather-commute-impact h5 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
}

.impact-detail {
  margin-bottom: 5px;
  font-size: 14px;
}

/* Weather Recommendations */
.weather-recommendations {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px;
  margin-bottom: 20px;
}

.weather-recommendations h5 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.weather-recommendations h5 i {
  margin-right: 8px;
  color: #4285F4;
}

.recommendations-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recommendation-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.recommendation-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.recommendation-item i {
  margin-right: 10px;
  margin-top: 3px;
  flex-shrink: 0;
  color: #4CAF50;
}

/* Forecast Card Styles */
.forecast-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px;
  margin-bottom: 20px;
}

.forecast-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.forecast-header h5 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.forecast-time {
  font-size: 14px;
  color: #666;
}

.forecast-weather {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.forecast-icon {
  margin-right: 10px;
}

.forecast-icon img {
  width: 40px;
  height: 40px;
}

.forecast-temp {
  font-size: 22px;
  font-weight: 600;
  margin-right: 10px;
}

.forecast-desc {
  font-size: 15px;
  color: #666;
  text-transform: capitalize;
}

.forecast-impact {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.forecast-impact .badge {
  margin-right: 10px;
  margin-bottom: 5px;
}

.travel-impact {
  font-size: 14px;
  color: #555;
}

.travel-impact i {
  margin-right: 5px;
}

.forecast-recommendations {
  border-top: 1px solid #eee;
  padding-top: 10px;
}

.forecast-rec-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.forecast-rec-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
  font-size: 14px;
}

.forecast-rec-item i {
  margin-right: 8px;
  margin-top: 3px;
  flex-shrink: 0;
  color: #4CAF50;
}

/* Weather Alert Styles */
.weather-alert {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.alert-icon {
  font-size: 22px;
  margin-right: 15px;
  padding-top: 3px;
}

.alert-content {
  flex: 1;
}

.alert-content h5 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
}

.alert-content p {
  margin-bottom: 10px;
}

.alert-content p:last-child {
  margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .weather-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .weather-icon {
    margin-top: 10px;
  }
  
  .weather-details {
    flex-direction: column;
  }
  
  .detail {
    flex: 1 1 100%;
  }
  
  .forecast-weather {
    flex-wrap: wrap;
  }
}

/* Weather tab panel for recommendation page */
.weather-tab-panel {
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 0 0 8px 8px;
  border-top: none;
}

.weather-toggle {
  cursor: pointer;
  color: #4285F4;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.weather-toggle i {
  margin-right: 5px;
}

.weather-toggle-container {
  text-align: center;
  margin: 5px 0 15px;
}

/* Weather impacts on recommendation card */
.recommendation-card .weather-impact {
  padding: 10px;
  background-color: #f0f8ff;
  border-radius: 6px;
  margin-top: 15px;
}

.weather-impact-title {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 600;
}

.weather-impact-title i {
  margin-right: 5px;
  color: #4285F4;
}

/* Detailed Weather Panel (Based on Screenshot) */
.detailed-weather-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.current-weather-panel {
  height: 100%;
  background-color: #f8f9fa;
}

.location-status {
  font-size: 0.9rem;
  background-color: rgba(164, 219, 207, 0.8) !important;
}

.location-name {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.date-time {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.current-temp {
  margin: 1.5rem 0;
}

.precipitation-panel {
  background-color: #fff;
}

.timeline-bar {
  height: 10px;
  background-color: #f0f0f0;
  border-radius: 5px;
}

.current-time-marker {
  position: absolute;
  top: -5px;
  width: 2px;
  height: 20px;
}

.marker-line {
  width: 2px;
  height: 20px;
  background-color: #4285F4;
}

.hourly-forecast {
  background-color: #fff;
}

.hour-forecast {
  min-width: 70px;
  border-right: 1px solid #eee;
}

.hour-forecast:last-child {
  border-right: none;
}

.daily-forecast {
  background-color: #fff;
}

.daily-forecast-row {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.daily-forecast-row:last-child {
  border-bottom: none;
}

/* Day name styling */
.day-name {
  font-size: 1.1rem !important;
  font-weight: 500 !important;
  min-width: 140px !important;
}

.weather-metrics .metric-item {
  font-size: 0.95rem;
}

.weather-badge .badge {
  font-weight: normal;
}

.precipitation-timeline .timeline-ticks {
  font-size: 0.8rem;
  color: #666;
  padding: 0 5px;
}

.weather-warning {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 5px;
  background-color: rgba(255, 193, 7, 0.2);
  color: #856404;
  margin-bottom: 15px;
}

.progress {
  height: 5px;
  background-color: #e9ecef;
}

/* Weather Chart Styles */
.weather-chart {
  height: 150px;
  margin-top: 15px;
  margin-bottom: 15px;
}

.temp-chart-label {
  font-size: 12px;
  color: #999;
  text-align: center;
} 