/* ============================================================
   Homepage — Eco Green + Yellow theme
   ============================================================ */

.txt-green { color: var(--color-primary); }
.txt-yellow { color: var(--color-accent-dark); }

/* ===== Hero ===== */
.eco-hero {
  position: relative;
  padding: 130px 0 64px;
  background:
    radial-gradient(1200px 400px at 50% -10%, rgba(25,135,84,0.10), transparent 60%),
    linear-gradient(rgba(15,81,50,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,81,50,0.04) 1px, transparent 1px),
    #ffffff;
  background-size: auto, 56px 56px, 56px 56px, auto;
  border-bottom: 1px solid rgba(15,81,50,0.08);
}
.eco-hero-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.eco-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.5px;
  color: var(--color-primary);
  background: var(--color-primary-light);
  border: 1px solid rgba(15,81,50,0.15);
  padding: 6px 16px; border-radius: 999px; margin-bottom: 20px;
}
.eco-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-secondary); box-shadow: 0 0 0 4px rgba(25,135,84,0.2); animation: ecoPulse 2s infinite; }
@keyframes ecoPulse { 0%,100% { box-shadow: 0 0 0 3px rgba(25,135,84,0.25);} 50% { box-shadow: 0 0 0 7px rgba(25,135,84,0);} }

.eco-hero-title {
  font-family: var(--font-heading);
  font-size: 3rem; font-weight: 800; line-height: 1.12;
  color: var(--color-text-title); letter-spacing: -0.02em; margin: 0 0 16px;
}
.eco-hero-sub { font-size: 17px; line-height: 1.6; color: var(--color-text-muted); max-width: 620px; margin: 0 auto 28px; }

.eco-search {
  display: flex; gap: 6px; max-width: 560px; margin: 0 auto 26px;
  background: #fff; border: 1.5px solid rgba(15,81,50,0.15);
  border-radius: 999px; padding: 6px; box-shadow: 0 12px 34px rgba(15,81,50,0.08);
  transition: var(--transition-smooth);
}
.eco-search:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 4px var(--color-focus-ring); }
.eco-search input { flex: 1; border: none; outline: none; background: transparent; padding: 0 18px; font-size: 15px; color: var(--color-text-title); font-family: var(--font-body); }
.eco-search button {
  border: none; cursor: pointer; white-space: nowrap;
  padding: 0 22px; height: 46px; border-radius: 999px;
  background: var(--color-primary); color: #fff; font-weight: 800; font-size: 14px;
  transition: var(--transition-smooth); box-shadow: 0 4px 12px rgba(15,81,50,0.25);
}
.eco-search button:hover { background: var(--color-primary-dark); transform: translateY(-1px); }

