/**
 * Rate Page Styles
 */

/* Breadcrumb styles moved to main_styles.css */

/* Page Container */
.rate-page-container {
  padding: 40px 0 80px;
  background: #f8f9fa;
  min-height: 70vh;
}

/* Rate Header */
.rate-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #eee;
}

.rate-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.rate-date {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rate-date i {
  color: #14bdee;
}

/* Rate Display Card */
.rate-display-card {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border: 2px solid #14bdee;
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(20, 189, 238, 0.1);
}

.rate-main-value {
  margin-bottom: 20px;
}

.rate-label {
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.rate-amount {
  font-size: 4rem;
  font-weight: 700;
  color: #14bdee;
  line-height: 1;
  margin-bottom: 8px;
}

.rate-unit {
  font-size: 1.1rem;
  color: #888;
}

.rate-mcx {
  padding-top: 20px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.mcx-label {
  font-size: 0.85rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mcx-value {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a1a2e;
}

/* Purity Breakdown */
.purity-breakdown {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.purity-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.purity-label {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 8px;
}

.purity-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #14bdee;
}

/* Chart Section */
.rate-chart-section {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 20px 0;
}

.chart-container {
  position: relative;
  height: 300px;
  width: 100%;
}

/* Info Section */
.rate-info-section {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.rate-info-content {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.75;
}

.rate-info-content p {
  margin-bottom: 15px;
}

.rate-info-content strong {
  color: #14bdee;
}

/* Sidebar */
.rate-sidebar {
  position: sticky;
  top: 20px;
}

.sidebar-section {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.city-rates-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.city-rate-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: background 0.2s;
}

.city-rate-item:hover {
  background: #e8f7fc;
}

.city-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a1a2e;
}

.city-rate {
  font-size: 0.9rem;
  font-weight: 600;
  color: #14bdee;
}

.quick-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-link {
  display: block;
  padding: 12px 15px;
  background: #f8f9fa;
  border-radius: 8px;
  text-decoration: none;
  color: #1a1a2e;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.quick-link:hover {
  background: #14bdee;
  color: #fff;
  text-decoration: none;
}

/* Error State */
.rate-error {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 12px;
}

.rate-error i {
  font-size: 4rem;
  color: #ddd;
  margin-bottom: 20px;
}

.rate-error h2 {
  font-size: 1.5rem;
  color: #1a1a2e;
  margin-bottom: 10px;
}

.rate-error p {
  color: #666;
  margin-bottom: 25px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 25px;
  background: #14bdee;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
}

.btn-back:hover {
  background: #0ea5d3;
  color: #fff;
  text-decoration: none;
}

/* Loading */
.loading-container {
  text-align: center;
  padding: 60px 20px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #14bdee;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.no-data {
  text-align: center;
  color: #999;
  font-size: 0.9rem;
  padding: 20px;
}

/* Responsive */
@media (max-width: 992px) {
  .rate-sidebar {
    position: static;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .rate-title {
    font-size: 1.5rem;
  }
  
  .rate-amount {
    font-size: 2.5rem;
  }
  
  .purity-breakdown {
    grid-template-columns: 1fr;
  }
  
  .rate-display-card {
    padding: 25px;
  }
}

