/* ===== WEATHER PROTOCOLS STYLING ===== */

/* Main weather section container */
.weather-protocols {
  margin: 3rem 0;
  padding: 0;
}

.weather-protocols-grid {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .weather-protocols-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Individual weather card styling */
.weather-card {
  background: linear-gradient(135deg, var(--card) 0%, #1a2332 100%);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 2px solid transparent;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.weather-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Weather card header with icon */
.weather-card-header {
  padding: 2rem 2rem 1.5rem;
  text-align: center;
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.weather-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.weather-card h4 {
  margin: 0;
  font-size: var(--s1);
  font-weight: 700;
  color: var(--text);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Weather card body */
.weather-card-body {
  padding: 2rem;
}

.weather-problem {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.8rem;
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid;
}

.weather-problem strong {
  display: block;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.weather-problem p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: var(--s-1);
}

.weather-protocol {
  margin-top: 1.5rem;
}

.weather-protocol > strong {
  display: block;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.weather-protocol ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.weather-protocol li {
  padding: 0.8rem 1rem 0.8rem 3rem;
  margin-bottom: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.6rem;
  position: relative;
  transition: all 0.3s ease;
  font-size: var(--s-1);
  line-height: 1.5;
  color: var(--text);
  border-left: 3px solid;
}

.weather-protocol li:hover {
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.06);
}

.weather-protocol li::before {
  content: '✓';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 900;
  font-size: 1.1rem;
}

.weather-protocol li:last-child {
  margin-bottom: 0;
}

/* Rain card - blue theme */
.weather-card.rain-card {
  border-color: rgba(59, 130, 246, 0.3);
}

.weather-card.rain-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

.weather-card.rain-card .weather-card-header {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(29, 78, 216, 0.1) 100%);
}

.weather-card.rain-card .weather-problem {
  border-left-color: #3b82f6;
}

.weather-card.rain-card .weather-protocol li {
  border-left-color: #60a5fa;
}

.weather-card.rain-card .weather-protocol li::before {
  color: #3b82f6;
}

/* Heat card - orange theme */
.weather-card.heat-card {
  border-color: rgba(249, 115, 22, 0.3);
}

.weather-card.heat-card:hover {
  border-color: #f97316;
  box-shadow: 0 20px 40px rgba(249, 115, 22, 0.3);
}

.weather-card.heat-card .weather-card-header {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(234, 88, 12, 0.1) 100%);
}

.weather-card.heat-card .weather-problem {
  border-left-color: #f97316;
}

.weather-card.heat-card .weather-protocol li {
  border-left-color: #fb923c;
}

.weather-card.heat-card .weather-protocol li::before {
  color: #f97316;
}

/* Winter card - ice blue theme */
.weather-card.winter-card {
  border-color: rgba(14, 165, 233, 0.3);
}

.weather-card.winter-card:hover {
  border-color: #0ea5e9;
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.3);
}

.weather-card.winter-card .weather-card-header {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(2, 132, 199, 0.1) 100%);
}

.weather-card.winter-card .weather-problem {
  border-left-color: #0ea5e9;
}

.weather-card.winter-card .weather-protocol li {
  border-left-color: #38bdf8;
}

.weather-card.winter-card .weather-protocol li::before {
  color: #0ea5e9;
}

/* Weather conclusion box */
.weather-conclusion {
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(42, 157, 143, 0.1) 0%, rgba(69, 123, 157, 0.1) 100%);
  border-radius: var(--radius);
  border: 2px solid var(--brand2);
  position: relative;
  overflow: hidden;
}

.weather-conclusion::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand2) 0%, var(--accent) 100%);
}

.weather-conclusion strong {
  display: block;
  color: var(--brand2);
  font-size: var(--s1);
  margin-bottom: 1rem;
  font-weight: 700;
}

.weather-conclusion p {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
  font-size: var(--s0);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .weather-card {
    margin-bottom: 1.5rem;
  }
  
  .weather-icon {
    font-size: 3rem;
    margin-bottom: 0.8rem;
  }
  
  .weather-card h4 {
    font-size: var(--s0);
  }
  
  .weather-card-header {
    padding: 1.5rem 1.5rem 1rem;
  }
  
  .weather-card-body {
    padding: 1.5rem;
  }
  
  .weather-problem {
    padding: 0.8rem 1rem;
  }
  
  .weather-protocol li {
    padding: 0.6rem 0.8rem 0.6rem 2.5rem;
    font-size: 0.9rem;
  }
  
  .weather-protocol li::before {
    left: 0.8rem;
    font-size: 1rem;
  }
  
  .weather-conclusion {
    padding: 1.5rem;
    margin-top: 2rem;
  }
  
  .weather-conclusion strong {
    font-size: var(--s0);
  }
}

@media (max-width: 480px) {
  .weather-protocols-grid {
    gap: 1.5rem;
  }
  
  .weather-icon {
    font-size: 2.5rem;
  }
  
  .weather-card-header {
    padding: 1rem 1rem 0.8rem;
  }
  
  .weather-card-body {
    padding: 1rem;
  }
  
  .weather-problem {
    padding: 0.6rem 0.8rem;
    margin-bottom: 1rem;
  }
  
  .weather-protocol {
    margin-top: 1rem;
  }
  
  .weather-protocol > strong {
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
  }
  
  .weather-protocol li {
    padding: 0.5rem 0.6rem 0.5rem 2.2rem;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
  }
  
  .weather-conclusion {
    padding: 1rem;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .weather-card,
  .weather-protocol li,
  .weather-icon {
    animation: none;
    transition: none;
  }
  
  .weather-card:hover {
    transform: none;
  }
  
  .weather-protocol li:hover {
    transform: none;
  }
}
