/* ===== NEW: Help Center Hero Section for Article Page ===== */
.article-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 150px 40px 60px;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.article-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.article-hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 2;
}

.article-hero .article-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
  font-size: 14px;
  color: #cbd5e1;
}

.article-hero .article-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.1);
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 500;
  letter-spacing: 0.3px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  white-space: nowrap;
  height: 36px;
  box-sizing: border-box;
  line-height: 1;
}

.article-hero .article-meta i {
  font-size: 13px;
  color: #60a5fa;
}

.article-hero h1 {
  font-size: 42px;
  line-height: 1.3;
  margin-bottom: 20px;
  background: linear-gradient(to right, #f8fafc, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  overflow: hidden;
}

.article-hero-excerpt {
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.article-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.7;
  background:
    radial-gradient(
      circle at 30% 50%,
      rgba(59, 130, 246, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 30%,
      rgba(139, 92, 246, 0.15) 0%,
      transparent 50%
    );
  background-size: 200% 200%;
  animation: gradientShift 22s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* White theme for main content sections */
.article-white-theme {
  background: white !important;
  padding: 60px 0;
  position: relative;
}

.article-white-theme .article-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  background: white !important;
  color: #333 !important;
}

/* Article Content Styles */
.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #1e293b;
  margin-bottom: 50px;
}

.article-content h2,
.article-content h3 {
  margin-top: 40px;
  margin-bottom: 20px;
  color: #1e293b;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}

.article-content h2 {
  font-size: 28px;
}

.article-content h3 {
  font-size: 22px;
}

.article-content p {
  margin-bottom: 20px;
  color: #1e293b;
}

.article-content ul,
.article-content ol {
  margin-bottom: 20px;
  padding-left: 30px;
}

.article-content li {
  margin-bottom: 10px;
  color: #1e293b;
}

.article-content code {
  background: #f1f5f9;
  color: #dc2626;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
}

.article-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 20px;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

.article-content blockquote {
  border-left: 4px solid #3b82f6;
  padding-left: 20px;
  margin: 20px 0;
  color: #64748b;
  font-style: italic;
}

/* Helpfulness Rating - Updated to match help-center theme */
.article-feedback {
  background: #f8fafc !important;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  margin: 50px 0;
  border: 1px solid #e2e8f0 !important;
}

.article-feedback h3 {
  margin-bottom: 25px;
  color: #333 !important;
  font-size: 24px;
}

.feedback-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 25px 0;
}

.btn-helpful,
.btn-not-helpful {
  padding: 12px 35px;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  background: white;
  color: #333;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Poppins", sans-serif;
}

.btn-helpful:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #10b981;
  color: white;
}

.btn-not-helpful:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: #ef4444;
  color: white;
}

.btn-helpful.voted {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #10b981;
  color: white;
}

.btn-not-helpful.voted {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: #ef4444;
  color: white;
}

.feedback-counts {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  color: #666;
  font-size: 14px;
}

.separator {
  opacity: 0.5;
}

/* Related Articles - Updated to match help-center */
.related-articles {
  margin: 60px 0;
}

.related-articles h2 {
  font-size: 32px;
  margin-bottom: 30px;
  color: #333;
  position: relative;
  padding-bottom: 15px;
}

.related-articles h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: #3b82f6;
  border-radius: 2px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.article-card {
  background: #f8f9fa !important;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef !important;
  transition: all 0.3s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border-color: #3b82f6 !important;
}

.article-card h3 {
  margin-bottom: 15px;
  line-height: 1.4;
  font-size: 20px;
}

.article-card h3 a {
  color: #333 !important;
  text-decoration: none;
  transition: color 0.3s ease;
}

.article-card h3 a:hover {
  color: #3b82f6 !important;
}

.article-card p {
  color: #666 !important;
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 15px;
}

.read-more {
  color: #3b82f6 !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.3s ease;
}

.read-more:hover {
  gap: 10px;
}

/* Back to Help Center - Updated to match help-center buttons */
.back-to-help {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
  padding-top: 30px;
  border-top: 1px solid #e9ecef;
}

.back-to-help .cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  color: white;
  text-decoration: none;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  position: relative;
  overflow: hidden;
  font-family: "Poppins", sans-serif;
  line-height: 1;
}

.back-to-help .cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.back-to-help .cta-button:hover::before {
  left: 100%;
}

.back-to-help .cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
  color: white;
}

/* DARK THEME "STILL NEED HELP?" SECTION (identical to help-center) */
.contact-cta {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 16px;
  padding: 60px 40px;
  text-align: center;
  color: white;
  margin-bottom: 40px;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: white;
}

.cta-content p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-cta .cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  color: white;
  text-decoration: none;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  position: relative;
  overflow: hidden;
  font-family: "Poppins", sans-serif;
  line-height: 1;
}

.contact-cta .cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.contact-cta .cta-button:hover::before {
  left: 100%;
}

.contact-cta .cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
  color: white;
}

/* Remove old button styles */
.contact-cta .btn-primary,
.contact-cta .btn-secondary {
  display: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .article-hero {
    padding: 130px 20px 40px;
    min-height: 50vh;
  }

  .article-hero h1 {
    font-size: 32px;
  }

  .article-hero-excerpt {
    font-size: 16px;
  }

  .article-hero .article-meta {
    gap: 10px;
  }

  .article-hero .article-meta span {
    font-size: 12px;
    padding: 6px 14px;
    height: 32px;
  }

  .feedback-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-helpful,
  .btn-not-helpful {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .related-articles h2 {
    font-size: 28px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .contact-cta {
    padding: 40px 20px;
  }

  .contact-cta .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .contact-cta .cta-button {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .article-hero {
    padding: 100px 15px 30px;
    min-height: 40vh;
  }

  .article-hero h1 {
    font-size: 28px;
  }

  .article-content h2 {
    font-size: 24px;
  }

  .article-content h3 {
    font-size: 20px;
  }

  .article-hero .article-meta {
    flex-direction: column;
    align-items: center;
  }

  .article-hero .article-meta span {
    width: fit-content;
  }
}
