/* ===== Case Study Page Styles ===== */

.case-study {
  padding-top: 64px;
  padding-bottom: 16px;
}

.back-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  transition: color var(--transition);
}

.back-link:hover {
  color: var(--color-accent);
}

.case-study-header {
  margin-bottom: 16px;
}

.case-study-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 8px 0 6px;
  line-height: 1.2;
}

.case-study-subtitle {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

/* Meta Grid - inline */
.case-study-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 16px;
}

.meta-item {
  display: flex;
  gap: 4px;
  align-items: baseline;
}

.meta-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--color-text-muted);
}

.meta-value {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text);
}

/* Image */
.case-study-image-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #e8ecff, #f0e6ff);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
  overflow: hidden;
}

/* Content Sections */
.case-study-section {
  margin-bottom: 6px;
  padding: 0;
}

.case-study-section h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 3px;
  color: var(--color-text);
}

.case-study-section h3 {
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 6px;
  margin-bottom: 3px;
  color: var(--color-text-muted);
}

.case-study-section p {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 720px;
  margin-bottom: 4px;
}

.case-study-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.case-study-section ul li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 3px;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.case-study-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* Navigation */
.case-study-nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
  margin-top: 12px;
}

/* Reflections */
.reflections {
  margin-top: 10px;
  padding: 12px;
  background: rgba(74, 108, 247, 0.04);
  border-radius: 8px;
  border-left: 3px solid var(--color-accent);
}

.reflections h2 {
  font-size: 0.95rem;
  color: var(--color-accent);
}

.prev-study,
.next-study {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-accent);
  transition: color var(--transition);
}

.prev-study:hover,
.next-study:hover {
  color: var(--color-accent-hover);
}

.next-study {
  margin-left: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .case-study {
    padding-top: 60px;
  }

  .case-study-meta {
    flex-direction: column;
    gap: 6px;
  }

  .case-study-image-placeholder {
    height: 160px;
  }
}