.eco-stats { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.eco-stat {
  display: flex; flex-direction: column; align-items: center;
  background: #fff; border: 1px solid var(--color-border); border-radius: 14px;
  padding: 12px 22px; min-width: 92px;
}
.eco-stat strong { font-size: 22px; font-weight: 800; color: var(--color-primary); font-family: var(--font-heading); }
.eco-stat span { font-size: 12px; color: var(--color-text-muted); font-weight: 600; }

/* ===== Ticker (Stock Market / LME LED Theme) ===== */
.eco-ticker {
  background: #05070c; /* Pure deep slate black */
  border-top: 2px solid #1e293b;
  border-bottom: 2px solid #1e293b;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  padding: 10px 0;
  position: relative;
}
.eco-ticker::before, .eco-ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}
.eco-ticker::before {
  left: 0;
  background: linear-gradient(to right, #05070c 20%, rgba(5, 7, 12, 0));
}
.eco-ticker::after {
  right: 0;
  background: linear-gradient(to left, #05070c 20%, rgba(5, 7, 12, 0));
}
.eco-ticker-track {
  display: flex;
  gap: 0; /* Continuous stream */
  width: max-content;
  animation: ecoMarquee 35s linear infinite;
}
.eco-ticker-track:hover {
  animation-play-state: paused;
}
.eco-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 6px 28px;
  white-space: nowrap;
  position: relative;
  transition: background-color 0.2s ease;
}
/* Stock ticker column divider */
.eco-ticker-item::after {
  content: "";
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}
.tk-name {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
  font-family: var(--font-heading);
}
.tk-price {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.2px;
}
.tk-change-badge {
  font-size: 12px;
  font-weight: 800;
  padding: 0;
  background: transparent !important;
  border: none !important;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
}
/* Trend-based color themes for stock market ticker */
.eco-ticker-item.up .tk-price {
  color: #10b981;
  text-shadow: 0 0 5px rgba(16, 185, 129, 0.4);
}
.eco-ticker-item.up .tk-change-badge {
  color: #10b981;
  text-shadow: 0 0 5px rgba(16, 185, 129, 0.4);
}
.eco-ticker-item.down .tk-price {
  color: #ef4444;
  text-shadow: 0 0 5px rgba(239, 68, 68, 0.4);
}
.eco-ticker-item.down .tk-change-badge {
  color: #ef4444;
  text-shadow: 0 0 5px rgba(239, 68, 68, 0.4);
}
.eco-ticker-item.flat .tk-price {
  color: #94a3b8;
}
.eco-ticker-item.flat .tk-change-badge {
  color: #64748b;
}
.eco-ticker-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
@keyframes ecoMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Sections ===== */
.eco-section { padding: 64px 0; }
.eco-section.alt { background: var(--color-bg-main); }
.eco-narrow { max-width: 820px; }
.eco-head { text-align: center; margin-bottom: 36px; }
.eco-head h2 { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: var(--color-text-title); margin: 0 0 8px; letter-spacing: -0.01em; }
.eco-head p { font-size: 16px; color: var(--color-text-muted); max-width: 560px; margin: 0 auto; }
.eco-center { text-align: center; margin-top: 30px; }

.eco-btn-outline {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 14px;
  color: var(--color-primary); background: var(--color-primary-light);
  border: 1.5px solid rgba(15,81,50,0.25); padding: 11px 24px; border-radius: 999px;
  transition: var(--transition-smooth);
}
.eco-btn-outline:hover { background: var(--color-primary); color: #fff; transform: translateY(-2px); }

/* City grid */
.eco-city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.eco-city-card {
  display: flex; flex-direction: column; gap: 4px; position: relative;
  text-decoration: none; padding: 18px 20px; border-radius: 14px;
  background: #fff; border: 1.5px solid var(--color-border);
  transition: var(--transition-smooth);
}
.eco-city-card:hover { transform: translateY(-3px); border-color: var(--color-secondary); box-shadow: 0 12px 28px rgba(15,81,50,0.10); }
.ecc-name { font-size: 17px; font-weight: 700; color: var(--color-text-title); }
.ecc-meta { font-size: 13px; color: var(--color-text-muted); }
.ecc-arrow { position: absolute; top: 16px; right: 18px; color: var(--color-secondary); font-weight: 800; transition: transform 0.2s; }
.eco-city-card:hover .ecc-arrow { transform: translateX(3px); }

/* Material grid */
.eco-mat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.eco-mat-card {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none;
  padding: 20px; border-radius: 16px; background: #fff;
  border: 1.5px solid var(--color-border); transition: var(--transition-smooth);
}
.eco-mat-card:hover { transform: translateY(-4px); border-color: var(--color-accent); box-shadow: 0 14px 30px rgba(0,168,107,0.14); }
.emc-icon { font-size: 30px; }
.emc-name { font-size: 16px; font-weight: 700; color: var(--color-text-title); }
.emc-price { font-size: 20px; font-weight: 800; color: var(--color-primary); }
.emc-price small { font-size: 12px; font-weight: 600; color: var(--color-text-muted); }
.emc-link { font-size: 13px; font-weight: 700; color: var(--color-accent-dark); margin-top: 2px; }

/* Steps */
.eco-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.eco-step { text-align: center; background: #fff; border: 1.5px solid var(--color-border); border-radius: 16px; padding: 28px 22px; transition: var(--transition-smooth); }
.eco-step:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(15,81,50,0.08); border-color: var(--color-secondary); }
.es-num { width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 800; font-size: 18px; color: #fff; background: var(--color-primary); }
.eco-step h3 { font-size: 17px; font-weight: 700; color: var(--color-text-title); margin: 0 0 8px; }
.eco-step p { font-size: 14px; color: var(--color-text-muted); line-height: 1.55; margin: 0; }

/* Trust */
.eco-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.eco-trust-card { background: #fff; border: 1.5px solid var(--color-border); border-radius: 16px; padding: 28px 24px; text-align: center; transition: var(--transition-smooth); }
.eco-trust-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(15,81,50,0.08); }
.et-icon { font-size: 32px; margin-bottom: 12px; }
.eco-trust-card h3 { font-size: 17px; font-weight: 700; color: var(--color-text-title); margin: 0 0 8px; }
.eco-trust-card p { font-size: 14px; color: var(--color-text-muted); line-height: 1.55; margin: 0; }

/* Prose */
.eco-prose p { font-size: 15.5px; line-height: 1.75; color: var(--color-text-body); margin: 0 0 16px; }
.eco-prose a { color: var(--color-primary); font-weight: 600; }

/* CTA */
.eco-cta-wrap { padding: 20px 0 64px; }
.eco-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(135deg, #0F5132 0%, #198754 100%);
  border-radius: 22px; padding: 36px 40px; box-shadow: 0 20px 40px rgba(15, 81, 50, 0.20);
}
.eco-cta h2 { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 800; color: #fff; margin: 0 0 6px; }
.eco-cta h2 span { color: #A7F3D0; }
.eco-cta p { color: rgba(255,255,255,0.9); font-size: 15px; margin: 0; }
.eco-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }.eco-btn-ghost {
  display: inline-flex; align-items: center; height: 38px; padding: 0 22px;
  border-radius: 999px; text-decoration: none; font-weight: 800; font-size: 13px;
  color: #fff; background: rgba(255,255,255,0.12); border: 1.5px solid rgba(255,255,255,0.35);
  transition: var(--transition-smooth);
}
.eco-btn-ghost:hover { background: rgba(255,255,255,0.22); }

/* Responsive */
@media (max-width: 900px) {
  .eco-steps, .eco-trust { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .eco-hero-title { font-size: 2rem; }
  .eco-search { flex-direction: column; border-radius: 18px; }
  .eco-search button { height: 44px; }
  .eco-cta { padding: 28px 24px; }
}

/* ===== Price Chart Section ===== */
.eco-chart-section {
  background: var(--color-bg-alt, #fafbfc);
  padding: 64px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.eco-chart-section .eco-head h2 {
  color: var(--color-text-title);
}
.eco-chart-section .eco-head p {
  color: var(--color-text-muted);
}

.eco-chart-container {
  background: #0f1322; /* Deep slate navy */
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  padding: 32px;
  position: relative;
}

.eco-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 28px;
}

.eco-chart-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#chart-product-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.live-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-dot-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseLive 1.8s infinite;
}

@keyframes pulseLive {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

#chart-city-title {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.eco-chart-stats {
  display: flex;
  gap: 32px;
}

.chart-stat-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chart-stat-box .lbl {
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.chart-stat-box .val {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

.chart-stat-box .val.up {
  color: #10b981;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.chart-stat-box .val.down {
  color: #f43f5e;
  text-shadow: 0 0 10px rgba(244, 63, 94, 0.2);
}

.eco-chart-toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
}

.eco-chart-selectors {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.selector-btn {
  background: transparent;
  border: none;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.selector-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.02);
}

.selector-btn.active {
  background: #10b981; /* Neon emerald green active */
  color: #05070c;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.eco-time-selectors {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.time-btn {
  background: transparent;
  border: none;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.time-btn:hover {
  color: #ffffff;
}

.time-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.chart-canvas-wrap {
  position: relative;
  height: 400px;
  width: 100%;
}

.chart-loader {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 19, 34, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  border-radius: 20px;
}

.chart-loader.active {
  opacity: 1;
  pointer-events: auto;
}

.chart-loader span {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 600;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(16, 185, 129, 0.1);
  border-top-color: #10b981;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 991px) {
  .eco-chart-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .eco-chart-toolbar {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .eco-chart-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .eco-chart-selectors, .eco-time-selectors {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }
  .selector-btn {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
  }
  .time-btn {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
  }
}

@media (max-width: 640px) {
  .eco-chart-container {
    padding: 16px;
    border-radius: 16px;
  }
  .selector-btn {
    padding: 6px 8px;
    font-size: 12px;
  }
  .time-btn {
    padding: 6px 8px;
    font-size: 12px;
  }
  .eco-chart-stats {
    width: 100%;
    justify-content: space-between;
  }
  .hide-mobile {
    display: none !important;
  }
  .chart-canvas-wrap {
    height: 300px;
  }
}
