/* ==========================================================================
   RAMOJI STUDIO — SITEMAP DIRECTORY STYLESHEET (sitemap.css)
   Cinematic Production Index & Navigational Architecture
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero Header (#sd-fiveb.sd-sitemap-hero) — Studio Directory Command Center
   -------------------------------------------------------------------------- */
#sd-fiveb.sd-sitemap-hero {
  position: relative;
  z-index: 10;
  background: #000000;
  color: #ffffff;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  min-height: clamp(520px, 62vh, 720px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(90px, 12vh, 130px) 4vw clamp(40px, 5vh, 60px);
  text-align: center;
  margin: 0;
}

#sd-fiveb.sd-sitemap-hero .sd-fmt-header {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: var(--container-max, 1280px);
  padding: 0 clamp(16px, 3vw, 48px);
  margin: 0 auto;
  box-sizing: border-box;
}

/* Breadcrumbs in Hero */
#sd-fiveb.sd-sitemap-hero .sd-breadcrumbs {
  margin-bottom: clamp(14px, 1.8vh, 22px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-main, "Geist", sans-serif);
  font-size: clamp(12px, 0.85vw, 14px);
  color: rgba(255, 255, 255, 0.6);
}

#sd-fiveb.sd-sitemap-hero .sd-breadcrumbs a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.25s ease;
}

#sd-fiveb.sd-sitemap-hero .sd-breadcrumbs a:hover {
  color: #ffffff;
}

#sd-fiveb.sd-sitemap-hero .sd-breadcrumbs .sd-bc-sep {
  opacity: 0.4;
}

#sd-fiveb.sd-sitemap-hero .sd-breadcrumbs .sd-bc-current {
  color: #ffffff;
  font-weight: 500;
}

/* Category Badge */
.sd-sitemap-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(227, 30, 36, 0.12);
  color: #ff4d4f;
  border: 1px solid rgba(227, 30, 36, 0.35);
  padding: 6px 16px;
  border-radius: 999px;
  font-family: var(--font-mono, monospace);
  font-size: clamp(10.5px, 0.72vw, 12px);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: clamp(12px, 1.5vh, 18px);
}

.sd-sitemap-badge i {
  font-size: 1.15em;
  color: #e31e24;
}

/* Display Titles */
.sd-sitemap-title {
  font-family: Anton, sans-serif;
  font-size: clamp(64px, 11vw, 130px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
  text-shadow: 0 6px 36px rgba(0, 0, 0, 0.6);
}

.sd-sitemap-subtitle {
  font-family: Anton, sans-serif;
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: #f1efea;
  text-transform: uppercase;
  margin: 8px 0 clamp(14px, 1.8vh, 20px);
}

.sd-sitemap-intro {
  font-family: "Geist", Helvetica, Arial, sans-serif;
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 400;
  line-height: 1.55;
  color: #b5b0a6;
  max-width: 680px;
  margin: 0 auto clamp(24px, 3vh, 32px);
  text-wrap: balance;
}

/* Instant Real-Time Filter & Search Input */
.sd-sitemap-filter-wrap {
  width: 100%;
  max-width: 580px;
  margin: 0 auto clamp(16px, 2vh, 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.sd-sitemap-search-box {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

.sd-sitemap-search-box i.ri-search-2-line {
  position: absolute;
  left: 18px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 18px;
  pointer-events: none;
}

#sd-sitemap-search {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 14px 44px 14px 48px;
  font-family: "Geist", Helvetica, Arial, sans-serif;
  font-size: 15px;
  border-radius: 4px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

#sd-sitemap-search::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

#sd-sitemap-search:focus {
  border-color: #e31e24;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.2);
}

#sd-sitemap-clear {
  position: absolute;
  right: 14px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 4px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

#sd-sitemap-clear:hover {
  color: #ffffff;
}

.sd-sitemap-stats {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

/* Atmospheric Background */
.sd-sitemap-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.16;
  pointer-events: none;
  mix-blend-mode: luminosity;
  overflow: hidden;
}

.sd-sitemap-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  filter: contrast(120%);
}

/* --------------------------------------------------------------------------
   Directory Section (.sd-sitemap-directory) — Bento Index Grid
   -------------------------------------------------------------------------- */
.sd-sitemap-directory {
  background: #f8f7f4;
  color: #1a1a1a;
  padding: clamp(60px, 8vh, 100px) clamp(16px, 4vw, 48px);
  position: relative;
  z-index: 5;
}

.sd-sitemap-container {
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
}

/* Bento Cards Grid */
.sd-sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}

