/* ==== AIWisePicks Sitemap Styles ==== */

.sitemap-wrapper {
  max-width: 1200px;
  margin: auto;
  padding: 60px 20px;
  font-family: system-ui, sans-serif;
}

.sitemap-wrapper h1 {
  text-align: center;
  font-size: 42px;
  background: linear-gradient(to right, #3e64ff, #8e2de2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.sitemap-wrapper input#sitemap-search {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 40px;
  display: block;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1.5px solid #ccc;
  font-size: 16px;
}

.sitemap-section {
  margin-bottom: 50px;
}

.sitemap-section h2 {
  background: linear-gradient(to right, #3e64ff, #8e2de2);
  color: white;
  padding: 12px 20px;
  font-size: 22px;
  border-radius: 8px;
  cursor: pointer;
}

.sitemap-section ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
  list-style: none;
  padding-left: 0;
}

.sitemap-section li a {
  display: block;
  padding: 10px 14px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
  color: #333;
  text-decoration: none;
}

.sitemap-section li a:hover {
  background: #f5f8ff;
  color: #3e64ff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 40px;
  right: 30px;
  z-index: 999;
  background-color: #3e64ff;
  color: white;
  width: 40px;
  height: 40px;
  font-size: 20px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Reading Progress Bar */
#reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(to right, #3e64ff, #8e2de2);
  width: 0%;
  z-index: 9999;
  transition: width 0.2s ease-out;
}
.sitemap-toc {
  text-align: center;
  margin: 20px auto 30px;
  max-width: 100%;
  padding: 0 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.sitemap-toc a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  background: #f3f6ff;
  color: #3e64ff;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.sitemap-toc a:hover {
  background: #e0e7ff;
}

.sitemap-toc a.active {
  background: #3e64ff;
  color: #fff;
}
