:root {
  --primary-color: #7500de;
  --primary-light: #9333ea;
  --primary-dark: #5b21b6;
  --text-primary: #000000;
  --text-secondary: #374151;
  --bg-light: #f8fafc;
  --border-light: #e5e7eb;
  --amazon-orange: #ff9900;
  --amazon-blue: #232f3e;
}

/* Table of Contents Styles */
.toc-sidebar {
  background: white;
  border-radius: 12px;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(2, 2, 2, 0.06);
  border: 1px solid var(--border-light);
}

.toc-header {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-light) 100%
  );
  color: white;
  padding: 1rem 1.25rem;
  border-radius: 12px 12px 0 0;
  font-weight: 600;
  font-size: 1rem;
}

.toc-nav {
  max-height: 70vh;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.toc-nav::-webkit-scrollbar {
  width: 4px;
}

.toc-nav::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.toc-nav::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 2px;
}

.toc-link {
  display: block;
  padding: 0.625rem 1.25rem;
  color: var(--text-secondary);
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-size: 0.875rem;
  line-height: 1.4;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  cursor: pointer;
}

.toc-link:hover {
  background-color: #f8fafc;
  color: var(--primary-color);
}

.toc-link.active {
  background-color: rgba(117, 0, 222, 0.1);
  color: var(--primary-color);
  font-weight: 600;
  border-left-color: var(--primary-color);
}

.toc-link.level-2 {
  padding-left: 2.5rem;
  font-size: 0.8125rem;
  color: #9ca3af;
}

.toc-link.level-3 {
  padding-left: 3.5rem;
  font-size: 0.75rem;
  color: #b0b7c3;
}

/* Main Content Styles */
.amazon-content {
  background: #f8fafc;
  min-height: 100vh;
  padding: 2.5rem 0;
}

.content-wrapper {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
}

.main-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.section-title {
  color: var(--primary-color);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(117, 0, 222, 0.1);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--primary-color);
}

.subsection-title {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
}

.content-text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (min-width: 992px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-item {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 1.5rem;
  border-left: 4px solid var(--primary-color);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--primary-light)
  );
  opacity: 0;
  transition: opacity 0.2s ease;
}

.feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
}

.feature-item:hover::before {
  opacity: 1;
}

/* Ad Types Grid */
.ad-types-grid {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.ad-type-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.ad-type-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--amazon-orange), #ffb84d);
}

.ad-type-card:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

.ad-type-title {
  color: var(--amazon-blue);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.ad-type-best-for {
  color: var(--amazon-orange);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Info Boxes */
.highlight-box {
  background: linear-gradient(
    135deg,
    rgba(117, 0, 222, 0.1) 0%,
    rgba(147, 51, 234, 0.1) 100%
  );
  border: 1px solid rgba(117, 0, 222, 0.2);
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.info-box {
  background: #ffffff;
  border: 1px solid #fce9ff;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 1.5rem 0;
}

.success-box {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.warning-box {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.error-box {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border: 1px solid #f87171;
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.cta-box {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-light) 100%
  );
  color: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%,
  100% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(180deg);
  }
}

.cta-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.breadcrumb-wrapper {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

/* FAQ Styles */
.faq-section {
  background: #f9fafb;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid var(--border-light);
}

.faq-item {
  background: white;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background-color: var(--bg-light);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: #000000;
  line-height: 1.6;
}

/* Strategy Steps */
.strategy-steps {
  counter-reset: step-counter;
}

.strategy-step {
  counter-increment: step-counter;
  position: relative;
  padding-left: 4rem;
  margin-bottom: 2rem;
}

.strategy-step::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.125rem;
}

/* Best Practices List */
.best-practices-list {
  list-style: none;
  padding: 0;
}

.best-practices-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.best-practices-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
  font-size: 1.125rem;
}

/* Mistakes List */
.mistakes-list {
  list-style: none;
  padding: 0;
}

.mistakes-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.mistakes-list li::before {
  content: "✗";
  position: absolute;
  left: 0;
  color: #ef4444;
  font-weight: bold;
  font-size: 1.125rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .content-wrapper {
    padding: 1.5rem;
  }

  .main-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .ad-types-grid {
    grid-template-columns: 1fr;
  }

  .strategy-step {
    padding-left: 3rem;
  }

  .strategy-step::before {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .amazon-content {
    padding: 1rem 0;
  }

  .main-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .cta-box {
    padding: 1.5rem;
  }
}
