/* Crypto Trading Strategies Guide Styles */
@import url("/static/fonts/vazirmatn.css");

:root {
  --gold: #c9a961;
  --gold-light: #e5d4a1;
  --gold-dark: #8b7355;
  --black: #0a0a0a;
  --black-light: #111111;
  --black-lighter: #1a1a1a;
  --gray-dark: #2a2a2a;
  --gray: #666666;
  --gray-light: #999999;
  --white: #ffffff;
  --green: #22c55e;
  --red: #ef4444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Vazirmatn", sans-serif;
  background: var(--black);
  color: var(--white);
  direction: rtl;
  line-height: 1.8;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.cs-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  overflow: hidden;
}

#chartCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0.9) 100%);
}

.cs-hero .container {
  position: relative;
  z-index: 10;
}

.hero-content {
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(201, 169, 97, 0.1);
  border: 1px solid rgba(201, 169, 97, 0.3);
  padding: 10px 25px;
  border-radius: 50px;
  margin-bottom: 30px;
  animation: fadeInUp 0.8s ease;
}

.hero-badge svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
}

.hero-badge span {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.3;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--gray-light);
  margin-bottom: 50px;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s backwards;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray-light);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: bounce 2s infinite;
  z-index: 10;
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--gold);
  border-radius: 15px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s infinite;
}

.scroll-indicator span {
  font-size: 0.8rem;
  color: var(--gray-light);
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

/* Reading Progress */
.reading-progress {
  position: fixed;
  top: 60px;
  right: 0;
  left: 0;
  height: 3px;
  background: rgba(201, 169, 97, 0.2);
  z-index: 999;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  width: 0;
  transition: width 0.1s;
}

/* Table of Contents */
.toc-section {
  padding: 80px 0;
  background: var(--black-light);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
}

.toc-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: var(--black-lighter);
  border: 1px solid rgba(201, 169, 97, 0.1);
  border-radius: 10px;
  text-decoration: none;
  color: var(--white);
  transition: all 0.3s ease;
}

.toc-item:hover {
  background: rgba(201, 169, 97, 0.1);
  border-color: var(--gold);
  transform: translateX(-5px);
}

.toc-number {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 169, 97, 0.1);
  border-radius: 50%;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.toc-text {
  font-size: 0.95rem;
}

/* Chapters */
.chapter {
  padding: 100px 0;
}

.chapter-alt {
  background: var(--black-light);
}

.chapter-header {
  text-align: center;
  margin-bottom: 60px;
}

.chapter-number {
  display: inline-block;
  background: rgba(201, 169, 97, 0.1);
  color: var(--gold);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 15px;
}

.chapter-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
}

.chapter-content {
  max-width: 900px;
  margin: 0 auto;
}

.content-block {
  margin-bottom: 40px;
}

.lead-text {
  font-size: 1.2rem;
  color: var(--gray-light);
  line-height: 2;
  margin-bottom: 25px;
  border-right: 3px solid var(--gold);
  padding-right: 20px;
}

/* Principles Grid */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.principle-card {
  background: var(--black-lighter);
  border: 1px solid rgba(201, 169, 97, 0.1);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
}

.principle-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
}

.principle-icon {
  width: 60px;
  height: 60px;
  background: rgba(201, 169, 97, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.principle-icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--gold);
}

.principle-card h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.principle-card p {
  color: var(--gray-light);
  font-size: 0.9rem;
}

/* Comparison Table */
.comparison-table {
  background: var(--black-lighter);
  border-radius: 15px;
  overflow: hidden;
  margin: 40px 0;
}

.comparison-header,
.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.comparison-header {
  background: rgba(201, 169, 97, 0.1);
}

