/* ============================================================
   MARKETS PAGES — Shared Styles
   Used by: forex.html, commodities.html, indices.html,
            shares.html, metals.html
   ============================================================ */

/* ---- Breadcrumb ---- */
.market-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
.market-breadcrumb a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.market-breadcrumb a:hover { color: #FF4521; }
.market-breadcrumb .breadcrumb-sep { font-size: 10px; }
.market-breadcrumb .breadcrumb-item.active { color: #FF4521; }

/* ---- Hero Section ---- */
.market-hero {
  background: linear-gradient(135deg, #1a2830 0%, #222c30 50%, #1a2830 100%);
  /* LAYOUT SYSTEM: padding-top = var(--hero-padding-top) from layout-system.css */
  /* TRANSITION: was 150px (magic number) — now token-driven */
  padding: var(--hero-padding-top, 175px) 0 70px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.market-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(255,69,33,0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}
.market-hero .container {
  position: relative;
  z-index: 2;
}

.market-hero-title {
  font-family: 'Catamaran', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 20px;
}
.market-hero-title .text-accent { color: #FF4521; }

.market-hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 520px;
}

.market-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.market-features-list li {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.market-features-list li i {
  color: #FF4521;
  font-size: 14px;
  flex-shrink: 0;
}

.market-hero-cta { margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.market-hero-cta .btn { font-weight: 600; width: auto; display: inline-block; padding-left: 28px; padding-right: 28px; }

.risk-note {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

/* Hero Visual */
.market-hero-visual {
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.forex-globe-wrap {
  position: relative;
  width: 360px;
  height: 360px;
}
.currency-badge {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,69,33,0.4);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
  white-space: nowrap;
}
.badge-eurusd { top: 30px; left: 20px; }
.badge-gbpusd { top: 30px; right: 20px; }
.badge-usdjpy { bottom: 80px; left: 10px; }
.badge-audusd { bottom: 80px; right: 10px; }
.forex-chart-lines {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
}
.forex-chart-lines svg { width: 100%; height: 100%; }

/* Commodity/Index/Shares/Metals hero variants */
.commodities-hero::before {
  background: radial-gradient(ellipse at 70% 50%, rgba(255,165,0,0.07) 0%, transparent 60%);
}
.commodity-badge,
.metal-badge,
.index-ticker,
.share-ticker {
  background: transparent;
  color: #FF4521;
  border: none;
  padding: 0;
}
.commodity-badge i,
.metal-badge i,
.index-ticker i,
.share-ticker i,
.metal-badge span,
.index-ticker span,
.share-ticker span {
  color: #FF4521;
}
.indices-hero::before {
  background: radial-gradient(ellipse at 70% 50%, rgba(0,200,150,0.07) 0%, transparent 60%);
}
.shares-hero::before {
  background: radial-gradient(ellipse at 70% 50%, rgba(100,150,255,0.07) 0%, transparent 60%);
}
.metals-hero::before {
  background: radial-gradient(ellipse at 70% 50%, rgba(200,170,80,0.08) 0%, transparent 60%);
}

/* ---- Stats Bar ---- */
.market-stats-bar {
  background: #FF4521;
  padding: 28px 0;
}

/* ---- Table Section ---- */
.market-table-section {
  background: #f9f9f9;
  padding: var(--space-xxl) 0;
}
.section-header-wrap {
  margin-bottom: 40px;
}
.section-title {
  font-family: 'Catamaran', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: #2c393e;
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 16px;
  color: #4c575c;
  max-width: 600px;
}

/* Table Tabs */
.market-table-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(44,57,62,0.15);
  padding-bottom: 0;
}
.tab-btn {
  background: transparent;
  border: none;
  color: #4c575c;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  margin-bottom: -1px;
}
.tab-btn:hover { color: #2c393e; }
.tab-btn.active {
  color: #FF4521;
  border-bottom-color: #FF4521;
}

/* Table */
.market-table-wrap {
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(44,57,62,0.12);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(44,57,62,0.08);
}
.market-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.market-table thead tr {
  background: #2c393e;
}
.market-table th {
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  white-space: nowrap;
}
.market-table td {
  padding: 14px 16px;
  color: #3e5a61;
  border-bottom: 1px solid rgba(44,57,62,0.08);
  vertical-align: middle;
}
.market-table tbody tr:last-child td { border-bottom: none; }
.market-table tbody tr:hover { background: rgba(44,57,62,0.04); }

.symbol-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #2c393e !important;
}
.flag-pair {
  display: flex;
  gap: -4px;
}
.flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  background: rgba(255,255,255,0.2);
  display: inline-block;
  margin-right: 2px;
}
/* Flag colors (simplified) */
.flag.eu { background: linear-gradient(180deg, #003399 50%, #003399 50%); }
.flag.us { background: linear-gradient(180deg, #B22234 33%, #fff 33%, #fff 66%, #B22234 66%); }
.flag.gb { background: #012169; }
.flag.jp { background: #fff; }
.flag.au { background: #00008B; }
.flag.ca { background: #FF0000; }
.flag.ch { background: #FF0000; }
.flag.nz { background: #00247D; }
.flag.za { background: #007A4D; }
.flag.mx { background: #006847; }
.flag.pl { background: #DC143C; }
.flag.sg { background: #EF3340; }

.spread-cell {
  color: #FF4521 !important;
  font-weight: 700;
}

.table-disclaimer {
  font-size: 12px;
  color: #4c575c;
  margin-top: 16px;
}

/* ---- Explainer Section ---- */
.market-explainer {
  background: #fff;
  padding: var(--space-xxl) 0;
}
.market-explainer p {
  color: #4c575c;
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 16px;
}
.market-explainer strong { color: #2c393e; }


/* ---- Steps Section ---- */
.market-steps {
  background: #f9f9f9;
  padding: var(--space-xxl) 0;
}
.market-steps .section-title { color: #2c393e; }

.step-card {
  background: #fff;
  border: 1px solid rgba(44,57,62,0.1);
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  height: 100%;
  box-shadow: 0 2px 12px rgba(44,57,62,0.06);
}
.step-card:hover {
  border-color: rgba(255,69,33,0.35);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255,69,33,0.1);
}
.step-number {
  position: absolute;
  top: -16px;
  left: 28px;
  background: #FF4521;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
}
.step-icon {
  width: 60px;
  height: 60px;
  background: rgba(255,69,33,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.step-icon i { color: #FF4521; font-size: 24px; }
.step-card h4 {
  color: #2c393e;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}
.step-card p {
  color: #4c575c;
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

/* ---- Why Zevivo ---- */
.market-why {
  background: #2c393e;
  padding: var(--space-xxl) 0;
}
.market-why .section-title { color: #fff; }
.market-why .section-subtitle {
  color: rgba(255,255,255,0.65);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto;
}


/* ---- Other Markets ---- */
.other-markets {
  background: #f9f9f9;
  padding: var(--space-xl) 0;
}
.other-markets .section-title { color: #2c393e; }

.other-market-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid rgba(44,57,62,0.12);
  border-radius: 12px;
  padding: 28px 16px;
  text-decoration: none;
  color: #3e5a61;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(44,57,62,0.06);
}
.other-market-card:hover {
  border-color: #FF4521;
  color: #2c393e;
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255,69,33,0.12);
}
.other-market-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,69,33,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.other-market-icon i { color: #FF4521; font-size: 22px; }

/* ---- Bottom CTA ---- */
.market-bottom-cta {
  background: linear-gradient(135deg, #1a2830 0%, #222c30 100%);
  padding: var(--space-xxl) 0;
  border-top: 3px solid #FF4521;
}
.market-bottom-cta h2 {
  font-family: 'Catamaran', sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.market-bottom-cta p {
  color: rgba(255,255,255,0.7);
  font-size: 16px;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .market-hero { padding: 80px 0 50px; }
  .market-hero-title { font-size: 36px; }
  .market-features-list { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .market-hero-title { font-size: 30px; }
  .market-hero-desc { font-size: 15px; }
  .section-title { font-size: 28px; }
  .market-table th, .market-table td { padding: 10px 12px; font-size: 13px; }
  .market-bottom-cta h2 { font-size: 30px; }
  .market-hero-cta .btn { display: flex; width: 100%; max-width: 320px; margin-bottom: 8px; margin-right: 0 !important; justify-content: center; align-items: center; }
  .market-hero-cta { flex-direction: column; align-items: flex-start; }
}
