/* ===== CASE PAGE ===== */
.case-page {
  padding-top: 320px;
}

/* ===== READING PROGRESS (espelha o blog) ===== */
.reading-progress {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 99;
  background: var(--color-low);
}

.reading-progress-fill {
  height: 100%;
  background: var(--color-accent);
  width: 0%;
  transition: width 0.1s linear;
}

.case-header-section {
  padding: 0 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-subtitle {
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
  color: var(--color-mid);
}

.case-title {
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  color: var(--color-dark);
  text-wrap: balance;
}

.case-hero {
  display: flex;
  gap: 24px;
  padding: 0 48px;
  margin-top: 48px;
}

.case-hero-visual {
  width: 888px;
  height: 490px;
  flex-shrink: 0;
  background: var(--color-fixed-dark);
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.case-hero-img {
  width: 80%;
  height: auto;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.case-hero-visual:hover .case-hero-img {
  transform: scale(1.04);
}

.case-meta {
  display: grid;
  grid-template-columns: 1fr;
  flex: 1;
  min-width: 0;
}

.case-meta-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  column-gap: 16px;
  row-gap: 0;
  padding: 18px 0;
  border-top: 1px solid var(--color-low);
  align-items: baseline;
}

.case-meta-item:last-child {
  border-bottom: 1px solid var(--color-low);
}

.case-meta-label {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-mid);
}

.case-meta-value {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-dark);
  grid-column: 2;
  text-align: right;
}

.case-meta-value + .case-meta-value {
  margin-top: 4px;
}

.case-section {
  padding: 0 48px;
  margin-top: 80px;
  max-width: 1164px;
  margin-left: auto;
  margin-right: auto;
}

.case-img-full {
  width: 100%;
  max-width: 1344px;
  margin: 80px auto 0;
  padding: 0 48px;
  background: var(--color-hover);
  border-radius: 8px;
}

.case-img-full img {
  width: 100%;
  height: auto;
  display: block;
}

.case-img-placeholder {
  width: 100%;
  height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.case-img-placeholder--bottom {
  align-items: flex-end;
}

.case-img-inner {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.case-img-full:hover .case-img-inner {
  transform: scale(1.04);
}

/* ===== PLAYGROUND GRID ===== */
.playground-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  max-width: 1344px;
  margin: 80px auto 0;
  padding: 0 48px;
}

.playground-grid .case-img-full {
  margin: 0;
  max-width: none;
  padding: 0 24px;
}

.playground-grid .case-img-placeholder {
  height: 480px;
}

.playground-grid .case-img-inner {
  max-width: 95%;
  max-height: 95%;
}

.playground-grid .case-img-full:nth-last-child(1):nth-child(odd) {
  grid-column: 1 / -1;
}

/* ===== NEXT CASE ===== */
.next-case-wrapper {
  margin: 80px 16px 0;
}

.next-case {
  display: flex;
  border: 1px solid var(--color-low);
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.next-case:hover .next-case-arrow {
  background: var(--color-fixed-dark);
}

.next-case:hover .next-case-arrow svg path {
  stroke: var(--color-fixed-light);
}

.next-case-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  padding: 32px;
  min-width: 0;
}

.next-case-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 32px;
  color: var(--color-mid);
  line-height: 1;
}

.next-case-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 40px;
  color: var(--color-dark);
  line-height: 1;
  margin-top: 16px;
}

.next-case-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 1px solid var(--color-low);
  border-radius: 500px;
  margin-top: 32px;
  transition: background 0.2s;
}

.next-case-arrow svg path {
  transition: stroke 0.2s;
}

.next-case-arrow svg {
  width: 16px;
  height: 16px;
}

.next-case-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 695px;
  height: 458px;
  flex-shrink: 0;
  border-radius: 0;
  overflow: hidden;
}

.next-case-right img {
  width: 90%;
  height: auto;
  border-radius: 8px 8px 0 0;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.next-case:hover .next-case-right img {
  transform: scale(1.04);
}

/* ===== RESPONSIVE: TABLET ===== */
@media (max-width: 1200px) {
  .case-hero {
    flex-direction: column;
  }

  .case-hero-visual {
    width: 100%;
    height: 400px;
  }

  .next-case-right {
    width: 50%;
    height: 360px;
  }

  .next-case-subtitle {
    font-size: 24px;
  }

  .next-case-title {
    font-size: 32px;
  }
}

/* ===== RESPONSIVE: MOBILE ===== */
@media (max-width: 1090px) {
  .case-page {
    padding-top: 200px;
  }

  .case-header-section {
    padding: 0 24px;
  }

  .case-subtitle {
    font-size: 24px;
  }

  .case-title {
    font-size: 28px;
  }

  .case-hero {
    flex-direction: column;
    padding: 0 24px;
    margin-top: 32px;
  }

  .case-hero-visual {
    width: 100%;
    height: 280px;
  }

  .case-meta-item {
    grid-template-columns: 90px 1fr;
    padding: 14px 0;
  }

  .case-meta-value {
    font-size: 14px;
    text-align: left;
  }

  .case-section {
    padding: 0 24px;
    margin-top: 48px;
  }

  .case-img-full {
    padding: 0 24px;
    margin-top: 48px;
    border-radius: 0;
  }

  .playground-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
    padding: 0;
  }

  .playground-grid .case-img-full {
    padding: 0 24px;
  }

  .playground-grid .case-img-placeholder {
    height: 300px;
  }

  .case-img-placeholder {
    height: 300px;
  }

  .case-img-inner {
    max-width: 100%;
  }

  .next-case-wrapper {
    margin: 48px 24px 0;
  }

  .next-case {
    flex-direction: column;
  }

  .next-case-subtitle {
    font-size: 20px;
  }

  .next-case-title {
    font-size: 24px;
  }

  .next-case-right {
    width: 100%;
    height: 280px;
  }

  .next-case-arrow {
    width: 48px;
    height: 48px;
  }
}
