/* ============================================
   ForexYoga.com — Master Stylesheet
   ============================================ */

:root {
  --green: #00C896;
  --green-dark: #00A67A;
  --green-light: #E6FFF6;
  --navy: #0D1B2A;
  --navy-light: #1B2D45;
  --slate: #324A5F;
  --gold: #F0B90B;
  --gold-light: #FFF8E1;
  --bg: #F7F9FC;
  --white: #FFFFFF;
  --text: #1A1A2E;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --red: #EF4444;
  --green-up: #22C55E;
  --purple: #6366F1;
  --pink: #EC4899;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', system-ui, sans-serif; color: var(--text); background: var(--bg); }
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ---- NAVBAR ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--navy); border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s;
}
.navbar.scrolled { background: rgba(13,27,42,0.97); backdrop-filter: blur(12px); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-text { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: #fff; letter-spacing: -0.5px; }
.logo-text span { color: var(--green); }
.logo-sub { font-size: 9px; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; margin-top: -2px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: rgba(255,255,255,0.75); padding: 8px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 500; transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active { background: rgba(0,200,150,0.12); color: var(--green); }
.btn-join {
  background: var(--green); color: var(--navy); border: none; border-radius: 8px;
  padding: 8px 20px; font-size: 14px; font-weight: 600; cursor: pointer; margin-left: 8px;
  font-family: 'DM Sans', sans-serif; transition: all 0.2s;
}
.btn-join:hover { background: var(--green-dark); }
.mobile-toggle { display: none; background: none; border: none; color: #fff; cursor: pointer; font-size: 24px; }
.mobile-menu { display: none; background: var(--navy); padding: 12px 20px; border-top: 1px solid rgba(255,255,255,0.06); }
.mobile-menu a { display: block; color: rgba(255,255,255,0.75); padding: 12px 16px; border-radius: 8px; font-size: 15px; font-weight: 500; }
.mobile-menu a:hover, .mobile-menu a.active { background: rgba(0,200,150,0.12); color: var(--green); }
.mobile-menu.open { display: block; }

/* ---- BUTTONS ---- */
.btn-primary {
  background: var(--green); color: var(--navy); border: none; border-radius: 10px;
  padding: 14px 32px; font-size: 16px; font-weight: 600; cursor: pointer;
  font-family: 'DM Sans', sans-serif; box-shadow: 0 4px 20px rgba(0,200,150,0.3);
  transition: all 0.2s; display: inline-block;
}
.btn-primary:hover { background: var(--green-dark); box-shadow: 0 6px 30px rgba(0,200,150,0.4); transform: translateY(-1px); }
.btn-secondary {
  background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px; padding: 14px 32px; font-size: 16px; font-weight: 500; cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: all 0.2s; display: inline-block;
}
.btn-secondary:hover { background: rgba(255,255,255,0.14); }
.btn-outline {
  background: none; border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 20px; font-size: 13px; font-weight: 500; cursor: pointer; color: var(--text);
  font-family: 'DM Sans', sans-serif; transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--green); color: var(--green); }

/* ---- LAYOUT ---- */
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.section-header p { color: var(--text-muted); font-size: 16px; max-width: 560px; margin: 0 auto; }
.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 8px; display: block; font-family: 'DM Sans', sans-serif;
}
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--slate) 100%);
  color: #fff; padding: 120px 20px 80px; position: relative; overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0; opacity: 0.04;
  background-image: linear-gradient(rgba(255,255,255,0.3) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.3) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-inner { max-width: 1200px; margin: 0 auto; position: relative; }
.hero-content { max-width: 680px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,200,150,0.1); border: 1px solid rgba(0,200,150,0.25);
  border-radius: 40px; padding: 6px 16px; margin-bottom: 24px;
}
.hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; }
.hero-badge-text { font-size: 13px; color: var(--green); font-weight: 500; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; line-height: 1.15; margin-bottom: 20px; letter-spacing: -1px; }
.hero h1 .green { color: var(--green); }
.hero h1 .gold { color: var(--gold); }
.hero p.hero-desc { font-size: 18px; line-height: 1.7; color: rgba(255,255,255,0.7); margin-bottom: 36px; max-width: 560px; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; flex-wrap: wrap; }
.stat-num { font-size: 28px; font-weight: 700; color: var(--green); font-family: 'DM Sans', sans-serif; }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.5); }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff; padding: 110px 20px 50px; position: relative; overflow: hidden;
}
.page-hero .hero-grid { position: absolute; inset: 0; opacity: 0.04;
  background-image: linear-gradient(rgba(255,255,255,0.3) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.3) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; margin-bottom: 12px; position: relative; }
.page-hero p { font-size: 17px; color: rgba(255,255,255,0.65); max-width: 600px; line-height: 1.6; position: relative; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 16px; position: relative; }
.breadcrumb a { color: var(--green); }
.breadcrumb a:hover { text-decoration: underline; }

