/* ============================================
   AURORE COMMODITIES — Enhanced Stylesheet
   Ticker fix + Market data + Leadership
   ============================================ */

/* ====== TICKER BAR — self-contained, no external dependencies ====== */
.market-ticker-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1001;
  height: 38px;
  background: rgba(4, 10, 18, 0.80);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.market-ticker-bar__label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  border-right: 1px solid rgba(255,255,255,0.09);
  white-space: nowrap;
  user-select: none;
}
.market-ticker-bar__dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: tickerPulse 2.5s ease-in-out infinite;
}
@keyframes tickerPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50%       { opacity: 0.6; box-shadow: 0 0 0 4px rgba(34,197,94,0); }
}
.market-ticker-bar__track {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(90deg, transparent 0%, black 3%, black 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 3%, black 97%, transparent 100%);
}
.market-ticker-bar__inner {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: tickerScroll 55s linear infinite;
  will-change: transform;
}
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 0 10px;
}
@keyframes flashUp   { 0%,100%{background:transparent} 30%{background:rgba(34,197,94,0.18)} }
@keyframes flashDown { 0%,100%{background:transparent} 30%{background:rgba(239,68,68,0.18)} }
.ti-flash-up   { animation: flashUp   0.6s ease; }
.ti-flash-down { animation: flashDown 0.6s ease; }
.ti-label {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.03em;
}
.ti-price {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.88);
}
.ti-price.ti-up   { color: #4ade80; }
.ti-price.ti-down { color: #f87171; }
.ti-change {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
}
.ti-change.ti-up   { color: #4ade80; }
.ti-change.ti-down { color: #f87171; }
.ti-change.ti-flat { color: rgba(255,255,255,0.35); }
.ti-unit {
  font-size: 0.56rem;
  color: rgba(255,255,255,0.26);
  margin-left: 1px;
  font-weight: 400;
}
.ti-sep {
  color: rgba(255,255,255,0.14);
  font-size: 0.7rem;
  padding: 0 4px;
  user-select: none;
}
@media (max-width: 768px) {
  .market-ticker-bar__label { display: none; }
}

/* ====== MARKET DATA SECTION ====== */
.market-data-section {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.market-data-section::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,151,178,0.3), transparent);
}
.market-data-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.market-data-header .section-title { color: var(--white); }
.market-data-subtitle { font-size: 0.91rem; color: rgba(255,255,255,0.3); line-height: 1.75; max-width: 500px; margin-top: 10px; }
.market-data-badge {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.18);
  border-radius: 0;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #22c55e; white-space: nowrap; flex-shrink: 0;
}
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; animation: tickerPulse 2.5s ease-in-out infinite; }

.market-chart-wrap {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 18px;
}

.price-cards {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin-bottom: 24px;
}
.price-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0;
  padding: 18px 18px 6px;
  transition: all 0.25s ease;
}
.price-card:hover { background: rgba(0,151,178,0.06); border-color: rgba(0,151,178,0.18); }
.price-card__label { font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 2px; }
.price-card__symbol { font-size: 0.6rem; color: rgba(0,151,178,0.5); margin-bottom: 3px; letter-spacing: 0.03em; }
.price-card__widget { min-height: 60px; }
.market-data-disclaimer { font-size: 0.73rem; color: rgba(255,255,255,0.16); line-height: 1.7; text-align: center; max-width: 700px; margin: 0 auto; }

/* ====== MARKET INTELLIGENCE ====== */
.intelligence-section { background: var(--surface); border-top: 1px solid var(--border-light); }
.intelligence-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
.intelligence-btn { flex-shrink: 0; font-size: 0.7rem; padding: 11px 22px; }
.intelligence-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 2px; margin-bottom: 24px;
  background: var(--border-light); border-radius: 0; overflow: hidden;
}
.intelligence-card {
  background: var(--white);
  padding: 30px 30px 24px;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: background 0.25s ease; position: relative;
}
.intelligence-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--teal); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease-spring);
}
.intelligence-card:hover { background: var(--surface); }
.intelligence-card:hover::before { transform: scaleX(1); }
.intelligence-card__category { font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.intelligence-card__title { font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--ink); line-height: 1.3; margin-bottom: 12px; letter-spacing: -0.02em; transition: color 0.2s ease; }
.intelligence-card:hover .intelligence-card__title { color: var(--teal-dark); }
.intelligence-card__excerpt { font-size: 0.88rem; color: var(--text-body); line-height: 1.8; flex: 1; margin-bottom: 20px; }
.intelligence-card__footer { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border-light); }
.intelligence-card__source { font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: 0.67rem; font-weight: 600; color: var(--text-muted); }
.intelligence-card__read { font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: 0.72rem; font-weight: 700; color: var(--teal); transition: transform 0.2s ease; }
.intelligence-card:hover .intelligence-card__read { transform: translateX(3px); }
.intelligence-note { font-size: 0.74rem; color: var(--text-muted); line-height: 1.7; text-align: center; max-width: 680px; margin: 0 auto; font-style: italic; }

