/*!
Theme Name: Nindo Help Theme
Theme URI: http://underscores.me/
Author: Adnane elkanbougi
Author URI: http://underscores.me/
Description: A demo starter theme
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: nindo-help
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Demo starter Theme is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

:root {
  --primary-color: #1e3a8a;
  --secondary-color: #3b82f6;
  --accent-color: #6366f1;
  --text-color: #333;
  --light-bg: #f8f9fa;
  --border-color: #e5e7eb;
}

body {
  font-family: "Crisp Graphik Medium", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  background-color: var(--light-bg);
  color: var(--text-color);
  line-height: 1.6;
}

h1{
  font-weight: bold !important;
  font-size: 32px !important;
  margin-bottom: 24px !important;
}

h2{
  font-weight: bold !important;
  font-size: 28px !important;
  margin-bottom: 20px !important;
}

h3{
  font-weight: bold !important;
  font-size: 24px !important;
  margin-bottom: 18px !important;
}

h4{
  font-weight: bold !important;
  font-size: 20px !important;
  margin-bottom: 16px !important;
}

.article-title {
    font-size: 17.1px !important;
    line-height: 22px !important;
    min-height: 22px !important;
    max-height: 44px !important;
}


p{
  margin-bottom: 16px !important;
}

ul, ol{
  margin-bottom: 16px !important;
}

.main-header {
  background-color: #05144B;
  color: white;
  padding: 25px 0;
  position: relative;
  overflow: hidden;
}

.header-content {
  position: relative;
  z-index: 1;
}

.logo {
  width: 150px;
  font-weight: bold;
  margin-bottom: 20px;
}

.support-header {
  background: var(--primary-color);
  color: white;
  padding: 40px 0;
}

.support-header .logo {
  font-size: 24px;
  margin-bottom: 0;
}

.language-selector {
  background: rgba(255, 255, 255, 0.2);
  border: 0px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 24px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.language-selector:hover {
  background: rgba(255, 255, 255, 0.2);
}
.container {
  max-width: 300px;
  margin: 0 auto;
  padding: 0 20px;
}
.search-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-box {
  width: 100%;
  padding: 18px 22px 18px 55px;
  border: none;
  text-align: center;
  border-radius: 9px;
  font-size: 18px;
  outline: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.25);
  color: white;
  transition: all 0.3s ease;
}
.home .search-box {
  padding: 15px 20px 15px 50px;
  font-size: 16px;
  color: #333;
  background: rgba(255, 255, 255, 0.95);
}

.search-box:focus {
  background: white;
  color: #333;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

.breadcrumb-nav {
  background: white;
  border-bottom: 1px solid #e9ecef;
  padding: 15px 0;
}

.breadcrumb-nav a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
  color: #4f46e5;
}

.breadcrumb {
  background: none;
  margin: 0;
  padding: 0;
}

.breadcrumb-item a {
  color: var(--accent-color);
  text-decoration: none;
}

.section-title {
  font-size: 21.6px;
  text-align: left;
  letter-spacing: 0;
  margin-top: 30px;
  margin-bottom: 20px;
  color: var(--text-color);
  font-weight: 900;
}

.category-card {
  background: white;
  border-radius: 6px;
  padding: 10px 24px 15px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 0px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  height: 100%;
}

.category-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--accent-color),
    var(--secondary-color)
  );
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

/* .category-card:hover::before {
  transform: scaleX(1);
} */

