/* =====================================================
   ECONOMIC CALENDAR PAGE — Zevivo Styles
   Color scheme: #1a2830 / #222c30 dark, #FF4521 accent
   ===================================================== */

/* ---- CSS Variables ---- */
:root {
  --ec-dark: #1a2830;
  --ec-dark2: #222c30;
  --ec-dark3: #2c393e;
  --ec-accent: #FF4521;
  --ec-accent-hover: #e03d1d;
  --ec-light: #f7f9fa;
  --ec-white: #ffffff;
  --ec-text: #2d3748;
  --ec-text-muted: #6b7a8d;
  --ec-high: #e53935;
  --ec-medium: #fb8c00;
  --ec-low: #43a047;
  --ec-border: rgba(255,255,255,0.08);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.ec-hero {
  background: linear-gradient(135deg, #1a2830 0%, #222c30 55%, #1e3040 100%);
  /* LAYOUT SYSTEM: padding-top = var(--hero-padding-top) from layout-system.css */
  /* TRANSITION: was 100px (magic number) — now token-driven */
  padding: var(--hero-padding-top, 175px) 0 80px;
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.ec-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -5%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(255,69,33,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.ec-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #FF4521, transparent);
}

/* Breadcrumb */
.ec-breadcrumb {
  margin-bottom: 1rem;
}

.ec-breadcrumb .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}

.ec-breadcrumb .breadcrumb-item a {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.ec-breadcrumb .breadcrumb-item a:hover {
  color: #FF4521;
}

.ec-breadcrumb .breadcrumb-item.active {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
}

.ec-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.3);
  content: "/";
}

/* Hero Text */
.ec-hero-title {
  font-family: 'Catamaran', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.ec-hero-title .text-accent {
  color: #FF4521;
}

.ec-hero-desc {
  font-family: 'Work Sans', sans-serif;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 520px;
}

.ec-hero-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.ec-hero-features li {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.8);
  padding: 0.3rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ec-hero-features li i {
  color: #FF4521;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.ec-hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- Hero Visual: Event Cards ---- */
.ec-hero-visual {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
}

.ec-event-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease;
  animation: ec-float 6s ease-in-out infinite;
}

.ec-event-card:nth-child(2) { animation-delay: 2s; }
.ec-event-card:nth-child(3) { animation-delay: 4s; }

@keyframes ec-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.ec-card-high { border-left: 3px solid var(--ec-high); }
.ec-card-medium { border-left: 3px solid var(--ec-medium); }
.ec-card-low { border-left: 3px solid var(--ec-low); }

.ec-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.ec-flag {
  font-size: 1.1rem;
}

.ec-currency {
  font-family: 'Catamaran', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

.ec-impact-badge {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-left: auto;
}

.ec-impact-badge.high { background: rgba(229,57,53,0.2); color: #ef5350; border: 1px solid rgba(229,57,53,0.4); }
.ec-impact-badge.medium { background: rgba(251,140,0,0.2); color: #ffa726; border: 1px solid rgba(251,140,0,0.4); }
.ec-impact-badge.low { background: rgba(67,160,71,0.2); color: #66bb6a; border: 1px solid rgba(67,160,71,0.4); }

.ec-card-body {
  margin-bottom: 0.6rem;
}

.ec-event-name {
  font-family: 'Catamaran', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.ec-event-time {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.ec-card-data {
  display: flex;
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 0.6rem;
}

.ec-data-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.ec-data-label {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ec-data-val {
  font-family: 'Catamaran', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
}

.ec-data-val.pending { color: rgba(255,255,255,0.35); }
.ec-data-val.positive { color: #66bb6a; }
.ec-data-val.negative { color: #ef5350; }

/* =====================================================
   STATS BAR
   ===================================================== */
.market-stats-bar {
  background: #FF4521;
  padding: 1.2rem 0;
}




/* =====================================================
   SECTION COMMON STYLES
   ===================================================== */
.section-label-tag {
  display: inline-block;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FF4521;
  margin-bottom: 0.75rem;
}

.ec-section-header {
  font-family: 'Catamaran', sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: #1a2830;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.ec-section-header.white {
  color: #ffffff;
}

.ec-section-sub {
  font-family: 'Work Sans', sans-serif;
  font-size: 1rem;
  color: #6b7a8d;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* =====================================================
   HOW TO USE SECTION
   ===================================================== */
.ec-howto-section {
  background: #f7f9fa;
  padding: 70px 0 50px;
}

.ec-guide-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  height: 100%;
  transition: all 0.25s ease;
}

.ec-guide-card:hover {
  border-color: #FF4521;
  box-shadow: 0 8px 30px rgba(255,69,33,0.1);
  transform: translateY(-3px);
}

.ec-guide-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #FF4521, #c73516);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
}

.ec-guide-icon i {
  color: #fff;
  font-size: 1.2rem;
}

.ec-guide-title {
  font-family: 'Catamaran', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1a2830;
  margin-bottom: 0.5rem;
}

.ec-guide-desc {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.85rem;
  color: #6b7a8d;
  line-height: 1.65;
  margin: 0;
}

/* =====================================================
   IMPACT LEGEND
   ===================================================== */
.ec-legend-section {
  background: #fff;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.ec-legend-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.ec-legend-title {
  font-family: 'Catamaran', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #1a2830;
  white-space: nowrap;
}

.ec-legend-items {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.ec-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ec-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ec-legend-dot.high { background: var(--ec-high); }
.ec-legend-dot.medium { background: var(--ec-medium); }
.ec-legend-dot.low { background: var(--ec-low); }

.ec-legend-label {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.82rem;
  color: #4a5568;
}

/* =====================================================
   TRADINGVIEW WIDGET SECTION
   ===================================================== */
.ec-widget-section {
  background: #1a2830;
  padding: var(--space-xl) 0;
}

.ec-widget-container {
  padding: 0;
}

/* Outer card wrapper — gives the widget a contained look */
.ec-widget-card {
  background: #222c30;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.06);
}

.ec-widget-header {
  background: #222c30;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.ec-widget-title-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ec-widget-title {
  font-family: 'Catamaran', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ec-widget-title i {
  color: #FF4521;
}

.ec-widget-subtitle {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}

.ec-widget-note {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 400px;
}

.ec-widget-note i {
  color: #FF4521;
  flex-shrink: 0;
}

.ec-tradingview-wrapper {
  width: 100%;
  background: #222c30;
}

/* Override TradingView widget copyright link color */
.tradingview-widget-copyright a {
  color: rgba(255,255,255,0.3) !important;
  font-size: 0.75rem;
}

.tradingview-widget-copyright a:hover {
  color: rgba(255,255,255,0.5) !important;
}

/* =====================================================
   KEY EVENTS SECTION
   ===================================================== */
.ec-key-events-section {
  background: #f7f9fa;
  padding: var(--space-xxl) 0;
}







.ec-key-desc {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.85rem;
  color: #6b7a8d;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.ec-key-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ec-key-currency {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4a5568;
  background: #f7f9fa;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
}

.ec-key-impact {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.high-badge { background: rgba(229,57,53,0.1); color: #e53935; border: 1px solid rgba(229,57,53,0.25); }
.medium-badge { background: rgba(251,140,0,0.1); color: #fb8c00; border: 1px solid rgba(251,140,0,0.25); }
.low-badge { background: rgba(67,160,71,0.1); color: #43a047; border: 1px solid rgba(67,160,71,0.25); }

/* =====================================================
   TRADING TIPS SECTION (dark)
   ===================================================== */
.ec-tips-section {
  background: linear-gradient(135deg, #1a2830 0%, #222c30 100%);
  padding: var(--space-xxl) 0;
  position: relative;
}

.ec-tips-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #FF4521, transparent);
}

.ec-tips-desc {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.ec-tips-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.ec-tip-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.25rem;
  height: 100%;
  transition: all 0.25s ease;
}

.ec-tip-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,69,33,0.35);
}

.ec-tip-num {
  font-family: 'Catamaran', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: rgba(255,69,33,0.2);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.ec-tip-title {
  font-family: 'Catamaran', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.ec-tip-desc {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin: 0;
}

/* =====================================================
   FAQ SECTION
   ===================================================== */
.ec-faq-section {
  background: #fff;
  padding: var(--space-xxl) 0;
}

.ec-faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.ec-faq-item.open {
  border-color: #FF4521;
}

.ec-faq-toggle {
  width: 100%;
  background: #fff;
  border: none;
  padding: 1.2rem 1.5rem;
  text-align: left;
  font-family: 'Catamaran', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1a2830;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.2s ease;
}

.ec-faq-toggle:hover {
  background: #f7f9fa;
}

.ec-faq-toggle i {
  color: #FF4521;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.ec-faq-item.open .ec-faq-toggle {
  background: #fff3f0;
  color: #FF4521;
}

.ec-faq-item.open .ec-faq-toggle i {
  transform: rotate(180deg);
}

.ec-faq-body {
  display: none;
  padding: 0 1.5rem 1.2rem;
  background: #fff;
}

.ec-faq-body p {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.9rem;
  color: #6b7a8d;
  line-height: 1.7;
  margin: 0;
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.ec-cta-section {
  background: linear-gradient(135deg, #1a2830 0%, #222c30 100%);
  padding: var(--space-xl) 0;
  border-top: 3px solid #FF4521;
}

.ec-cta-title {
  font-family: 'Catamaran', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.ec-cta-title .text-accent {
  color: #FF4521;
}

.ec-cta-desc {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  margin: 0;
  line-height: 1.6;
}

/* =====================================================
   BUTTON OVERRIDES
   ===================================================== */
.dark-bg {
  background: rgba(255,255,255,0.1) !important;
  border: 2px solid rgba(255,255,255,0.25) !important;
  color: #fff !important;
}

.dark-bg:hover {
  background: rgba(255,255,255,0.18) !important;
  border-color: rgba(255,255,255,0.4) !important;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 991px) {
  .ec-hero {
    padding: 80px 0 60px;
    min-height: auto;
  }

  .ec-hero-title {
    font-size: 2.2rem;
  }

  .ec-widget-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .ec-hero-title {
    font-size: 1.9rem;
  }

  .ec-hero-cta {
    flex-direction: column;
  }

  .ec-hero-cta .btn {
    width: 100%;
    text-align: center;
  }

  .ec-section-header {
    font-size: 1.7rem;
  }

  .ec-cta-title {
    font-size: 1.6rem;
  }

  .ec-tips-cta {
    flex-direction: column;
  }

  .ec-tips-cta .btn {
    width: 100%;
    text-align: center;
  }

  .ec-legend-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .ec-legend-items {
    flex-direction: column;
    gap: 0.5rem;
  }

  .ec-widget-header {
    padding: 1rem;
  }
  .ec-widget-section {
    padding: var(--space-lg) 0;
  }
  .ec-widget-card {
    border-radius: 10px;
  }
}