/* ====== LEADERSHIP ====== */
.leadership-disciplines {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 2px; margin-top: 56px; margin-bottom: 40px;
  background: var(--border-light); border-radius: 0; overflow: hidden;
}
.discipline-card {
  background: var(--white); padding: 36px 32px;
  transition: background 0.25s ease; position: relative;
}
.discipline-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--teal); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease-spring);
}
.discipline-card:hover { background: var(--surface); }
.discipline-card:hover::before { transform: scaleX(1); }
.discipline-card__icon {
  width: 48px; height: 48px;
  background: var(--teal-10); border: 1px solid var(--teal-20);
  border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; transition: all 0.25s ease;
}
.discipline-card:hover .discipline-card__icon { background: var(--teal); border-color: var(--teal); }
.discipline-card:hover .discipline-card__icon svg { stroke: white; }
.discipline-card__icon svg { stroke: var(--teal); transition: stroke 0.25s ease; }
.discipline-card__title { font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: 10px; letter-spacing: -0.02em; }
.discipline-card__text { font-size: 0.9rem; color: var(--text-body); line-height: 1.85; }

/* Mike Cooper profile */
.md-profile-wrap { margin-top: 16px; }
.md-profile {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 52px;
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: 0; padding: 44px;
  align-items: start;
  position: relative; overflow: hidden;
}
.md-profile::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light), var(--amber));
}
.md-profile__image-placeholder {
  aspect-ratio: 3/4;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.md-profile__image-placeholder svg { stroke: var(--border); }
.md-profile__image-note { font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-light); font-family: 'IBM Plex Sans', system-ui, sans-serif; font-weight: 600; }
.md-profile__image { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 0; }
.md-profile__badge { display: inline-flex; padding: 5px 12px; background: var(--teal-10); border: 1px solid var(--teal-20); border-radius: 0; font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 14px; }
.md-profile__name { font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing: -0.04em; margin-bottom: 20px; line-height: 1.05; }
.md-profile__bio { font-size: 0.93rem; color: var(--text-body); line-height: 1.9; margin-bottom: 14px; }
.md-profile__credentials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border-light); }
.md-profile__credential { padding: 5px 12px; background: var(--white); border: 1px solid var(--border-light); border-radius: 0; font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: 0.68rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.02em; }

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .price-cards { grid-template-columns: repeat(2, 1fr); }
  .leadership-disciplines { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .market-ticker-bar__label { display: none; }
  .intelligence-grid { grid-template-columns: 1fr; }
  .market-data-header, .intelligence-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .leadership-disciplines { grid-template-columns: 1fr; }
  .md-profile { grid-template-columns: 1fr; gap: 28px; padding: 28px 22px; }
  .md-profile__image-placeholder { aspect-ratio: 16/7; max-height: 120px; }
  .price-cards { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
@media (max-width: 480px) {
  .price-cards { grid-template-columns: 1fr 1fr; }
  .intelligence-btn { font-size: 0.68rem; padding: 10px 18px; }
}

/* ====== PRICE CARDS — self-contained JS version ====== */
.price-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0;
  padding: 20px 20px 16px;
  transition: all 0.25s ease;
  min-height: 96px;
}
.price-card:hover {
  background: rgba(0,151,178,0.06);
  border-color: rgba(0,151,178,0.18);
}
.price-card__label {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 2px;
}
.price-card__sub {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.22);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.price-card__value {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.price-card__value.pc-up   { color: #4ade80; }
.price-card__value.pc-down { color: #f87171; }
.price-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.price-card__change {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
}
.price-card__change.pc-up   { color: #4ade80; }
.price-card__change.pc-down { color: #f87171; }
.price-card__unit {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.03em;
  text-align: right;
  white-space: nowrap;
}

/* Flash animations */
@keyframes pcFlashUp   { 0%,100%{background:rgba(255,255,255,0.03)} 40%{background:rgba(74,222,128,0.12)} }
@keyframes pcFlashDown { 0%,100%{background:rgba(255,255,255,0.03)} 40%{background:rgba(248,113,113,0.12)} }
.pc-flash-up   { animation: pcFlashUp   0.7s ease; }
.pc-flash-down { animation: pcFlashDown 0.7s ease; }

/* ====== BRENT CHART ====== */
.market-chart-wrap {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 0;
}
.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.chart-title {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.02em;
}
.chart-subtitle {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.28);
  margin-top: 2px;
}
.chart-live {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.01em;
}
.chart-live.cl-up   { color: #4ade80; }
.chart-live.cl-down { color: #f87171; }

.chart-canvas-wrap {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}
.chart-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 500px;
}
.chart-overlay {
  position: absolute;
  background: rgba(8,20,31,0.92);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0;
  padding: 8px 12px;
  pointer-events: none;
  min-width: 130px;
}
.ct-date  { font-size: 0.68rem; color: rgba(255,255,255,0.45); margin-bottom: 3px; }
.ct-price { font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: 0.88rem; font-weight: 600; color: rgba(255,255,255,0.9); }

.chart-footer {
  padding: 8px 20px;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.18);
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* Badge live state */
.market-data-badge.is-live .live-dot { background: #22c55e; }

@media (max-width: 1024px) {
  .price-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .price-cards { grid-template-columns: 1fr 1fr; gap: 8px; }
  .chart-canvas-wrap { height: 320px; }
  .chart-canvas-wrap canvas { height: 320px; }
}

/* ====== 2-COLUMN INTELLIGENCE GRID (homepage) ====== */
.intelligence-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 768px) {
  .intelligence-grid--2 { grid-template-columns: 1fr; }
}
