/* Cases Page Styles */

/* Ensure proper page layout */
main {
  display: block;
  width: 100%;
}

/* Ensure images scale properly within columns */
.case-card {
  width: 100%;
}

.case-card .prompt-card-image {
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* Category filter adjustments for cases page */
.category-filter .filter-left {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  width: 100%;
}

/* Case Modal - Full width image, no sidebar */
.case-modal {
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-modal .modal-main {
  width: 90vw;
  height: 90vh;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  position: relative;
  margin-right: 0 !important; /* Remove sidebar spacing */
  opacity: 1 !important;
  padding: 0 !important;
}

.case-modal .modal-sidebar {
  display: none !important;
}

.case-modal .modal-gallery-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 20px;
}

.case-modal .gallery-image-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-modal .gallery-image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* Case card overlay - simplified */
.case-card .prompt-card-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    transparent 100%
  );
}

.case-card .card-overlay-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.case-card .card-actions {
  justify-content: center;
}

.case-card .card-view-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.case-card .card-view-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.case-card .card-view-btn svg {
  width: 16px;
  height: 16px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .case-modal .modal-main {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }
  
  .case-modal .modal-gallery-center {
    padding: 80px 16px 16px;
  }
}
