:root {
  --bg_main: #22A699;
  --text_light: #fff;
  --text_med: #53627c;
  --text_dark: #1e2432;
  --red: #F24C3D;
  --darkred: #F29727;
  --orange: #F2BE22;
  --card-bg: #ffffff;
  --card-shadow: rgba(0, 0, 0, 0.1);
  --light-green: #E8F5F3;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #22A699 0%, #1a8278 100%);
  color: var(--text_dark);
  min-height: 100vh;
  line-height: 1.6;
}

.header-gradient {
  background: linear-gradient(135deg, #22A699 0%, #1a8278 100%);
  padding: 3rem 1.5rem;
  text-align: center;
  color: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.subtitle {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.version-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  backdrop-filter: blur(10px);
}

.container {
  max-width: 1200px;
  margin: -2rem auto 2rem;
  padding: 0 1.5rem 2rem;
}

.back-button {
  background: linear-gradient(135deg, var(--darkred) 0%, var(--red) 100%);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(242, 76, 61, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.back-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 76, 61, 0.4);
}

.arrow {
  font-size: 1.2rem;
}

.section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.8rem;
  color: white;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Info Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.info-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.8rem;
  box-shadow: 0 4px 20px var(--card-shadow);
  transition: all 0.3s ease;
  border-left: 4px solid var(--bg_main);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.info-card h3 {
  font-size: 1.3rem;
  color: var(--text_dark);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.info-card p {
  color: var(--text_med);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.badge-green {
  background: #d4edda;
  color: #155724;
}

.badge-blue {
  background: #cce5ff;
  color: #004085;
}

.badge-orange {
  background: #fff3cd;
  color: #856404;
}

/* API Cards */
.api-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.api-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px var(--card-shadow);
  transition: all 0.3s ease;
  border-top: 4px solid var(--bg_main);
  display: flex;
  flex-direction: column;
}

.api-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.api-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.2rem;
}

.api-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.logo-placeholder {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.imgw-logo {
  background: linear-gradient(135deg, #0066cc, #0052a3);
}

.openweather-logo {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
}

.windy-logo {
  background: linear-gradient(135deg, #e84d68, #c92a49);
}

.api-card h3 {
  font-size: 1.4rem;
  color: var(--text_dark);
  margin-bottom: 0.5rem;
  text-align: center;
  font-weight: 700;
}

.api-source {
  color: var(--text_med);
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.api-features {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
  flex: 1;
}

.api-features li {
  padding: 0.6rem 0;
  color: var(--text_dark);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.api-features li:last-child {
  border-bottom: none;
}

.api-link {
  display: inline-block;
  color: var(--bg_main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
  padding: 0.8rem;
  background: var(--light-green);
  border-radius: 8px;
}

.api-link:hover {
  background: var(--bg_main);
  color: white;
  transform: translateX(5px);
}

/* Version Cards */
.version-card {
  background: var(--card-bg);
  border-radius: 12px;
  margin-bottom: 1.2rem;
  overflow: hidden;
  box-shadow: 0 2px 12px var(--card-shadow);
  transition: all 0.3s ease;
  border-left: 4px solid var(--bg_main);
}

.version-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.version-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.8rem;
  cursor: pointer;
  background: linear-gradient(to right, rgba(34, 166, 153, 0.05), transparent);
  transition: background 0.3s ease;
}

.version-header:hover {
  background: linear-gradient(to right, rgba(34, 166, 153, 0.1), transparent);
}

.version-info h3 {
  font-size: 1.4rem;
  color: var(--bg_main);
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.version-date {
  font-size: 0.9rem;
  color: var(--text_med);
  font-weight: 500;
}

.toggle-icon {
  font-size: 1.2rem;
  color: var(--text_med);
  transition: transform 0.3s ease;
}

.version-content {
  padding: 0 1.8rem 1.8rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Feature List */
.feature-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.feature-list li {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(34, 166, 153, 0.1), rgba(34, 166, 153, 0.05));
  border-radius: 8px;
}

.status-planned {
  background: linear-gradient(135deg, rgba(242, 190, 34, 0.1), rgba(242, 190, 34, 0.05));
}

.status-beta {
  background: linear-gradient(135deg, rgba(34, 166, 153, 0.15), rgba(34, 166, 153, 0.08));
}

.status-research {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(102, 126, 234, 0.05));
}

.status-cancelled {
  background: linear-gradient(135deg, rgba(242, 76, 61, 0.1), rgba(242, 76, 61, 0.05));
  opacity: 0.6;
}

.feature-text {
  flex: 1;
}

.feature-text strong {
  display: block;
  color: var(--text_dark);
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.feature-text p {
  color: var(--text_med);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--bg_main), var(--orange));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0.5rem;
  width: 20px;
  height: 20px;
  background: white;
  border: 4px solid var(--bg_main);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.timeline-item.future::before {
  border-color: var(--orange);
}

.timeline-date {
  background: var(--card-bg);
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px var(--card-shadow);
  display: inline-block;
}

.quarter {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--bg_main);
  margin-bottom: 0.2rem;
}

.timeline-item.future .quarter {
  color: var(--orange);
}

.month {
  font-size: 0.85rem;
  color: var(--text_med);
  font-weight: 500;
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px var(--card-shadow);
  display: flex;
  gap: 1rem;
  transition: all 0.3s ease;
  border-left: 3px solid var(--bg_main);
}

.feature-card:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

.footer p {
  margin: 0.3rem 0;
  opacity: 0.9;
}

.footer-credits {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content h1 {
    font-size: 1.8rem;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .container {
    padding: 0 1rem 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .version-header {
    padding: 1.2rem;
  }

  .version-content {
    padding: 0 1.2rem 1.2rem;
  }

  .version-info h3 {
    font-size: 1.2rem;
  }

  .feature-list li {
    flex-direction: column;
    gap: 0.5rem;
  }

  .timeline {
    padding-left: 1rem;
  }

  .timeline-item {
    padding-left: 1.5rem;
  }

  .timeline-item::before {
    left: -1.75rem;
    width: 16px;
    height: 16px;
  }

  .feature-card {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .header-gradient {
    padding: 2rem 1rem;
  }

  .header-content h1 {
    font-size: 1.5rem;
  }

  .back-button {
    width: 100%;
    justify-content: center;
  }

  .api-card {
    padding: 1.5rem;
  }

  .api-logo {
    width: 60px;
    height: 60px;
    font-size: 1rem;
  }
}