.comparison-row {
  border-bottom: 1px solid rgba(201, 169, 97, 0.1);
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-col {
  padding: 20px;
  font-size: 0.95rem;
  color: var(--gray-light);
}

.comparison-header .comparison-col {
  font-weight: 600;
  color: var(--gold);
}

.comparison-row .comparison-col:first-child {
  color: var(--white);
  font-weight: 500;
}

/* Info Box */
.info-box {
  display: flex;
  gap: 20px;
  background: rgba(201, 169, 97, 0.1);
  border: 1px solid rgba(201, 169, 97, 0.2);
  border-radius: 15px;
  padding: 25px;
  margin: 40px 0;
}

.info-icon {
  width: 50px;
  height: 50px;
  background: rgba(201, 169, 97, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold);
}

.info-content h4 {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.info-content p {
  color: var(--gray-light);
  font-size: 0.95rem;
}

/* Warning Box */
.warning-box {
  display: flex;
  gap: 20px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 15px;
  padding: 25px;
  margin: 40px 0;
}

.warning-icon {
  width: 50px;
  height: 50px;
  background: rgba(239, 68, 68, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.warning-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--red);
}

.warning-content h4 {
  color: var(--red);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.warning-content p {
  color: var(--gray-light);
  font-size: 0.95rem;
}

/* Strategy Card */
.strategy-card {
  background: var(--black-lighter);
  border: 1px solid rgba(201, 169, 97, 0.15);
  border-radius: 15px;
  padding: 35px;
  margin: 40px 0;
}

.strategy-head {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.strategy-head h3 {
  color: var(--white);
  font-size: 1.5rem;
}

.strategy-tag {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.strategy-tag.beginner {
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
}

.strategy-tag.intermediate {
  background: rgba(201, 169, 97, 0.12);
  color: var(--gold);
}

.strategy-tag.advanced {
  background: rgba(239, 68, 68, 0.12);
  color: var(--red);
}

.strategy-card > p {
  color: var(--gray-light);
  font-size: 1rem;
  margin-bottom: 25px;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.pros,
.cons {
  padding: 20px;
  border-radius: 12px;
}

.pros {
  background: rgba(34, 197, 94, 0.05);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.cons {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.pros h5,
.cons h5 {
  font-size: 1rem;
  margin-bottom: 15px;
}

.pros h5 {
  color: var(--green);
}

.cons h5 {
  color: var(--red);
}

.pros ul,
.cons ul {
  list-style: none;
}

.pros ul li,
.cons ul li {
  color: var(--gray-light);
  font-size: 0.9rem;
  padding: 6px 0;
  padding-right: 22px;
  position: relative;
}

.pros ul li::before {
  content: "✓";
  color: var(--green);
  position: absolute;
  right: 0;
}

.cons ul li::before {
  content: "✕";
  color: var(--red);
  position: absolute;
  right: 0;
}

/* Steps List */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 40px 0;
}

.step-item {
  display: flex;
  gap: 20px;
  background: var(--black-lighter);
  border: 1px solid rgba(201, 169, 97, 0.1);
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
}

.step-item:hover {
  border-color: var(--gold);
  transform: translateX(-5px);
}

.step-number {
  width: 45px;
  height: 45px;
  background: rgba(201, 169, 97, 0.1);
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.step-content h5 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.step-content p {
  color: var(--gray-light);
  font-size: 0.95rem;
}

/* Image Card */
.image-card {
  margin: 40px 0;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(201, 169, 97, 0.15);
  background: var(--black-lighter);
}

.image-card img {
  width: 100%;
  height: auto;
  display: block;
}

.image-caption {
  display: block;
  padding: 15px 20px;
  color: var(--gray-light);
  font-size: 0.9rem;
  text-align: center;
}

/* Tips Box */
.tips-box {
  background: rgba(201, 169, 97, 0.08);
  border: 1px solid rgba(201, 169, 97, 0.15);
  border-radius: 15px;
  padding: 30px;
  margin: 40px 0;
}

.tips-box h4 {
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.tips-list {
  list-style: none;
}

.tips-list li {
  color: var(--gray-light);
  font-size: 0.95rem;
  padding: 12px 0;
  padding-right: 30px;
  position: relative;
  border-bottom: 1px solid rgba(201, 169, 97, 0.1);
}

.tips-list li:last-child {
  border-bottom: none;
}

.tips-list li::before {
  content: "◆";
  color: var(--gold);
  position: absolute;
  right: 0;
  font-size: 0.8rem;
  top: 14px;
}

/* Indicators Grid */
.indicators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.indicator-card {
  background: var(--black-lighter);
  border: 1px solid rgba(201, 169, 97, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.indicator-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
}

.indicator-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: rgba(201, 169, 97, 0.05);
}

.indicator-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.indicator-icon.ma {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
}

.indicator-icon.bb {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.indicator-icon.macd {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.indicator-icon.sar {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: white;
}

.indicator-header h4 {
  color: var(--white);
  font-size: 1rem;
}

.indicator-content {
  padding: 20px;
}

.indicator-content p {
  color: var(--gray-light);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.indicator-types {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.type-badge {
  background: rgba(201, 169, 97, 0.1);
  color: var(--gold);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
}

/* Calculator */
.calculator-box {
  background: var(--black-lighter);
  border: 1px solid rgba(201, 169, 97, 0.2);
  border-radius: 15px;
  padding: 35px;
  margin: 40px 0;
  text-align: center;
}

.calculator-box h3 {
  color: var(--gold);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.calculator-desc {
  color: var(--gray-light);
  font-size: 0.95rem;
  margin-bottom: 30px;
}

.calculator-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.input-group {
  text-align: right;
}

.input-group label {
  display: block;
  color: var(--gray-light);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.input-group input {
  width: 100%;
  padding: 12px 15px;
  background: var(--black);
  border: 1px solid rgba(201, 169, 97, 0.2);
  border-radius: 10px;
  color: var(--white);
  font-family: "Vazirmatn", sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

.input-group input:focus {
  outline: none;
  border-color: var(--gold);
}

.calculate-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  border: none;
  padding: 14px 40px;
  border-radius: 10px;
  font-family: "Vazirmatn", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.calculate-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(201, 169, 97, 0.3);
}

.calculator-result {
  margin-top: 30px;
  padding: 20px;
  background: rgba(201, 169, 97, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.result-label {
  color: var(--gray-light);
  font-size: 1rem;
}

.result-value {
  color: var(--gold);
  font-size: 1.8rem;
  font-weight: 700;
}

/* Mistakes Grid */
.mistakes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.mistake-item {
  display: flex;
  gap: 18px;
  background: var(--black-lighter);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 12px;
  padding: 22px;
  transition: all 0.3s ease;
}

.mistake-item:hover {
  border-color: rgba(239, 68, 68, 0.4);
  transform: translateY(-3px);
}

.mistake-icon {
  width: 40px;
  height: 40px;
  background: rgba(239, 68, 68, 0.12);
  color: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.mistake-text h5 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 6px;
}

.mistake-text p {
  color: var(--gray-light);
  font-size: 0.88rem;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.12), rgba(139, 115, 85, 0.08));
  border: 1px solid rgba(201, 169, 97, 0.25);
  border-radius: 20px;
  padding: 50px 40px;
  margin: 50px 0 0;
  text-align: center;
}

.cta-box h3 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.cta-box p {
  color: var(--gray-light);
  font-size: 1.05rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 14px 35px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-btn.primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
}

.cta-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(201, 169, 97, 0.3);
}

.cta-btn.secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.cta-btn.secondary:hover {
  background: rgba(201, 169, 97, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    gap: 15px;
    font-size: 0.85rem;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-stats {
    gap: 30px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .chapter {
    padding: 60px 0;
  }

  .chapter-title {
    font-size: 1.8rem;
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }

  .comparison-col {
    padding: 14px;
    font-size: 0.85rem;
  }

  .strategy-card,
  .calculator-box,
  .cta-box {
    padding: 25px 20px;
  }

  .step-item {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    gap: 20px;
  }

  .stat-item {
    min-width: 40%;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-btn {
    width: 100%;
  }
}
