/* public_html/assets/css/help-center.css */

/* ===== HELP CENTER SPECIFIC STYLES ONLY ===== */

/* Variables */
:root {
  --primary-color: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #60a5fa;
  --secondary-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --dark-bg: #0f172a;
  --dark-card: #1e293b;
  --dark-border: #334155;
  --dark-text: #e2e8f0;
  --dark-text-light: #94a3b8;
  --light-bg: #f8fafc;
  --light-card: #ffffff;
  --light-border: #e2e8f0;
  --light-text: #1e293b;
  --light-text-light: #64748b;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Base Styles */
.help-center-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  color: var(--light-text);
}

/* ===== Help Center Hero Section (matching contact.php) ===== */
.help-center-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 150px 40px 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: transparent;
}

.help-center-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.help-center-hero-content {
  max-width: 800px;
  margin: 0 auto;
  z-index: 2;
}

.help-center-hero h1 {
  font-size: 52px;
  line-height: 1.2;
  margin-bottom: 25px;
  background: linear-gradient(to right, #f8fafc, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  overflow: hidden;
}

.help-center-tagline {
  font-size: 14px;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  display: inline-block;
  padding: 5px 15px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 30px;
  animation: fadeIn 1s ease;
}

.help-center-description {
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 35px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeIn 1.5s ease;
}

.help-center-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.7;
  background: radial-gradient(
      circle at 30% 30%,
      rgba(59, 130, 246, 0.1) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(139, 92, 246, 0.1) 0%,
      transparent 40%
    ),
    linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, transparent 50%);
  background-size: 200% 200%;
  animation: gradientShift 22s ease infinite;
}

/* Search Box in Hero */
.help-center-hero .faq-search.help-center-search {
  max-width: 600px;
  margin: 40px auto 0;
  position: relative;
}

.help-center-hero .faq-search .search-form {
  position: relative;
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.help-center-hero .faq-search .search-form:focus-within {
  border-color: #3b82f6;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.help-center-hero .faq-search .search-input {
  width: 100%;
  padding: 18px 25px;
  background: transparent;
  border: none;
  border-radius: 50px 0 0 50px;
  color: #f8fafc;
  font-size: 16px;
  transition: all 0.3s ease;
}

.help-center-hero .faq-search .search-input:focus {
  outline: none;
}

.help-center-hero .faq-search .search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.help-center-hero .faq-search .search-btn {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 0 30px;
  border-radius: 0 50px 50px 0;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-width: 100px;
}

.help-center-hero .faq-search .search-btn:hover {
  background: #60a5fa;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

/* White theme for main content sections */
.help-center-white-theme {
  background: white !important;
  padding: 80px 0;
  position: relative;
}

.help-center-white-theme .help-center-wrapper {
  background: white !important;
  color: #333 !important;
}

.help-center-white-theme .action-card,
.help-center-white-theme .article-card,
.help-center-white-theme .category-card {
  background: #f8f9fa !important;
  border: 1px solid #e9ecef !important;
  color: #333 !important;
}

.help-center-white-theme .action-card h3,
.help-center-white-theme .article-card h3,
.help-center-white-theme .category-card h3,
.help-center-white-theme .section-title {
  color: #333 !important;
}

.help-center-white-theme .action-card p,
.help-center-white-theme .article-card p,
.help-center-white-theme .category-card p,
.help-center-white-theme .article-category {
  color: #666 !important;
}

.help-center-white-theme .article-card h3 a {
  color: #333 !important;
}

.help-center-white-theme .article-card h3 a:hover {
  color: #3b82f6 !important;
}

.help-center-white-theme .read-more,
.help-center-white-theme .browse-link {
  color: #3b82f6 !important;
}

.help-center-white-theme .article-count {
  background: #e9ecef !important;
  color: #333 !important;
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 60px;
}

.action-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--light-border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.action-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-color);
}

.action-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.action-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.action-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.action-card h3 {
  margin-bottom: 10px;
  color: var(--light-text);
}

.action-card p {
  color: var(--light-text-light);
  margin: 0;
}

/* Sections */
.section-title {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--light-text);
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* Featured Articles */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.article-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 25px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--light-border);
  transition: var(--transition);
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.article-category {
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-card h3 {
  margin-bottom: 15px;
  line-height: 1.4;
}

.article-card h3 a {
  color: var(--light-text);
  text-decoration: none;
  transition: var(--transition);
}

.article-card h3 a:hover {
  color: var(--primary-color);
}

.article-card p {
  color: var(--light-text-light);
  margin-bottom: 20px;
  line-height: 1.6;
}

.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.read-more:hover {
  gap: 10px;
}

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  margin-bottom: 60px;
}

.category-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--light-border);
  transition: var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.category-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.category-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  min-width: 60px;
  text-align: center;
}

.category-content {
  flex: 1;
}

.category-card h3 {
  margin-bottom: 10px;
  color: var(--light-text);
}

.category-card p {
  color: var(--light-text-light);
  margin-bottom: 20px;
  line-height: 1.6;
}

.category-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.article-count {
  background: var(--light-bg);
  color: var(--light-text-light);
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.browse-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.browse-link:hover {
  gap: 10px;
}

/* Contact CTA */
.contact-cta {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: var(--radius-lg);
  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;
  color: white !important;
  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 buttons - use global cta-button class */
.contact-cta .cta-buttons .cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Responsive */
@media (max-width: 768px) {
  .help-center-hero {
    padding: 130px 20px 60px;
  }
  
  .help-center-hero h1 {
    font-size: 36px;
  }
  
  .help-center-hero .faq-search.help-center-search {
    max-width: 500px;
  }
  
  .contact-cta .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-cta .cta-buttons .cta-button {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .help-center-hero {
    padding: 100px 15px 40px;
    min-height: 60vh;
  }
  
  .help-center-hero h1 {
    font-size: 32px;
  }
  
  .help-center-hero .faq-search.help-center-search {
    max-width: 400px;
  }
  
  .help-center-hero .faq-search .search-input {
    padding: 16px 20px;
    font-size: 15px;
  }
  
  .help-center-hero .faq-search .search-btn {
    padding: 0 20px;
    font-size: 15px;
    min-width: 80px;
  }
}

/* Hide original help-hero styles */
.help-hero {
  display: none;
}

.search-form-large,
.search-input-group,
.search-input-group input,
.search-btn {
  display: none;
}