/* ==================== RATES PAGE STYLES ==================== */

/* Global Header for subpages */
.global-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  margin-bottom: 24px;
  border-bottom: 2px solid #E5E7EB;
  flex-wrap: wrap;
  gap: 16px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-brand .logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #1F2937;
  text-decoration: none;
}

.header-brand .logo span {
  color: #22C55E;
}

.header-brand .tagline {
  font-size: 13px;
  color: #6B7280;
  padding-left: 12px;
  border-left: 2px solid #E5E7EB;
}

.main-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 10px 16px;
  text-decoration: none;
  color: #4B5563;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s;
}

.main-nav a:hover {
  background: #F3F4F6;
  color: #1F2937;
}

.main-nav a.active {
  background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
  color: white;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 18px;
}

/* Rates Index Page */
.rates-index {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.rates-index .page-header {
  text-align: center;
  margin-bottom: 40px;
}

.rates-index .page-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  color: #1F2937;
  margin-bottom: 12px;
}

.rates-index .page-header p {
  color: #6B7280;
  font-size: 16px;
}

/* Rates Grid */
.rates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.rate-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
}

.rate-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
  border-color: #22C55E;
}

.rate-card-flags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 32px;
  margin-bottom: 16px;
}

.rate-card-flags .arrow {
  font-size: 20px;
  color: #22C55E;
  animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}

.rate-card-pair {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #1F2937;
  text-align: center;
  margin-bottom: 8px;
}

.rate-card-value {
  font-size: 28px;
  font-weight: 700;
  color: #22C55E;
  text-align: center;
  margin-bottom: 8px;
}

.rate-card-change {
  font-size: 14px;
  text-align: center;
  font-weight: 500;
}

.rate-card-change.positive {
  color: #16A34A;
}

.rate-card-change.negative {
  color: #DC2626;
}

/* Individual Rate Page */
.rate-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.rate-page-header {
  text-align: center;
  margin-bottom: 32px;
}

.rate-page-flags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 48px;
  margin-bottom: 16px;
}

.rate-page-flags .arrow {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  animation: arrowPulse 2s ease-in-out infinite;
}

.rate-page-pair {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 8px;
}

.rate-page-value {
  font-size: 48px;
  font-weight: 700;
  color: #22C55E;
  margin-bottom: 8px;
}

.rate-page-change {
  font-size: 18px;
  color: #6B7280;
}

/* Content Sections */
.rate-content {
  display: grid;
  gap: 24px;
}

.rate-content .card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 24px;
}

.rate-content .card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  color: #1F2937;
  margin-bottom: 16px;
}

.rate-content .card p {
  color: #4B5563;
  line-height: 1.7;
  margin-bottom: 12px;
}

/* Footer for subpages */
.subpage-footer {
  margin-top: 60px;
  padding: 32px 24px;
  background: #1F2937;
  border-radius: 16px;
  color: #E5E7EB;
  text-align: center;
}

.subpage-footer .footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.subpage-footer .footer-links a {
  color: #D1D5DB;
  text-decoration: none;
  font-size: 14px;
}

.subpage-footer .footer-links a:hover {
  color: #22C55E;
}

.subpage-footer p {
  font-size: 12px;
  color: #6B7280;
}

/* Responsive */
@media (max-width: 768px) {
  .global-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  
  .header-brand {
    justify-content: center;
  }
  
  .header-brand .tagline {
    display: none;
  }
  
  .main-nav {
    justify-content: center;
    gap: 4px;
  }
  
  .main-nav a {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .nav-toggle {
    display: none; /* Keep nav visible on mobile for now */
  }
  
  .rates-index .page-header h1 {
    font-size: 28px;
  }
  
  .rate-page-flags {
    font-size: 36px;
  }
  
  .rate-page-pair {
    font-size: 28px;
  }
  
  .rate-page-value {
    font-size: 36px;
  }
}
