/* Blog CTA Styles - Conversion Elements */

/* ============================================
   Post-Content CTA Section
   ============================================ */
.blog-cta-section {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0.03) 100%);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 16px;
  padding: 3rem 2rem;
  margin: 3rem 0 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #22c55e, transparent);
}

.blog-cta-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
}

.blog-cta-icon i {
  font-size: 1.75rem;
  color: #fff;
}

.blog-cta-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e7e3fc;
  margin-bottom: 0.75rem;
}

.blog-cta-section p {
  font-size: 1rem;
  color: #a5a3ae;
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.blog-cta-section .btn-primary {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border: none;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
  transition: all 0.3s ease;
}

.blog-cta-section .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.4);
}

.blog-cta-section .btn-primary:active {
  transform: translateY(0);
}

/* ============================================
   Sticky Bottom CTA Bar
   ============================================ */
.blog-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 26, 40, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(34, 197, 94, 0.3);
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  z-index: 1050;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
}

.blog-sticky-cta.visible {
  transform: translateY(0);
  opacity: 1;
}

.blog-sticky-cta-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.blog-sticky-cta-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #e7e3fc;
  font-size: 0.9375rem;
  font-weight: 500;
}

.blog-sticky-cta-text i {
  color: #22c55e;
  font-size: 1.25rem;
}

.blog-sticky-cta-btn {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

.blog-sticky-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.35);
  color: #fff;
  text-decoration: none;
}

.blog-sticky-cta-dismiss {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.25rem;
  line-height: 1;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-sticky-cta-dismiss:hover {
  color: #e7e3fc;
}

/* ============================================
   Blog Index Hero CTA
   ============================================ */
.blog-hero {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.02) 100%);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
}

.blog-hero-content {
  flex: 1;
}

.blog-hero-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e7e3fc;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.blog-hero-title i {
  color: #22c55e;
  font-size: 1.5rem;
}

.blog-hero-text {
  color: #a5a3ae;
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.5;
}

.blog-hero-btn {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
  color: #fff;
  text-decoration: none;
}

.blog-hero-btn i {
  font-size: 1.125rem;
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 768px) {
  .blog-cta-section {
    padding: 2rem 1.5rem;
    margin: 2rem 0 1.5rem;
  }

  .blog-cta-icon {
    width: 56px;
    height: 56px;
  }

  .blog-cta-icon i {
    font-size: 1.5rem;
  }

  .blog-cta-section h3 {
    font-size: 1.25rem;
  }

  .blog-cta-section p {
    font-size: 0.9375rem;
  }

  .blog-sticky-cta {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }

  .blog-sticky-cta-content {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .blog-sticky-cta-text {
    font-size: 0.8125rem;
  }

  .blog-sticky-cta-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }

  .blog-sticky-cta-dismiss {
    right: 0.5rem;
    top: 0.5rem;
    transform: none;
  }

  .blog-hero {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .blog-hero::before {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: 3px;
  }

  .blog-hero-title {
    justify-content: center;
  }

  .blog-hero-text {
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .blog-cta-section {
    padding: 1.5rem 1rem;
  }

  .blog-cta-section .btn-primary {
    width: 100%;
    padding: 0.75rem 1.5rem;
  }

  .blog-sticky-cta-text span:not(.blog-sticky-cta-text i) {
    display: none;
  }

  .blog-sticky-cta-text::after {
    content: 'Join 5,000+ hackers';
  }
}
