/* ===== DIGITAL PRODUCTS PAGE STYLES ===== */

/* Hero Section */
.dp-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--navbar-height, 70px) + 3rem) 2rem 4rem;
}

.dp-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0B1120 0%, #1E293B 50%, #0B1120 100%);
  z-index: 0;
}

.dp-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

.dp-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
}

.dp-glow-orb.orb-emerald {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.4), transparent);
  top: -100px;
  right: 10%;
  animation: float 15s ease-in-out infinite;
}

.dp-glow-orb.orb-cyan {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.3), transparent);
  bottom: -50px;
  left: 20%;
  animation: float 12s ease-in-out infinite reverse;
}

.dp-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.dp-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.text-gradient-emerald {
  background: linear-gradient(90deg, #10b981, #14b8a6, #10b981);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
}

.dp-hero-subtitle {
  font-size: 1.15rem;
  color: #9CA3AF;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.dp-hero-nav {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.dp-nav-btn {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.dp-nav-btn:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #10b981;
}

/* How It Works Section */
.dp-how-section {
  background: #ffffff;
  padding: 4rem 0;
}

.dp-how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.dp-how-step {
  text-align: center;
  padding: 1.5rem;
  position: relative;
}

.dp-how-step .step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(56, 189, 248, 0.1);
  line-height: 1;
}

.dp-how-step .step-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.dp-how-step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0B1120;
  margin-bottom: 0.5rem;
}

.dp-how-step p {
  color: #6B7280;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Category Sections */
.dp-category-section {
  padding: 5rem 0;
}

.dp-category-section.dark {
  background: linear-gradient(180deg, #0B1120, #1E293B);
}

.dp-category-section.light {
  background: #ffffff;
}

.category-header,
.category-header-light {
  text-align: center;
  margin-bottom: 3rem;
}

.category-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  margin-bottom: 1rem;
}

.category-label-light {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  margin-bottom: 1rem;
}

.category-title {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
}

.category-title-light {
  font-size: 2rem;
  font-weight: 800;
  color: #0B1120;
  margin-bottom: 1rem;
}

.category-subtitle {
  color: #9CA3AF;
  max-width: 600px;
  margin: 0 auto;
}

.category-subtitle-light {
  color: #6B7280;
  max-width: 600px;
  margin: 0 auto;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* Dark Theme Product Card */
.product-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(11, 17, 32, 0.9));
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.product-preview {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-preview.flyer { background: linear-gradient(135deg, #f43f5e15, #ec489915); }
.product-preview.poster { background: linear-gradient(135deg, #8b5cf615, #7c3aed15); }
.product-preview.website { background: linear-gradient(135deg, #38BDF815, #0ea5e915); }
.product-preview.social { background: linear-gradient(135deg, #10b98115, #14b8a615); }

.preview-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-placeholder svg {
  width: 40px;
  height: 40px;
  color: rgba(255, 255, 255, 0.3);
}

.preview-placeholder.light {
  background: rgba(0, 0, 0, 0.05);
}

.preview-placeholder.light svg {
  color: rgba(0, 0, 0, 0.2);
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  background: rgba(255, 215, 0, 0.15);
  color: #FFD700;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.product-badge.new {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}

.product-badge.premium {
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
  border-color: rgba(139, 92, 246, 0.3);
}

.product-info {
  padding: 1.5rem;
}

.product-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.product-info p {
  color: #9CA3AF;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.format-tag {
  background: rgba(56, 189, 248, 0.1);
  color: #38BDF8;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(56, 189, 248, 0.1);
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #10b981;
}

.product-btn {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(20, 184, 166, 0.15));
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.product-btn:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(20, 184, 166, 0.25));
  color: #10b981;
}

/* Light Theme Product Card */
.product-card-light {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-card-light:hover {
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.product-info-light {
  padding: 1.5rem;
}

.product-info-light h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0B1120;
  margin-bottom: 0.75rem;
}

.product-info-light p {
  color: #6B7280;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.product-footer-light {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.product-price-light {
  font-size: 1.25rem;
  font-weight: 700;
  color: #10b981;
}

.product-btn-light {
  background: linear-gradient(135deg, #10b981, #14b8a6);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.product-btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
  color: white;
}

/* Custom Section */
.dp-custom-section {
  background: #f8fafc;
  padding: 4rem 0;
}

.custom-request-card {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.custom-icon {
  font-size: 2.5rem;
}

.custom-content {
  flex: 1;
  min-width: 250px;
}

.custom-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0B1120;
  margin-bottom: 0.5rem;
}

.custom-content p {
  color: #6B7280;
  font-size: 0.95rem;
  line-height: 1.6;
}

.custom-cta {
  background: linear-gradient(135deg, #38BDF8, #0ea5e9);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.custom-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.3);
  color: white;
}

/* Merchandise CTA Section */
.dp-merch-cta-section {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.dp-merch-cta-section .cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0B1120, #1E293B);
  z-index: 0;
}

.dp-merch-cta-section .cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.dp-merch-cta-section h2 {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.dp-merch-cta-section .cta-description {
  color: #9CA3AF;
  margin-bottom: 2rem;
}

/* Section Labels */
.section-label-emerald {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  margin-bottom: 1rem;
}

/* Fade-in Animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   FADE-IN ANIMATION OVERRIDE
   Forces visibility for fade-in elements (no JS IntersectionObserver on this page)
   ========================================================================== */

.dp-hero .fade-in,
.dp-category-section .fade-in,
.dp-how-section .fade-in,
.dp-custom-section .fade-in,
.dp-merch-cta-section .fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
  visibility: visible !important;
}

/* Responsive */
@media (max-width: 768px) {
  .dp-hero {
    padding: calc(var(--navbar-height, 70px) + 2rem) 1rem 3rem;
  }

  .dp-hero-title {
    font-size: 2rem;
  }

  .dp-hero-nav {
    flex-direction: column;
    align-items: center;
  }

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

  .custom-request-card {
    flex-direction: column;
    text-align: center;
  }

  .dp-category-section {
    padding: 3rem 1rem;
  }

  .dp-how-section {
    padding: 3rem 1rem;
  }
}

@media (max-width: 480px) {
  .dp-hero {
    padding: calc(var(--navbar-height, 70px) + 1.5rem) 1rem 2.5rem;
    min-height: 40vh;
  }

  .dp-hero-title {
    font-size: 1.75rem;
  }

  .dp-hero-subtitle {
    font-size: 1rem;
  }

  .dp-category-section {
    padding: 2.5rem 0.75rem;
  }

  .category-title,
  .category-title-light {
    font-size: 1.5rem;
  }

  .product-info,
  .product-info-light {
    padding: 1.25rem;
  }

  .custom-request-card {
    padding: 1.25rem;
  }

  .dp-merch-cta-section {
    padding: 3rem 1rem;
  }
}
