/* ===================================
   الأقسام - Sections
   =================================== */

/* Hero Section */
.hero-section {
  text-align: center;
  margin: 0 auto var(--spacing-xxl);
  max-width: 900px;
  animation: fadeIn 1s ease;
}

.hero-title {
  font-size: var(--font-size-title);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
  text-shadow: var(--shadow-sm);
}

.hero-subtitle {
  font-size: var(--font-size-large);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  font-weight: var(--font-weight-medium);
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.nav-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* City Selector */
.city-selector {
  max-width: 500px;
  margin: 0 auto 50px;
}

/* Section Title */
.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: var(--font-weight-bold);
  margin-bottom: 35px;
  text-shadow: var(--shadow-sm);
}

/* Currency List */
.currency-list {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  margin-bottom: 60px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.list-header {
  display: grid;
  grid-template-columns: 150px 200px 1fr 1fr 140px;
  padding: var(--spacing-lg) var(--spacing-xl);
  background: rgba(59, 130, 246, 0.15);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
  border-bottom: 2px solid rgba(59, 130, 246, 0.3);
}

.header-cell {
  text-align: center;
}

.header-cell:first-child {
  text-align: right;
}

.currency-item {
  display: grid;
  grid-template-columns: 150px 200px 1fr 1fr 140px;
  padding: 25px var(--spacing-xl);
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-fast);
}

.currency-item:hover {
  background: rgba(59, 130, 246, 0.08);
  transform: translateX(-5px);
  border-right: 3px solid rgba(59, 130, 246, 0.5);
}

.currency-item:last-child {
  border-bottom: none;
}

.currency-name {
  text-align: right;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: #d4e3ff;
}

.currency-city {
  text-align: right;
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
  color: rgba(59, 130, 246, 0.9);
  padding: 5px 12px;
  background: rgba(59, 130, 246, 0.15);
  border-radius: 8px;
  display: inline-block;
}

.currency-value {
  text-align: center;
  font-size: var(--font-size-large);
  font-weight: var(--font-weight-bold);
  transition: all var(--transition-fast);
}

.currency-item:hover .currency-value {
  transform: scale(1.05);
}

.value-up {
  color: var(--color-success);
}

.value-down {
  color: var(--color-danger);
}

.chart-container {
  position: relative;
  width: 130px;
  height: 60px;
  margin: 0 auto;
}

.chart-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 0;
  transition: all var(--transition-normal);
}

.chart-image.show-chart {
  animation: chartAppear 0.4s ease;
}

/* Download Section */
.download-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  border-radius: 30px;
  padding: 60px var(--spacing-xxl);
  text-align: center;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.download-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: pulse 15s infinite;
}

.download-content {
  position: relative;
  z-index: 1;
}

.phone-icon-container {
  margin-bottom: 25px;
}

.download-title {
  font-size: var(--font-size-title);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-md);
  line-height: 1.3;
}

.download-subtitle {
  font-size: var(--font-size-large);
  margin-bottom: var(--spacing-sm);
  opacity: 0.95;
}

.download-features {
  font-size: var(--font-size-base);
  margin-bottom: 35px;
  opacity: 0.9;
}

.qr-section {
  margin-top: var(--spacing-xxl);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .list-header,
  .currency-item {
    grid-template-columns: 70px 1fr 75px 75px 80px;
    gap: var(--spacing-xs);
    padding: var(--spacing-lg) var(--spacing-sm);
    font-size: 12px;
  }

  .currency-item:hover {
    transform: translateX(-3px);
  }

  .chart-container {
    width: 70px;
    height: 35px;
  }

  .currency-value {
    font-size: 14px;
  }

  .currency-name {
    font-size: 13px;
  }
  
  .currency-city {
    font-size: 11px;
    padding: 3px 6px;
  }

  .download-section {
    padding: var(--spacing-xxl) 25px;
  }

  .download-title {
    font-size: var(--font-size-xlarge);
  }
  
  .hero-title {
    font-size: var(--font-size-xlarge);
  }
}