/* Case Page Styles */
.case-main {
  padding: 48px 0;
  min-height: calc(100vh - 64px);
}

.case-article {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}

.back-button-wrapper {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground-muted);
  transition: color 0.2s;
}

.back-button:hover {
  color: var(--foreground);
  text-decoration: underline;
}

.case-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.case-description {
  font-size: 1.125rem;
  color: var(--foreground-muted);
  margin-bottom: 48px;
  line-height: 1.625;
}

.case-section {
  margin-bottom: 48px;
}

.case-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.case-text {
  font-size: 1rem;
  color: var(--foreground-muted);
  line-height: 1.625;
}

/* Gallery */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gallery-item {
  display: block;
  width: 100%;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  transition: opacity 0.2s;
}

.gallery-item:hover {
  opacity: 0.9;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: var(--background-elevated);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
}

.modal-close:hover {
  color: white;
}

.modal-image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
}

.modal-nav:hover {
  color: white;
}

.modal-prev { left: 16px; }
.modal-next { right: 16px; }

.modal-counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

/* Responsive */
@media (min-width: 768px) {
  .case-main { padding: 80px 0; }
  .case-title { font-size: 2.5rem; }
  .case-description { font-size: 1.25rem; }
  .case-section-title { font-size: 1.5rem; }
}

/* PDF Link */
.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--foreground-muted);
  transition: color 0.2s;
}

.pdf-link:hover {
  color: var(--foreground);
  text-decoration: underline;
}
