/* =========================================
   STRATEGIES PAGE DRIVER
   ========================================= */
/* Variables are loaded from variables.css via link tag in HTML */

/* 1. HERO SECTION */
.strategies-hero {
  padding: 8rem 0 4rem;
  text-align: center;
  background-color: var(--tic-white);
}

.strategies-hero h2 {
  font-family: var(--tic-font-title);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--tic-blue);
  margin-bottom: 1.5rem;
}

.strategies-hero p {
  font-family: var(--tic-font-body);
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto var(--tic-margin-xxl);
  color: var(--tic-black);
  opacity: 1;
  line-height: 1.6;
}

/* Navigation Pills */
.strategy-nav-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-strategy-nav {
  font-family: var(--tic-font-title);
  border: 2px solid var(--tic-blue);
  color: var(--tic-blue);
  background: transparent;
  padding: 0.8rem 2.5rem;
  border-radius: var(--tic-border-radius-pill);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-strategy-nav:hover {
  background-color: var(--tic-blue);
  color: var(--tic-white);
}

/* 2. STRATEGY SECTIONS (General Layout) */
.strategy-section {
  padding: 6rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.strategy-title {
  font-family: var(--tic-font-title);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--tic-blue);
  text-align: center;
  margin-bottom: var(--tic-margin-xxl);
}

/* 3. CHART CONTAINER */
.chart-container {
  position: relative;
  width: 100%;
  height: 450px;
  background: var(--tic-white);
  border-radius: var(--tic-border-radius-lg);
}

/* 4. STATISTICS PANEL (Right Column) */
.stats-panel {
  background-color: var(--tic-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Header */
.stats-header {
  font-family: var(--tic-font-title);
  background-color: var(--tic-blue);
  color: var(--tic-white);
  text-align: center;
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Ticker (Scrolling Animation) */
.stats-ticker-wrap {
  background-color: rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.4rem 0;
  position: relative;
}

.stats-ticker-track {
  display: inline-block;
  animation: tickerScroll 30s linear infinite;
}

.stats-ticker-track span {
  font-family: var(--tic-font-stats);
  display: inline-block;
  padding-left: 1.5rem;
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--tic-blue);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

@keyframes tickerScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 0.25rem;
  padding: 0.5rem 0.75rem;
  flex-grow: 1;
  align-items: center;
}

.stat-item {
  text-align: center;
}

.stat-label {
  font-family: var(--tic-font-body);
  display: block;
  font-size: 0.8rem;
  color: var(--tic-black);
  opacity: 1;
  margin-bottom: 0;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.stat-value {
  font-family: var(--tic-font-stats);
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--tic-blue);
  line-height: 1.1;
  letter-spacing: -0.3px;
}

/* Keep metrics dark - no color changes for positive/negative */
.stat-value .slot-positive,
.stat-value .slot-negative,
.stat-value .slot-digit-inner strong.slot-positive,
.stat-value .slot-digit-inner strong.slot-negative,
.stat-value .slot-decimal.slot-positive,
.stat-value .slot-decimal.slot-negative,
.stat-value .slot-percent.slot-positive,
.stat-value .slot-percent.slot-negative {
  color: var(--tic-blue) !important;
}

/* Full width item for Profit Factor (bottom center) */
.stat-item-full {
  grid-column: 1 / -1;
  margin-top: 0.1rem;
}

/* 5. DESCRIPTION TEXT */
.strategy-description {
  font-family: var(--tic-font-body);
  margin-top: var(--tic-margin-xxl);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--tic-black);
  opacity: 1;
  text-align: justify;
}

.strategy-description strong {
  color: var(--tic-blue);
  opacity: 1;
}

/* 6. RESPONSIVE */
@media (max-width: 991px) {
  .chart-container {
    height: 350px;
    margin-bottom: 2rem;
  }

  .stats-grid {
    gap: 0.2rem;
    padding: 0.5rem;
  }

  .stat-value {
    font-size: 1.3rem;
  }
}
