/**
 * UMOJI STUDIO — SITEMAP DIRECTORY STYLESHEET
 * Clean, modern light-mode design conforming to Umoji Studio's design system.
 */

.sitemap-page {
  background-color: #ffffff;
  color: #1e1e1e;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.sitemap-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   1. HERO HEADER & SEARCH
   ========================================================================== */
.sitemap-hero {
  padding-top: calc(var(--nav-height, 72px) + var(--topbar-height, 46px) + 48px);
  padding-bottom: 48px;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at 50% -20%, rgba(18, 110, 245, 0.06), transparent 70%);
  border-bottom: 1px solid #ededed;
}

.sitemap-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #737373;
  margin-bottom: 16px;
}

.sitemap-breadcrumb a {
  color: #737373;
  text-decoration: none;
  transition: color 0.15s ease;
}

.sitemap-breadcrumb a:hover {
  color: #126EF5;
}

.sitemap-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 9999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.sitemap-hero__title {
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 800;
  color: #1e1e1e;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 12px 0;
}

.sitemap-hero__title-highlight {
  color: #126EF5;
}

.sitemap-hero__subtitle {
  font-size: 15.5px;
  color: #555555;
  max-width: 680px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* Search Bar */
.sitemap-search-wrap {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.sitemap-search-input {
  width: 100%;
  padding: 14px 44px 14px 46px;
  border-radius: 14px;
  border: 1.5px solid #ededed;
  background: #ffffff;
  font-size: 14.5px;
  color: #1e1e1e;
  outline: none;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.sitemap-search-input:focus {
  border-color: #126EF5;
  box-shadow: 0 0 0 4px rgba(18, 110, 245, 0.12), 0 6px 20px rgba(15, 23, 42, 0.06);
}

.sitemap-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #737373;
  pointer-events: none;
}

.sitemap-search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  color: #737373;
  font-size: 15px;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sitemap-search-clear:hover {
  background: #e2e8f0;
  color: #1e1e1e;
}

.sitemap-search-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12.5px;
  color: #737373;
  padding: 0 4px;
}

.sitemap-xml-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #126EF5;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}

.sitemap-xml-badge:hover {
  color: #0b4fd8;
  text-decoration: underline;
}

/* Stat Counters Row */
.sitemap-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.sitemap-stat-card {
  background: #ffffff;
  border: 1px solid #ededed;
  border-radius: 12px;
  padding: 14px 18px;
  text-align: left;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
}

.sitemap-stat-num {
  font-size: 22px;
  font-weight: 800;
  color: #126EF5;
  line-height: 1.1;
  margin-bottom: 2px;
}

.sitemap-stat-label {
  font-size: 12.5px;
  color: #737373;
  font-weight: 500;
}

/* ==========================================================================
   2. SECTIONS & CARDS DIRECTORY
   ========================================================================== */
.sitemap-body {
  padding: 56px 0 80px;
}

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

.sitemap-section__header {
  margin-bottom: 24px;
  border-bottom: 1px solid #ededed;
  padding-bottom: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.sitemap-section__title-group {
  flex: 1;
}

.sitemap-section__title {
  font-size: 20px;
  font-weight: 700;
  color: #1e1e1e;
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}

.sitemap-section__icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #eff6ff;
  color: #126EF5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sitemap-section__desc {
  font-size: 13.5px;
  color: #737373;
  margin: 0;
}

.sitemap-section__count {
  font-size: 12px;
  font-weight: 600;
  color: #737373;
  background: #fafafa;
  border: 1px solid #ededed;
  padding: 4px 10px;
  border-radius: 9999px;
  white-space: nowrap;
}

/* Primary Navigation Grid */
.sitemap-primary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.sitemap-primary-card {
  background: #fafafa;
  border: 1px solid #ededed;
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.sitemap-primary-card:hover {
  background: #ffffff;
  border-color: #126EF5;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -4px rgba(18, 110, 245, 0.12);
}

.sitemap-primary-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #ededed;
  color: #126EF5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: all 0.2s;
}

.sitemap-primary-card:hover .sitemap-primary-card__icon {
  background: #126EF5;
  color: #ffffff;
  border-color: #126EF5;
}

.sitemap-primary-card__title {
  font-size: 16px;
  font-weight: 700;
  color: #1e1e1e;
  margin: 0 0 4px 0;
}

.sitemap-primary-card__desc {
  font-size: 12.5px;
  color: #737373;
  line-height: 1.5;
  margin: 0 0 10px 0;
  flex: 1;
}

.sitemap-primary-card__url {
  font-size: 11.5px;
  color: #126EF5;
  font-family: monospace;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Core Services Grid (8 Spesiailisasi) */
.sitemap-core-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.sitemap-core-card {
  background: #fafafa;
  border: 1px solid #ededed;
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.sitemap-core-card:hover {
  background: #ffffff;
  border-color: #126EF5;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -4px rgba(18, 110, 245, 0.12);
}

.sitemap-core-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.sitemap-core-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #ededed;
  color: #126EF5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.sitemap-core-card:hover .sitemap-core-card__icon {
  background: #126EF5;
  color: #ffffff;
  border-color: #126EF5;
}

.sitemap-core-card__title {
  font-size: 15.5px;
  font-weight: 700;
  color: #1e1e1e;
  line-height: 1.3;
}

.sitemap-core-card__desc {
  font-size: 12.5px;
  color: #555555;
  line-height: 1.5;
  margin: 0 0 12px 0;
  flex: 1;
}

.sitemap-core-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  padding-top: 10px;
  border-top: 1px dashed #ededed;
}

.sitemap-core-card__url {
  font-family: monospace;
  color: #737373;
}

.sitemap-core-card__arrow {
  color: #126EF5;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* Specialized Services (List Columns) */
.sitemap-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
}

.sitemap-spec-group {
  background: #fafafa;
  border: 1px solid #ededed;
  border-radius: 14px;
  padding: 22px;
}

.sitemap-spec-group__title {
  font-size: 16px;
  font-weight: 700;
  color: #1e1e1e;
  margin: 0 0 14px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #ededed;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sitemap-spec-group__badge {
  font-size: 11.5px;
  color: #737373;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid #ededed;
  padding: 2px 8px;
  border-radius: 6px;
}

.sitemap-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sitemap-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #ededed;
  color: #1e1e1e;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.sitemap-link-item:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #126EF5;
  padding-left: 16px;
}

