/* Help Scout Custom Stylesheet - Nudgify Knowledge Base */

/* ===== Typography ===== */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #32373c;
  background: #F9FAFB;
}

/* ===== Navbar ===== */
.navbar .navbar-inner {
  background: #ffffff;
  border-bottom: 1px solid #EAECF0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.navbar .brand {
  display: block;
  text-align: center;
  float: none;
  margin: 10px 0;
  padding: 0;
}

.navbar .brand img {
  height: 30px;
  width: auto;
}

.navbar .nav li a,
.navbar .nav li a:hover,
.navbar .nav li a:focus,
.navbar .nav .active a {
  color: #32373c;
}

/* Hide mobile nav toggle button */
.btn.btn-navbar {
  display: none;
}

/* Hide nav links and caret */
.navbar .nav {
  display: none;
}

/* ===== Search Section ===== */
#docsSearch {
  background: #ffffff;
  border-bottom: 1px solid #EAECF0;
}

#docsSearch h1 {
  color: #32373c;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 24px;
}

#searchBar .search-query {
  border: 2px solid #D0D5DD;
  border-radius: 9999px;
  padding: 14px 24px;
  font-size: 16px;
  color: #32373c;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s ease;
}

#searchBar .search-query:focus {
  border-color: #0693e3;
  outline: none;
  box-shadow: 0 0 0 3px rgba(6, 147, 227, 0.15);
}

#searchBar button {
  background: #32373c;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

#searchBar button:hover {
  background: #1a1d20;
}

/* ===== Category Cards ===== */
.category-list {
  padding: 40px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-items: center;
}

.category-list .category {
  width: 90%;
  background: #ffffff;
  border: 1px solid #EAECF0;
  border-radius: 12px;
  padding: 28px 24px;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
  text-decoration: none;
}

.category-list .category:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.category-list .category h3 {
  color: #32373c;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.category-list .category .article-count {
  color: #0693e3;
  font-size: 14px;
  font-weight: 500;
}

/* ===== Content Area ===== */
#contentArea {
  background: #F9FAFB;
}

/* ===== Links ===== */
#fullArticle a,
.collection a,
.contentWrapper a,
.most-pop-articles .popArticles a {
  color: #0693e3;
  text-decoration: none;
  transition: color 0.2s ease;
}

#fullArticle a:hover,
.collection a:hover,
.contentWrapper a:hover,
.most-pop-articles .popArticles a:hover {
  color: #0574b8;
}

/* ===== Article Content ===== */
#fullArticle,
#fullArticle p,
#fullArticle ul,
#fullArticle ol,
#fullArticle li,
#fullArticle div,
#fullArticle blockquote,
#fullArticle dd,
#fullArticle table {
  color: #32373c;
  line-height: 1.7;
}

/* ===== Search Results Dropdown ===== */
#serp-dd .result a:hover,
#serp-dd .result > li.active {
  color: #0693e3;
}

/* ===== Footer ===== */
footer.center {
  width: 100%;
  height: 30px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

footer p {
  color: #667085;
  font-size: 14px;
  margin-bottom: 0;
}

footer p a {
  color: #32373c;
  text-decoration: none;
}

/* Responsive: single column on mobile */
@media (max-width: 768px) {
  .category-list {
    grid-template-columns: 1fr;
  }
}

/* Hide the "Powered by Help Scout" text */
footer p span {
  display: none;
}