/* ---- CARDS ---- */
.card {
  background: var(--white); border-radius: 16px; padding: 28px; border: 1px solid var(--border);
  transition: all 0.25s; cursor: pointer;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center;
  justify-content: center; margin-bottom: 18px; font-size: 24px;
}
.card h3 { font-family: 'DM Sans', sans-serif; font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.tag {
  display: inline-block; font-size: 11px; font-weight: 600; padding: 4px 10px;
  border-radius: 6px; margin-right: 4px; margin-bottom: 4px;
}

/* ---- LEARNING PATH ---- */
.path-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.path-card {
  border: 1px solid var(--border); border-radius: 14px; padding: 22px 24px;
  display: flex; gap: 18px; align-items: flex-start; cursor: pointer; transition: all 0.2s; background: var(--white);
}
.path-card:hover { border-color: var(--green); box-shadow: 0 4px 20px rgba(0,0,0,0.04); }
.path-num {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; font-family: 'DM Sans', sans-serif;
}
.path-level { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-family: 'DM Sans', sans-serif; }
.path-card h3 { font-family: 'DM Sans', sans-serif; font-size: 17px; font-weight: 600; margin: 4px 0 6px; }
.path-card p { font-size: 13px; color: var(--text-muted); line-height: 1.55; margin: 0; }
.path-lessons { font-size: 12px; color: var(--text-muted); margin-top: 8px; display: inline-block; }

/* ---- CHART CARDS ---- */
.chart-card { background: var(--white); border-radius: 14px; overflow: hidden; border: 1px solid var(--border); cursor: pointer; transition: all 0.2s; }
.chart-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.06); }
.chart-preview {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  height: 160px; display: flex; align-items: center; justify-content: center; position: relative;
  color: rgba(255,255,255,0.3); font-size: 13px;
}
.chart-bias { position: absolute; top: 10px; left: 10px; border-radius: 6px; padding: 3px 10px; font-size: 11px; font-weight: 600; }
.chart-bias.bullish { background: rgba(34,197,94,0.2); color: var(--green-up); }
.chart-bias.bearish { background: rgba(239,68,68,0.2); color: var(--red); }
.chart-bias.neutral { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }
.chart-tv { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.4); border-radius: 6px; padding: 3px 8px; font-size: 11px; color: rgba(255,255,255,0.7); }
.chart-body { padding: 16px 20px; }
.chart-header { display: flex; justify-content: space-between; align-items: center; }
.chart-pair { font-family: 'DM Sans', sans-serif; font-size: 17px; font-weight: 700; }
.chart-tf { font-size: 11px; background: rgba(13,27,42,0.06); color: var(--slate); padding: 2px 8px; border-radius: 4px; font-weight: 600; margin-left: 10px; }
.chart-change { font-size: 14px; font-weight: 600; font-family: 'DM Sans', sans-serif; }
.chart-change.up { color: var(--green-up); }
.chart-change.down { color: var(--red); }
.chart-note { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-top: 8px; }

/* ---- SCRIPT CARDS ---- */
.script-card { border: 1px solid var(--border); border-radius: 14px; padding: 24px; transition: all 0.2s; cursor: pointer; background: var(--white); }
.script-card:hover { border-color: var(--gold); box-shadow: 0 4px 20px rgba(0,0,0,0.04); }
.script-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.script-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(240,185,11,0.1); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.script-version { font-size: 11px; font-weight: 600; color: var(--text-muted); background: var(--bg); padding: 3px 10px; border-radius: 6px; }
.script-card h3 { font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.script-card > p { font-size: 13px; color: var(--text-muted); line-height: 1.55; margin-bottom: 14px; }
.script-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 14px; }
.script-stars { color: var(--gold); font-weight: 600; font-size: 13px; }
.script-uses { font-size: 12px; color: var(--text-muted); }

/* ---- TOOLS ---- */
.tools-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.calc-card { background: var(--white); border-radius: 16px; padding: 28px; border: 1px solid var(--border); }
.calc-card h3 { font-family: 'DM Sans', sans-serif; font-size: 18px; font-weight: 600; margin-bottom: 20px; }
.calc-field { margin-bottom: 16px; }
.calc-field label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; font-family: 'DM Sans', sans-serif; }
.calc-field input, .calc-field select {
  width: 100%; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border);
  font-size: 15px; font-family: 'DM Sans', sans-serif; background: var(--bg); outline: none;
  transition: border-color 0.2s;
}
.calc-field input:focus, .calc-field select:focus { border-color: var(--green); }
.calc-result {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 12px; padding: 20px; margin-top: 8px; text-align: center;
}
.calc-result-label { font-size: 12px; color: rgba(255,255,255,0.6); margin-bottom: 4px; }
.calc-result-value { font-size: 36px; font-weight: 700; color: var(--green); font-family: 'DM Sans', sans-serif; }
.calc-result-risk { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 4px; }
.tool-item {
  background: var(--white); border-radius: 14px; padding: 20px 22px; border: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px; cursor: pointer; transition: all 0.2s; margin-bottom: 16px;
}
.tool-item:hover { border-color: var(--pink); }
.tool-icon { font-size: 28px; flex-shrink: 0; }
.tool-item h4 { font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.tool-item p { font-size: 13px; color: var(--text-muted); margin: 0; }
.tool-arrow { margin-left: auto; color: var(--text-muted); font-size: 18px; }

/* ---- BLOG POSTS ---- */
.post-card {
  border: 1px solid var(--border); border-radius: 14px; padding: 22px; cursor: pointer;
  transition: all 0.2s; background: var(--white);
}
.post-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.06); }
.post-cat { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 5px; display: inline-block; }
.post-card h3 { font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 600; line-height: 1.4; margin: 14px 0 12px; }
.post-meta { font-size: 12px; color: var(--text-muted); }