.sitemap-link-item__name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sitemap-link-item__icon {
  color: #737373;
  flex-shrink: 0;
  transition: transform 0.15s;
}

.sitemap-link-item:hover .sitemap-link-item__icon {
  color: #126EF5;
  transform: translateX(3px);
}

/* Regional Geo Directory */
.sitemap-geo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.sitemap-geo-tab-btn {
  padding: 6px 14px;
  border-radius: 9999px;
  background: #fafafa;
  border: 1px solid #ededed;
  color: #555555;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sitemap-geo-tab-btn:hover {
  background: #f1f5f9;
  color: #1e1e1e;
  border-color: #cbd5e1;
}

.sitemap-geo-tab-btn.is-active {
  background: #126EF5;
  color: #ffffff;
  border-color: #126EF5;
}

.sitemap-geo-tab-btn .tab-count {
  font-size: 11px;
  opacity: 0.8;
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 6px;
  border-radius: 9999px;
}

.sitemap-geo-tab-btn.is-active .tab-count {
  background: rgba(255, 255, 255, 0.25);
}

.sitemap-geo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

.sitemap-geo-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  background: #ffffff;
  border: 1px solid #ededed;
  border-radius: 8px;
  text-decoration: none;
  font-size: 12.5px;
  color: #333333;
  font-weight: 500;
  transition: all 0.15s ease;
}

.sitemap-geo-link:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #126EF5;
  transform: translateX(2px);
}

.sitemap-geo-link__city {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #126EF5;
  background: #eff6ff;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Blog Articles Section */
.sitemap-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.sitemap-blog-card {
  background: #fafafa;
  border: 1px solid #ededed;
  border-radius: 12px;
  padding: 18px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.sitemap-blog-card:hover {
  background: #ffffff;
  border-color: #126EF5;
  box-shadow: 0 10px 24px -4px rgba(18, 110, 245, 0.12);
}

.sitemap-blog-card__category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #126EF5;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.sitemap-blog-card__title {
  font-size: 15px;
  font-weight: 700;
  color: #1e1e1e;
  line-height: 1.4;
  margin: 0 0 8px 0;
}

.sitemap-blog-card__url {
  font-size: 11.5px;
  font-family: monospace;
  color: #737373;
}

/* No Results State */
.sitemap-no-results {
  display: none;
  text-align: center;
  padding: 60px 20px;
  background: #fafafa;
  border: 1px dashed #ededed;
  border-radius: 16px;
  margin: 20px 0;
}

.sitemap-no-results__title {
  font-size: 18px;
  font-weight: 700;
  color: #1e1e1e;
  margin-bottom: 6px;
}

.sitemap-no-results__desc {
  font-size: 13.5px;
  color: #737373;
}

/* Responsive */
@media (max-width: 991px) {
  .sitemap-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .sitemap-hero {
    padding-top: calc(var(--nav-height, 64px) + var(--topbar-height, 44px) + 28px);
    padding-bottom: 32px;
  }
  .sitemap-stats {
    grid-template-columns: 1fr;
  }
  .sitemap-spec-grid {
    grid-template-columns: 1fr;
  }
}
