/* ========================================
   Product Detail Page
   ======================================== */

/* Hero Section */
.product-hero {
  position: relative;
  padding: 100px 0 60px;
  color: var(--color-white);
  overflow: hidden;
}

.product-hero.red-theme { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #F54336 100%); }
.product-hero.blue-theme { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #21A7F2 100%); }
.product-hero.green-theme { background: linear-gradient(135deg, #1a1a2e 0%, #0f2027 50%, #58B249 100%); }
.product-hero.yellow-theme { background: linear-gradient(135deg, #1a1a2e 0%, #1a1a2e 50%, #F5B82E 100%); }
.product-hero.teal-theme { background: linear-gradient(135deg, #1a1a2e 0%, #0d2b3e 50%, #25D0B8 100%); }
.product-hero.purple-theme { background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 50%, #9b59b6 100%); }

.product-hero .container {
  position: relative;
  z-index: 2;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.product-hero-text {
  position: relative;
  z-index: 3;
}

.product-hero-image {
  position: relative;
  z-index: 2;
  text-align: center;
}

.product-hero-image img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  background: #fff;
}

.product-hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.product-hero h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.product-hero-subtitle {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 600px;
  line-height: 1.6;
}

.product-hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.phs-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.phs-number {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}

.phs-label {
  font-size: 13px;
  opacity: 0.8;
}

.product-hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 1;
}

/* Product Overview Section */
.product-overview {
  padding: 50px 0;
  background: var(--color-white);
}

.product-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pov-card {
  background: var(--color-gray-50);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--transition-normal);
}

.pov-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pov-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
}

.pov-icon.red { background: #FDECEA; }
.pov-icon.blue { background: #E3F4FD; }
.pov-icon.green { background: #EAF7E5; }
.pov-icon.yellow { background: #FEF4DC; }
.pov-icon.teal { background: #DCF7F1; }
.pov-icon.purple { background: #F2E6FA; }

.pov-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.pov-desc {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* Section Common */
.product-section {
  padding: 50px 0;
}

.product-section.gray-bg {
  background: var(--color-gray-50);
}

.ps-header {
  text-align: center;
  margin-bottom: 36px;
}

.ps-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.ps-subtitle {
  font-size: 15px;
  color: var(--text-tertiary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Course Level Timeline */
.course-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.ct-item {
  display: flex;
  gap: 24px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border-left: 4px solid var(--color-red);
}

.ct-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.ct-level {
  flex-shrink: 0;
  width: 80px;
  text-align: center;
}

.ct-level-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-red);
  margin-bottom: 6px;
}

.ct-level-age {
  font-size: 12px;
  color: var(--text-tertiary);
}

.ct-content {
  flex: 1;
}

.ct-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.ct-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
}

.ct-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ct-tag {
  padding: 3px 10px;
  background: var(--color-gray-100);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  transition: all var(--transition-normal);
  border: 1px solid var(--color-gray-100);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 20px;
}

.feature-icon.red { background: #FDECEA; }
.feature-icon.blue { background: #E3F4FD; }
.feature-icon.green { background: #EAF7E5; }
.feature-icon.yellow { background: #FEF4DC; }
.feature-icon.teal { background: #DCF7F1; }
.feature-icon.purple { background: #F2E6FA; }

.feature-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

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

/* Competition List */
.competition-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.competition-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition: all var(--transition-normal);
  border: 1px solid var(--color-gray-100);
}

.competition-item:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.ci-badge {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.ci-badge.red { background: #FDECEA; }
.ci-badge.blue { background: #E3F4FD; }
.ci-badge.green { background: #EAF7E5; }
.ci-badge.yellow { background: #FEF4DC; }

.ci-info {
  flex: 1;
}

.ci-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.ci-desc {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* Certification Cards */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.cert-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--transition-normal);
  border: 1px solid var(--color-gray-100);
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.cert-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.cert-icon.red { background: #FDECEA; }
.cert-icon.blue { background: #E3F4FD; }
.cert-icon.green { background: #EAF7E5; }
.cert-icon.yellow { background: #FEF4DC; }
.cert-icon.teal { background: #DCF7F1; }

.cert-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.cert-desc {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* Camp Types */
.camp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.camp-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-normal);
  border: 1px solid var(--color-gray-100);
}

.camp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.camp-header {
  padding: 28px 28px 20px;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.camp-header.red { background: linear-gradient(135deg, #F54336, #ff6b6b); }
.camp-header.blue { background: linear-gradient(135deg, #21A7F2, #4fc3f7); }
.camp-header.green { background: linear-gradient(135deg, #58B249, #81c784); }
.camp-header.yellow { background: linear-gradient(135deg, #F5B82E, #ffd54f); }

.camp-type {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 8px;
}

.camp-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
}

.camp-duration {
  font-size: 14px;
  opacity: 0.9;
}

.camp-body {
  padding: 24px 28px 28px;
}

.camp-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.camp-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.camp-feature-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-green-bg);
  color: var(--color-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  margin-top: 2px;
}

/* Bottom CTA */
.product-cta-section {
  padding: 50px 0;
  background: var(--color-gray-50);
  text-align: center;
}

.product-cta-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.product-cta-desc {
  font-size: 15px;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 768px) {
  .product-hero { padding: 90px 0 40px; }
  .product-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .product-hero-image { order: -1; }
  .product-hero-image img { max-width: 320px; }
  .product-hero h1 { font-size: 28px; }
  .product-hero-subtitle { font-size: 14px; }
  .product-hero-stats { gap: 16px; }
  .phs-number { font-size: 24px; }
  
  .product-overview-grid { grid-template-columns: repeat(2, 1fr); }
  
  .ps-title { font-size: 24px; }
  
  .feature-grid { grid-template-columns: 1fr; }
  .competition-list { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .camp-grid { grid-template-columns: 1fr; }
  
  .ct-item { flex-direction: column; gap: 12px; }
  .ct-level { width: auto; text-align: left; }
}