/* ---- CTA ---- */
.cta {
  background: linear-gradient(135deg, var(--navy), var(--slate));
  padding: 80px 20px; text-align: center; position: relative; overflow: hidden;
}
.cta-glow {
  position: absolute; inset: 0; opacity: 0.05;
  background: radial-gradient(circle at 30% 50%, var(--green) 0%, transparent 50%), radial-gradient(circle at 70% 50%, var(--gold) 0%, transparent 50%);
}
.cta-inner { max-width: 600px; margin: 0 auto; position: relative; }
.cta h2 { font-size: 32px; font-weight: 700; color: #fff; margin: 16px 0 14px; }
.cta p { color: rgba(255,255,255,0.65); font-size: 16px; line-height: 1.7; margin-bottom: 32px; }
.cta-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-form input {
  padding: 14px 20px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06); color: #fff; font-size: 15px; width: 280px;
  font-family: 'DM Sans', sans-serif; outline: none;
}
.cta-form input::placeholder { color: rgba(255,255,255,0.4); }
.cta-form input:focus { border-color: var(--green); }

/* ---- FOOTER ---- */
.footer { background: var(--navy); color: rgba(255,255,255,0.5); padding: 48px 20px 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; margin-bottom: 40px; }
.footer h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 14px; font-family: 'DM Sans', sans-serif; }
.footer a { display: block; color: rgba(255,255,255,0.45); font-size: 13px; margin-bottom: 8px; transition: color 0.2s; }
.footer a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 12px; }
.footer-disclaimer { font-size: 11px; max-width: 500px; line-height: 1.5; }

/* ---- CONTENT PAGES ---- */
.content-section { padding: 60px 20px; }
.content-section.white { background: var(--white); }
.content-section.gray { background: var(--bg); }

.lesson-list { list-style: none; counter-reset: lesson; }
.lesson-item {
  counter-increment: lesson;
  border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px;
  margin-bottom: 12px; background: var(--white); display: flex; align-items: center;
  gap: 16px; transition: all 0.2s; cursor: pointer;
}
.lesson-item:hover { border-color: var(--green); box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.lesson-num {
  width: 36px; height: 36px; border-radius: 10px; background: var(--green-light);
  color: var(--green-dark); display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0; font-family: 'DM Sans', sans-serif;
}
.lesson-item h4 { font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.lesson-item p { font-size: 13px; color: var(--text-muted); margin: 0; }
.lesson-meta { margin-left: auto; text-align: right; flex-shrink: 0; }
.lesson-meta span { font-size: 11px; color: var(--text-muted); display: block; }

/* TradingView embed */
.tv-embed { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); margin: 20px 0; }

/* Code block */
.code-block {
  background: var(--navy); color: #E0E0E0; padding: 24px; border-radius: 12px;
  font-family: 'Fira Code', monospace; font-size: 13px; line-height: 1.7;
  overflow-x: auto; margin: 16px 0; position: relative;
}
.code-block .copy-btn {
  position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.6);
  padding: 4px 12px; border-radius: 6px; font-size: 11px; cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: all 0.2s;
}
.code-block .copy-btn:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .hero h1 { font-size: 32px; }
  .hero-stats { gap: 24px; }
  .card-grid { grid-template-columns: 1fr; }
  .path-grid { grid-template-columns: 1fr; }
  .tools-layout { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 26px; }
  .cta h2 { font-size: 26px; }
  .cta-form { flex-direction: column; align-items: center; }
  .cta-form input { width: 100%; max-width: 320px; }
  .footer-bottom { flex-direction: column; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn-primary, .hero-buttons .btn-secondary { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .hero { padding-top: 90px; padding-bottom: 50px; }
  .page-hero { padding-top: 90px; padding-bottom: 40px; }
  .content-section { padding: 40px 16px; }
  .hero-stats { gap: 16px; }
  .stat-num { font-size: 22px; }
}
