/* =====================================================
   Sitemap Page Styles - Net Pay Kenya
   Custom styling for the HTML sitemap directory
   ===================================================== */

/* Sitemap Container */
.sitemap-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* Sitemap Header */
.sitemap-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--color-border, #e5e7eb);
}

.sitemap-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--color-text-primary, #1a1a1a);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.sitemap-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-secondary, #6b7280);
  max-width: 600px;
  margin: 0 auto;
}

/* Sitemap Grid */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

/* Sitemap Category Card */
.sitemap-category {
  background: var(--color-surface, #ffffff);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.sitemap-category:hover {
  border-color: var(--color-primary, #004526);
  box-shadow: 0 6px 16px rgba(0, 69, 38, 0.15);
  transform: translateY(-2px);
}

.sitemap-category__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary, #004526);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-border-light, #f3f4f6);
}

.sitemap-category__title i {
  font-size: 1.75rem;
  color: var(--color-primary, #004526);
  flex-shrink: 0;
}

/* Sitemap List */
.sitemap-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sitemap-list li {
  margin-bottom: 1rem;
  padding-left: 0;
}

.sitemap-list li:last-child {
  margin-bottom: 0;
}

.sitemap-list a {
  color: var(--color-text-primary, #1a1a1a);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s ease;
  display: inline-block;
  position: relative;
  padding-left: 1.5rem;
}

.sitemap-list a::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-primary, #004526);
  transition: transform 0.2s ease;
}

.sitemap-list a:hover {
  color: var(--color-primary, #004526);
}

.sitemap-list a:hover::before {
  transform: translateX(4px);
}

/* Description text */
.sitemap-list li {
  line-height: 1.6;
  color: var(--color-text-secondary, #6b7280);
}

.sitemap-list a + span {
  display: inline;
  font-size: 0.9rem;
  color: var(--color-text-tertiary, #9ca3af);
  margin-left: 0.5rem;
}

/* Quick Stats Section */
.sitemap-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--color-surface, #ffffff);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  color: var(--color-text-primary, #1a1a1a);
}

.sitemap-stat {
  text-align: center;
}

.sitemap-stat__number {
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-primary, #004526);
}

.sitemap-stat__label {
  font-size: 0.9rem;
  color: var(--color-text-secondary, #6b7280);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Breadcrumb for sitemap */
.sitemap-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary, #6b7280);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.sitemap-breadcrumb a {
  color: var(--color-primary, #004526);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.sitemap-breadcrumb a:hover {
  opacity: 0.7;
}

.sitemap-breadcrumb span {
  color: var(--color-text-tertiary, #9ca3af);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .sitemap-container {
    padding: 2rem 1rem;
  }

  .sitemap-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }

  .sitemap-header h1 {
    font-size: 2rem;
  }

  .sitemap-subtitle {
    font-size: 1rem;
  }

  .sitemap-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sitemap-category {
    padding: 1.5rem;
  }

  .sitemap-category__title {
    font-size: 1.25rem;
  }

  .sitemap-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem;
  }

  .sitemap-stat__number {
    font-size: 2rem;
  }
}

/* Print Styles */
@media print {
  .sitemap-category {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .sitemap-category:hover {
    transform: none;
    box-shadow: none;
  }

  .sitemap-stats {
    border: 1px solid #e5e7eb;
  }
}

/* Dark Mode Support - Removed dark backgrounds, keeping light theme */
@media (prefers-color-scheme: dark) {
  .sitemap-category {
    background: var(--color-surface, #ffffff);
    border-color: var(--color-border, #e5e7eb);
  }

  .sitemap-category__title {
    color: var(--color-primary, #004526);
    border-bottom-color: var(--color-border-light, #f3f4f6);
  }

  .sitemap-list a {
    color: var(--color-text-primary, #1a1a1a);
  }

  .sitemap-list a:hover {
    color: var(--color-primary, #004526);
  }
}
