/* Reusable Component Styles */

/* Hero Section */
.hero-section {
  background: var(--gradient-subtle);
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(234, 52, 25, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 151, 24, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: float 3s ease-in-out infinite;
  animation-delay: 1s;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(234, 52, 25, 0.1);
  color: var(--pdf-primary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-pulse {
  position: relative;
  display: inline-flex;
  height: 0.5rem;
  width: 0.5rem;
}

.hero-pulse::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--pdf-primary);
  border-radius: 50%;
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.hero-pulse::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--pdf-primary);
  border-radius: 50%;
}

@keyframes ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Feature Cards */
.feature-card {
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 1rem;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
  background: white;
}

.feature-card:hover {
  border-color: var(--pdf-primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

/* Stats Section */
.stats-section {
  background: var(--gradient-primary);
  color: white;
  padding: 5rem 0;
}

.stat-item {
  text-align: center;
  padding: 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
  font-weight: 500;
}

/* Pricing Cards */
.pricing-card {
  border: 2px solid rgba(0, 0, 0, 0.125);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  position: relative;
  background: white;
  transition: all 0.3s ease;
  height: 100%;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
  border-color: var(--pdf-primary);
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
}

.pricing-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-accent);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.75reml;
  font-weight: 600;
  box-shadow: var(--shadow-accent-glow);
}

.text-center {
  text-align: center !important;
  text-align: -webkit-center !important;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--pdf-primary);
  line-height: 1;
}

.pricing-period {
  color: #6c757d;
  font-size: 1rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.pricing-features li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
}

.pricing-features li::before {
  content: '✓';
  color: var(--pdf-primary);
  font-weight: 700;
  margin-right: 0.75rem;
  font-size: 1.1rem;
}

/* FAQ Section */
.faq-item {
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  background: #f8f9fa;
  border: none;
  padding: 1.5rem;
  width: 100%;
  text-align: left;
  font-weight: 600;
  color: #212529;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: #e9ecef;
}

.faq-question.active {
  background: rgba(234, 52, 25, 0.1);
  color: var(--pdf-primary);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: #6c757d;
  line-height: 1.6;
  display: none;
}

.faq-answer.show {
  display: block;
  animation: slideDown 0.3s ease-out;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
  transform: rotate(180deg);
}

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

/* Code Example Section */
.code-example {
  background: #f8f9fa;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.code-tabs {
  background: #e9ecef;
  padding: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.code-tab-buttons {
  display: flex;
  gap: 0.5rem;
}

.code-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s ease;
}

.code-tab-btn:hover {
  background: #dee2e6;
  color: #495057;
}

.code-tab-btn.active {
  background: var(--pdf-primary);
  color: white;
  border-color: var(--pdf-primary);
}

.code-tab-dropdown {
  display: none;
}

.code-tab-select {
  background: var(--pdf-primary);
  color: white;
  border: 1px solid var(--pdf-primary);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  width: 100%;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.code-tab-select:hover {
  background-color: rgba(234, 52, 25, 0.9);
}

.code-tab-select:focus {
  box-shadow: 0 0 0 3px rgba(234, 52, 25, 0.2);
}

.code-tab-select option {
  background: white;
  color: #333;
  padding: 0.5rem;
}

.code-content {
  position: relative;
}

.code-block {
  display: none;
  background: #212529;
  color: #f8f9fa;
  padding: 2rem;
  margin: 0;
  font-family: 'Fira Code', 'Monaco', 'Menlo', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  overflow-x: auto;
}

.code-block.active {
  display: block;
}

.copy-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(4px);
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

.copy-btn.copied {
  background: #28a745;
  border-color: #28a745;
}

/* CTA Section */
.cta-section {
  background: var(--gradient-hero);
  color: white;
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

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

.cta-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-content {
  position: relative;
  z-index: 2;
}

/* Trust indicators */
.trust-indicators {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--bs-secondary-color) !important;
  font-size: 0.875rem;
}

.trust-icon {
  color: var(--bs-secondary-color) !important;
  font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .hero-section {
    padding: 4rem 0;
    margin-top: 2.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .pricing-card.featured {
    transform: none;
    margin-bottom: 2rem;
  }

  .code-tabs {
    flex-direction: column;
    gap: 1rem;
  }

  .code-tab-buttons {
    display: none;
  }

  .code-tab-dropdown {
    display: block;
  }

  .trust-indicators {
    gap: 1rem;
  }

  .trust-item {
    font-size: 0.8rem;
  }
}