/* Single Category Card */
.sd-sitemap-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  padding: clamp(24px, 2.8vw, 36px);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.sd-sitemap-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border-color: rgba(227, 30, 36, 0.3);
}

/* Card Header */
.sd-sitemap-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;
}

.sd-sitemap-card-meta {
  display: flex;
  flex-direction: column;
}

.sd-sitemap-card-num {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 700;
  color: #e31e24;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.sd-sitemap-card-title {
  font-family: Anton, sans-serif;
  font-size: clamp(22px, 1.8vw, 28px);
  font-weight: 400;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
  line-height: 1.1;
}

.sd-sitemap-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 4px;
  background: #f1efea;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.sd-sitemap-card:hover .sd-sitemap-card-icon {
  background: #e31e24;
  color: #ffffff;
}

.sd-sitemap-card-desc {
  font-family: "Geist", Helvetica, Arial, sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  color: #666666;
  margin: 0 0 clamp(18px, 2vh, 24px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 14px;
}

/* Links List */
.sd-sitemap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.sd-sitemap-item {
  margin: 0;
  padding: 0;
}

.sd-sitemap-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  margin: 0 -10px;
  border-radius: 4px;
  text-decoration: none;
  color: #1f1f1f;
  font-family: "Geist", Helvetica, Arial, sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.sd-sitemap-link-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sd-sitemap-link-main::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  transition: background-color 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
}

.sd-sitemap-link-badge {
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f1efea;
  color: #555555;
  padding: 2px 7px;
  border-radius: 3px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.sd-sitemap-link-arrow {
  color: rgba(0, 0, 0, 0.3);
  font-size: 16px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.sd-sitemap-link:hover {
  background: #000000;
  color: #ffffff;
  transform: translateX(4px);
}

.sd-sitemap-link:hover .sd-sitemap-link-main::before {
  background: #e31e24;
  transform: scale(1.6);
}

.sd-sitemap-link:hover .sd-sitemap-link-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.sd-sitemap-link:hover .sd-sitemap-link-arrow {
  opacity: 1;
  transform: translateX(0);
  color: #ffffff;
}

/* No Results Message */
.sd-sitemap-no-results {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border: 1px dashed rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  grid-column: 1 / -1;
  display: none;
}

.sd-sitemap-no-results i {
  font-size: 40px;
  color: #999999;
  margin-bottom: 12px;
  display: block;
}

.sd-sitemap-no-results h3 {
  font-family: Anton, sans-serif;
  font-size: 24px;
  margin: 0 0 8px;
  color: #000000;
}

.sd-sitemap-no-results p {
  font-family: "Geist", sans-serif;
  font-size: 14px;
  color: #666666;
  margin: 0 0 18px;
}

/* --------------------------------------------------------------------------
   Bottom Quick Help / Production Action Banner
   -------------------------------------------------------------------------- */
.sd-sitemap-bottom-cta {
  background: #000000;
  color: #ffffff;
  padding: clamp(60px, 8vh, 90px) clamp(16px, 4vw, 48px);
  text-align: center;
  position: relative;
  z-index: 5;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sd-sitemap-bottom-inner {
  max-width: 820px;
  margin: 0 auto;
}

.sd-sitemap-bottom-title {
  font-family: Anton, sans-serif;
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 400;
  text-transform: uppercase;
  margin: 0 0 12px;
  letter-spacing: 0.01em;
  color: #ffffff;
}

.sd-sitemap-bottom-desc {
  font-family: "Geist", Helvetica, Arial, sans-serif;
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.5;
  color: #b5b0a6;
  margin: 0 auto clamp(24px, 3vh, 32px);
  max-width: 600px;
}

.sd-sitemap-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.sd-sitemap-bottom-actions .sd-btn {
  gap: 6px;
}

.sd-sitemap-btn-white {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.sd-sitemap-btn-white:hover {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   Responsive Layout & Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .sd-sitemap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  #sd-fiveb.sd-sitemap-hero {
    min-height: auto;
    padding: 120px 5vw 48px;
  }

  .sd-sitemap-title {
    font-size: clamp(48px, 14vw, 72px);
  }

  .sd-sitemap-subtitle {
    font-size: clamp(18px, 5.2vw, 24px);
  }

  .sd-sitemap-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sd-sitemap-bottom-actions {
    flex-direction: column;
    width: 100%;
  }

  .sd-sitemap-bottom-actions .sd-btn {
    width: 100%;
    justify-content: center;
  }
}
