/* =============================================
   Case Study Template Styles
   ============================================= */

/* === CS Hero === */
.cs-hero {
  padding-top: calc(var(--nav-height) + var(--space-80));
  padding-bottom: var(--space-40);
}

.cs-hero__tagline {
  font-size: var(--text-xl);
  color: var(--light-90);
  line-height: var(--leading-relaxed);
  max-width: 720px;
}

/* === CS Hero Image === */
.cs-hero-image {
  padding-bottom: var(--space-64);
}

.cs-hero-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
}

/* === CS Metadata Block (At a Glance) === */
.cs-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-32);
  padding: var(--space-40);
  background: rgba(255, 255, 255, 0.03);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-64);
}

.cs-meta__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.cs-meta__item--full {
  grid-column: 1 / -1;
}

.cs-meta__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--primary-100);
}

.cs-meta__value {
  font-size: var(--text-lg);
  color: var(--light-90);
  line-height: var(--leading-relaxed);
}

/* === CS Content Sections === */
.cs-section {
  max-width: var(--width-content);
  margin-left: auto;
  margin-right: auto;
  padding: var(--space-48) 0;
}

.cs-section__heading {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-24);
  background: linear-gradient(135deg, var(--gradient-purple-lt), var(--gradient-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cs-section__body {
  font-size: var(--text-lg);
  color: var(--light-90);
  line-height: var(--leading-relaxed);
}

.cs-section__body p {
  margin-bottom: var(--space-20);
}

.cs-section__body p:last-child {
  margin-bottom: 0;
}

.cs-section__body strong {
  color: var(--light-100);
  font-weight: 600;
}

.cs-section__body ul,
.cs-section__body ol {
  margin-bottom: var(--space-20);
  padding-left: 1.5em;
}

.cs-section__body ul {
  list-style: disc;
}

.cs-section__body ol {
  list-style: decimal;
}

.cs-section__body li {
  margin-bottom: var(--space-8);
}

/* === CS Gallery Blocks === */
.cs-gallery {
  max-width: var(--width-wide);
  margin-left: auto;
  margin-right: auto;
  padding: var(--space-48) 0;
}

.cs-gallery img {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
}

.cs-gallery__full {
  margin-bottom: var(--space-24);
}

.cs-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-24);
  margin-bottom: var(--space-24);
}

.cs-gallery__caption {
  font-size: var(--text-sm);
  color: var(--light-80);
  margin-top: var(--space-12);
  font-style: italic;
  line-height: var(--leading-relaxed);
}

/* === CS Deliverables Tags === */
.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-top: var(--space-16);
}

.cs-tag {
  display: inline-flex;
  padding: var(--space-8) var(--space-16);
  background: var(--surface-85);
  border: var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--light-90);
  line-height: 1;
}

/* === CS Pagination (prev/next project) === */
.cs-pagination {
  display: flex;
  align-items: center;
  gap: var(--space-32);
}

.cs-pagination__center {
  flex: 1;
  text-align: center;
}

.cs-pagination__btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface-90);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--light-90);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: background var(--duration-fast) ease,
              border-color var(--duration-fast) ease;
}

.cs-pagination__btn:hover {
  background: var(--surface-80);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--light-100);
}

/* === CS Next Project CTA === */
.cs-cta {
  text-align: center;
}

/* === CS Work-in-Progress Banner === */
.cs-wip {
  text-align: center;
  padding: var(--space-48) 0;
}

.cs-wip__badge {
  display: inline-block;
  padding: var(--space-12) var(--space-24);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-sm);
  font-style: italic;
  letter-spacing: 0.03em;
}

/* === CS Divider (between sections) === */
.cs-divider {
  border: none;
  border-top: var(--border-subtle);
  max-width: var(--width-content);
  margin: 0 auto;
}
