/* Products Page Styles */
/* Uses project theme: --primary-color: #6b52df, --secondary-color: #f06c19 */

/* Hero Section */
.products-hero {
  background: linear-gradient(135deg, #6b52df 0%, #5340c7 100%);
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.products-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  animation: heroPattern 20s linear infinite;
}

@keyframes heroPattern {
  0% { transform: translate(0, 0); }
  100% { transform: translate(30px, 30px); }
}

.products-hero .hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
}

.products-hero h1 {
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.products-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Main Content */
.products-main {
  padding: 40px 0 80px;
  background: #f7fafc;
}

.products-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

/* Sidebar */
.products-sidebar {
  width: 280px;
  min-width: 280px;
  background: #fff;
  border-radius: 12px;
  padding: 24px 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 100px;
  border: 1px solid #e2e8f0;
}

.sidebar-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #718096;
  padding: 0 24px 16px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 8px;
}

.tab-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tab-item {
  margin: 0;
}

.tab-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: #4a5568;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  text-decoration: none;
}

.tab-link:hover {
  background: #f7fafc;
  color: #6b52df;
}

.tab-link.active {
  background: linear-gradient(90deg, rgba(123, 104, 238, 0.08), transparent);
  color: #6b52df;
  border-left-color: #6b52df;
  font-weight: 600;
}

.tab-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f0edff;
  color: #6b52df;
  font-size: 15px;
  transition: all 0.3s ease;
}

.tab-link.active .tab-icon {
  background: #6b52df;
  color: #fff;
}

/* Content Area */
.products-content {
  flex: 1;
  min-width: 0;
}

/* Content Header */
.content-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding: 28px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

.content-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.icon-blue {
  background: linear-gradient(135deg, #6b52df, #5340c7);
  color: #fff;
}

.icon-green {
  background: linear-gradient(135deg, #48bb78, #38a169);
  color: #fff;
}

.icon-orange {
  background: linear-gradient(135deg, #f06c19, #ed8936);
  color: #fff;
}

.icon-purple {
  background: linear-gradient(135deg, #9f7aea, #805ad5);
  color: #fff;
}

.icon-teal {
  background: linear-gradient(135deg, #38b2ac, #319795);
  color: #fff;
}

.content-title h2 {
  font-size: 24px;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 6px;
}

.content-title p {
  font-size: 14px;
  color: #718096;
  margin: 0;
  line-height: 1.5;
}

/* Sub Tabs */
.sub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

.sub-tab {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}

.sub-tab:hover {
  background: #f0edff;
  color: #6b52df;
  border-color: #d6d0f7;
}

.sub-tab.active {
  background: #6b52df;
  color: #fff;
  border-color: #6b52df;
  box-shadow: 0 4px 12px rgba(123, 104, 238, 0.3);
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeInContent 0.4s ease;
}

@keyframes fadeInContent {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Info Sections */
.info-section {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title i {
  color: #6b52df;
  font-size: 18px;
}

.info-text {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.7;
  margin: 0;
}

/* Process Steps */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.process-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #f7fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.process-step:hover {
  border-color: #d6d0f7;
  background: #faf9ff;
  transform: translateX(4px);
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6b52df, #5340c7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-text {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.5;
}

/* Data Grid */
.data-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.data-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f7fafc;
  border-radius: 8px;
  font-size: 13px;
  color: #4a5568;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.data-item:hover {
  border-color: #d6d0f7;
  background: #faf9ff;
}

.data-item i {
  color: #48bb78;
  font-size: 12px;
  flex-shrink: 0;
}

/* Features List */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #f7fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.feature-item:hover {
  border-color: #d6d0f7;
  background: #faf9ff;
}

.feature-item .feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(123, 104, 238, 0.1), rgba(88, 86, 214, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-item .feature-icon i {
  color: #6b52df;
  font-size: 16px;
}

.feature-text {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.5;
}

/* Use Cases */
.use-cases {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.use-case-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  font-size: 13px;
  color: #4a5568;
  transition: all 0.3s ease;
}

.use-case-tag:hover {
  background: #f0edff;
  border-color: #d6d0f7;
  color: #6b52df;
}

.use-case-tag i {
  font-size: 6px;
  color: #6b52df;
}

/* CTA Section */
.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  background: linear-gradient(135deg, #6b52df 0%, #5340c7 100%);
  border-radius: 12px;
  margin-top: 20px;
}

.cta-text h4 {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
}

.cta-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  margin: 0;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #f06c19;
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: none;
}

.cta-btn:hover {
  background: #e88a2a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 153, 51, 0.4);
  color: #fff;
}

/* ==================== Responsive ==================== */

@media (max-width: 1024px) {
  .products-hero h1 {
    font-size: 34px;
  }

  .products-layout {
    gap: 20px;
  }

  .products-sidebar {
    width: 240px;
    min-width: 240px;
  }

  .tab-link {
    padding: 12px 18px;
    font-size: 13px;
  }

  .tab-icon {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .products-hero {
    padding: 60px 0 40px;
  }

  .products-hero h1 {
    font-size: 28px;
  }

  .products-hero p {
    font-size: 15px;
  }

  .products-main {
    padding: 24px 0 60px;
  }

  .products-layout {
    flex-direction: column;
  }

  .products-sidebar {
    width: 100%;
    min-width: unset;
    position: static;
    padding: 16px 0;
  }

  .tab-list {
    display: flex;
    overflow-x: auto;
    padding: 0 16px;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tab-list::-webkit-scrollbar {
    display: none;
  }

  .tab-item {
    flex-shrink: 0;
  }

  .tab-link {
    padding: 10px 16px;
    border-left: none;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    white-space: nowrap;
  }

  .tab-link.active {
    background: #6b52df;
    color: #fff;
    border-color: #6b52df;
  }

  .tab-link.active .tab-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
  }

  .sidebar-title {
    display: none;
  }

  .content-header {
    padding: 20px;
    flex-direction: column;
    text-align: center;
  }

  .sub-tabs {
    padding: 12px;
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .sub-tabs::-webkit-scrollbar {
    display: none;
  }

  .sub-tab {
    flex-shrink: 0;
    padding: 7px 14px;
    font-size: 12px;
  }

  .info-section {
    padding: 18px;
  }

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

  .cta-section {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }

  .use-cases {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .products-hero {
    padding: 50px 0 30px;
  }

  .products-hero h1 {
    font-size: 24px;
  }

  .products-hero .hero-badge {
    font-size: 12px;
    padding: 6px 16px;
  }

  .content-title h2 {
    font-size: 20px;
  }

  .section-title {
    font-size: 15px;
  }

  .info-section {
    padding: 16px;
    margin-bottom: 12px;
  }

  .process-step {
    padding: 12px 14px;
  }

  .step-number {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .cta-btn {
    padding: 10px 24px;
    font-size: 13px;
  }
}