.category-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.category-img {
  width: 100px;
  align-items: center;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.category-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.category-badge {
  padding: 8px 16px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.5px;
}

.category-title {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin-top: auto;
}
/* 
.category-description {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin-top: auto;
} */

/* Enhanced category colors */
.espace-client .category-badge {
  background: #f99595;
}

.domain .category-badge {
  background: #8580ff;
}

.wordpress .category-badge {
  background: #0087be;
}

.troubleshooting .category-badge {
  background: #e9756e;
}

.nindobuilder .category-badge {
  background: #476da5;
}

.hebergement .category-badge {
  background: #c997fc;
}
.ftp .category-badge {
  background: #b092e0;
}

.php .category-badge {
  background: #b092e0;
}

.serveurs .category-badge {
  background: #ffcb6f;
}

.infogérance .category-badge {
  background: #7eccca;
}
.sauvegarde .category-badge {
  background: #b2d37e;
}
.security .category-badge {
  background: #8ac9bd;
}
.affiliation .category-badge {
  background: #64c978;
}
.one-click .category-badge {
  background: #ed73a0;
}

.espace-client .category-icon {
  background: linear-gradient(135deg, #fecaca, #fca5a5);
  color: #dc2626;
}

.security .category-badge {
  background: #8ac9bd;
}
.security .category-icon {
  background: linear-gradient(135deg, #fecaca, #fca5a5);
  color: #dc2626;
}

.security .category-icon {
  background: linear-gradient(135deg, #fecaca, #fca5a5);
  color: #dc2626;
}

.domaines .category-badge {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}
.domaines .category-icon {
  background: linear-gradient(135deg, #c7d2fe, #a5b4fc);
  color: #4f46e5;
}

.cpanel .category-badge {
  background: #f46c23;
}
.cpanel .category-icon {
  background: linear-gradient(135deg, #fdba74, #fb923c);
  color: #ea580c;
}

.email .category-badge {
  background: #7eccca;
}
.email .category-icon {
  background: linear-gradient(135deg, #6ee7b7, #34d399);
  color: #059669;
}

.consulting .category-badge {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}
.consulting .category-icon {
  background: linear-gradient(135deg, #93c5fd, #60a5fa);
  color: #2563eb;
}

.marketing .category-badge {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}
.marketing .category-icon {
  background: linear-gradient(135deg, #fca5a5, #f87171);
  color: #dc2626;
}

.tech .category-badge {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
}
.tech .category-icon {
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
  color: #0284c7;
}

.ssl .category-badge {
  background: #8ee2a1;
}
.ssl .category-icon {
  background: linear-gradient(135deg, #86efac, #4ade80);
  color: #15803d;
}

.management .category-badge {
  background: linear-gradient(135deg, #a855f7, #9333ea);
}
.management .category-icon {
  background: linear-gradient(135deg, #c4b5fd, #a78bfa);
  color: #9333ea;
}

.support .category-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.support .category-icon {
  background: linear-gradient(135deg, #fed7aa, #fbbf24);
  color: #d97706;
}

.database .category-badge {
  background: #8b8ffc;
}
.database .category-icon {
  background: #8b8ffc;
  color: #0e7490;
}

.facturation .category-badge {
  background: #e5a4ad;
}
.facturation .category-icon {
  background: linear-gradient(135deg, #fbcfe8, #f9a8d4);
  color: #db2777;
}

/* Grid improvements */
/* .categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
} */

.support-sidebar {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  height: fit-content;
  position: sticky;
  top: 20px;
  border: 1px solid var(--border-color);
}

.support-sidebar h5 {
  color: var(--text-color);
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 18px;
}

.support-sidebar .nav-link {
  color: #666;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 4px;
  transition: all 0.3s ease;
  font-weight: 500;
  border: 1px solid transparent;
}

.support-sidebar .nav-link:hover {
  background-color: #f8f9fa;
  color: var(--accent-color);
  border-color: var(--border-color);
}

.support-sidebar .nav-link.active {
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--secondary-color)
  );
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.support-article {
  background: white;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-color);
  transition: all 0.3s ease;
}

.support-article:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.support-article h6 {
  color: var(--accent-color);
  margin-bottom: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  font-size: 16px;
}

.support-article h6 i {
  margin-right: 12px;
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.popularity-rating {
  display: flex;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.popularity-rating .rating-text {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.rating-dots {
  display: flex;
  gap: 4px;
  margin-left: 12px;
}

.rating-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ddd;
  transition: all 0.3s ease;
}

.rating-dot.active {
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--secondary-color)
  );
}

.bottom-section {
  background: white;
  padding: 48px;
  margin-top: 60px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
}

.bottom-section h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-color);
}

.bottom-section p {
  font-size: 16px;
  color: #666;
  margin-bottom: 32px;
}

.btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--secondary-color)
  );
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-outline-primary {
  background: white;
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.btn-outline-primary:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
}

.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--secondary-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
}

.chat-widget:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(99, 102, 241, 0.5);
}

.dot {
  height: 9px;
  width: 9px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
}

/* Category Detail Page Styles */
.category-sidebar-link {
  display: flex;
  text-wrap: nowrap;
  align-items: center;
  padding: 8px 20px;
  color: #1c293b;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.category-sidebar-link:hover {
  background-color: #dfe5eb;
}

.category-sidebar-link.active {
  background-color: #dfe5eb;
  font-weight: 700;
}

.category-sidebar-link i {
  margin-right: 12px;
  font-size: 14px;
  width: 16px;
}

.article-card {
  margin-bottom: 30px;
  cursor: pointer;
}

.article-card h3:hover {
  color: #2563eb;
}

.related-category-card {
  cursor: pointer;
  transition: all 0.2s ease;
}

.related-category-card:hover {
  transform: translateY(-1px);
  border-color: #93c5fd;
}

.breadcrumb-nav {
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Responsive adjustments for category detail */
@media (max-width: 1024px) {
  .lg\:col-span-1 {
    order: 2;
    margin-top: 2rem;
  }

  .lg\:col-span-3 {
    order: 1;
  }

  .sticky {
    position: static;
  }
}

/* Search bar enhancements */
#categorySearch:focus {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 2px #3b82f6;
}

/* Article count badge */
#articleCount {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  background-color: #f3f4f6;
  border-radius: 9999px;
}

/* Category header improvements */
.category-header-icon {
  width: 48px;
  height: 48px;
  padding: 8px;
  background-color: #eff6ff;
  border-radius: 8px;
}

.alert.alert-success {
  background-color: #d1fae5;
  color: #065f46;
  border-color: #bbf7d0;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.alert.alert-warning {
  background-color: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.alert.alert-danger {
  background-color: #fed7aa;
  color: #9a3412;
  border-color: #fb923c;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Animation for article loading */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
