/* ============================================
   PRODUCT PAGE STYLES
============================================ */

/* Product Hero */
.product-hero {
  padding: calc(var(--space-20) + 60px) 0 var(--space-16);
  background: linear-gradient(180deg, var(--color-surface) 0%, white 100%);
}

.product-hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: 14px;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-6);
}

.breadcrumb a {
  color: var(--color-text-tertiary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb i {
  font-size: 10px;
}

.product-hero-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  font-family: var(--font-heading);
  color: var(--color-text-primary);
}

.product-hero-description {
  font-size: 20px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-12);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.product-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-12);
  padding: var(--space-8) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

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

.stat-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-heading);
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: 14px;
  color: var(--color-text-tertiary);
}

.product-hero-ctas {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
}

/* Product Layout with Sidebar */
.product-layout {
  display: flex;
  gap: var(--space-8);
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
  position: relative;
}

/* Sticky Sidebar */
.sidebar-nav {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  height: fit-content;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5);
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
  color: var(--color-text-primary);
}

.sidebar-header i {
  color: var(--color-primary);
}

.sidebar-menu {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-height: 500px;
  overflow-y: auto;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.sidebar-link:hover {
  background: var(--color-surface);
  color: var(--color-text-primary);
}

.sidebar-link.active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
}

.sidebar-link i {
  font-size: 16px;
}

.sidebar-cta {
  padding: var(--space-5);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.sidebar-cta-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.sidebar-cta-content p {
  font-size: 13px;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-4);
  line-height: 1.5;
}

.btn-sidebar {
  display: block;
  width: 100%;
  padding: var(--space-3);
  background: var(--color-primary);
  color: white;
  text-align: center;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.btn-sidebar:hover {
  background: var(--color-secondary);
  transform: translateY(-1px);
}

/* Product Content */
.product-content {
  flex: 1;
  min-width: 0;
}

.container-narrow {
  max-width: 900px;
}

/* Video Section */
.video-container {
  margin-top: var(--space-12);
  display: grid;
  gap: var(--space-8);
}

.video-player {
  aspect-ratio: 16/9;
  background: var(--color-bg-dark);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-tertiary);
}

.video-placeholder i {
  font-size: 80px;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.video-placeholder p {
  font-size: 20px;
  font-weight: 600;
  color: white;
  margin-bottom: var(--space-2);
}

.video-placeholder span {
  font-size: 14px;
  color: var(--color-text-tertiary);
}

.video-chapters {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.video-chapters h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.chapter-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.chapter-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
}

.chapter-item:hover {
  background: var(--color-surface);
}

.chapter-item.active {
  background: #eef2ff;
  border-left: 3px solid var(--color-primary);
  padding-left: calc(var(--space-3) + 3px);
}

.chapter-item.active .chapter-time {
  color: #4338ca;
  font-weight: 800;
}

.chapter-item.active .chapter-name {
  color: #1e1b4b;
  font-weight: 700;
}

.chapter-time {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  min-width: 45px;
}

.chapter-name {
  font-size: 14px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.chapter-item:hover .chapter-name {
  color: var(--color-text-primary);
}

/* Module Section */
.module-section {
  padding: var(--space-16) 0;
  border-bottom: 2px solid var(--color-border);
}

.module-section:last-of-type {
  border-bottom: none;
}

.module-header {
  display: flex;
  gap: var(--space-6);
  align-items: start;
  margin-bottom: var(--space-12);
}

.module-header-center {
  text-align: center;
  margin-bottom: var(--space-12);
}

.module-icon-large {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.module-icon-large.secondary {
  background: linear-gradient(135deg, #10b981, #059669);
}

.module-icon-large.accent {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.module-icon-large.success {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.module-icon-large.warning {
  background: linear-gradient(135deg, #eab308, #ca8a04);
}

.module-icon-large.info {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.module-icon-large.purple {
  background: linear-gradient(135deg, var(--color-secondary), #7c3aed);
}

.module-icon-large.gradient {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
}

.module-icon-large i {
  font-size: 36px;
  color: white;
}

.module-header-text {
  flex: 1;
}

.module-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.module-header-center .module-badge {
  justify-content: center;
}

.badge-tag {
  display: inline-flex;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-tag.popular {
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-primary);
}

.badge-tag.new {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.badge-tag.roi {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.badge-tag.premium {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: white;
}

.module-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--color-text-primary);
  font-family: var(--font-heading);
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

.module-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.module-visual {
  margin-bottom: var(--space-12);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

.module-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.module-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.module-description h3,
.module-features h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
  font-family: var(--font-heading);
}

.module-description p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.module-description strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.feature-list li {
  display: flex;
  gap: var(--space-4);
  align-items: start;
}

.feature-list i {
  font-size: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-list strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.feature-list p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-tertiary);
  margin: 0;
}

/* Case Study */
.module-case-study {
  background: var(--color-surface);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-12);
}

.case-study-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.case-study-header i {
  color: #fbbf24;
  font-size: 20px;
}

.case-study-header h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.case-study-quote {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  font-style: italic;
  margin-bottom: var(--space-6);
  position: relative;
  padding-left: var(--space-6);
}

.case-study-quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 60px;
  color: var(--color-primary);
  opacity: 0.3;
  font-family: Georgia, serif;
}

.case-study-author {
  font-size: 14px;
  color: var(--color-text-tertiary);
  line-height: 1.6;
}

.case-study-author strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

.case-study-meta {
  color: var(--color-text-tertiary);
}

/* Module CTA */
.module-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-8);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.module-cta-content h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.module-cta-content p {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin: 0;
}

.btn-module-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-module-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* Final CTA */
.product-final-cta {
  padding: var(--space-20) 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  position: relative;
  overflow: hidden;
}

.product-final-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.final-cta-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.final-cta-content h2 {
  font-size: 48px;
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-6);
  font-family: var(--font-heading);
  line-height: 1.2;
}

.final-cta-content > p {
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255,255,255,0.95);
  margin-bottom: var(--space-12);
}

.final-cta-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: 500;
}

.cta-feature i {
  font-size: 20px;
  color: #22c55e;
}

.final-cta-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
}

.btn-final-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-8);
  background: white;
  color: var(--color-primary);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
}

.btn-final-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.btn-final-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-8);
  background: rgba(255,255,255,0.1);
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
}

.btn-final-secondary:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
}

/* Responsive */
@media (max-width: 1200px) {
  .sidebar-nav {
    display: none;
  }

  .product-layout {
    display: block;
  }
}

@media (max-width: 768px) {
  .product-hero {
    padding: calc(var(--space-16) + 60px) 0 var(--space-12);
  }

  .product-hero-title {
    font-size: 36px;
  }

  .product-hero-description {
    font-size: 17px;
  }

  .product-hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .stat-value {
    font-size: 28px;
  }

  .product-hero-ctas {
    flex-direction: column;
  }

  .module-header {
    flex-direction: column;
  }

  .module-title {
    font-size: 28px;
  }

  .module-subtitle {
    font-size: 16px;
  }

  .module-content-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .module-cta {
    flex-direction: column;
    text-align: center;
  }

  .final-cta-content h2 {
    font-size: 32px;
  }

  .final-cta-content > p {
    font-size: 17px;
  }

  .final-cta-features {
    grid-template-columns: 1fr;
  }

  .final-cta-buttons {
    flex-direction: column;
  }

  .video-chapters {
    padding: var(--space-4);
  }

  .chapter-item {
    flex-direction: column;
    align-items: start;
    gap: var(--space-2);
  }
}
