/* Only styles that need custom CSS (Tailwind handles the rest). */

/* Review page uses the full browser width, not the 7xl site container */
body:has(.review-page) main { max-width: none; }

.review-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(520px, 2fr);
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 1024px) {
  .review-grid { grid-template-columns: 1fr; }
}

.preview-card {
  position: sticky;
  top: 1rem;
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 12rem);
  min-height: 28rem;
}
.preview-link {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}
.preview-frame,
.preview-image {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  object-fit: contain;
  border-radius: 0.375rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}
.preview-image { cursor: zoom-in; }
.preview-page-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.35rem 0.625rem;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  background: #f8fafc;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 600;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.preview-page-chip:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}
.preview-page-chip.is-active {
  background: #dbeafe;
  border-color: #60a5fa;
  color: #1d4ed8;
}

@media (max-width: 1024px) {
  .preview-card {
    height: calc(100dvh - 7rem);
    min-height: 22rem;
  }
  .preview-frame,
  .preview-image {
    height: 100%;
  }
}

.inline-edit {
  position: relative;
}
.inline-edit .inline-display {
  min-height: 1.5rem;
  border-radius: 0.375rem;
  transition: background-color 160ms ease, color 160ms ease;
}
.inline-edit .inline-display:hover {
  background: rgba(37, 99, 235, 0.06);
  cursor: text;
}
.inline-edit .inline-editor {
  display: none;
}
.inline-edit.is-editing .inline-display {
  display: none;
}
.inline-edit.is-editing .inline-editor {
  display: block;
}
.inline-control {
  display: block;
  width: 100%;
  padding: 0.125rem 0.375rem;
  border: 0;
  border-radius: 0.375rem;
  background: rgba(37, 99, 235, 0.08);
  box-shadow: inset 0 -1px 0 #2563eb;
  outline: none;
}
.inline-control:focus {
  background: rgba(37, 99, 235, 0.1);
}
textarea.inline-control {
  resize: vertical;
}
.inline-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  background: #f1f5f9;
}

/* Remove default triangle from <summary> so we can use our own chevron */
details > summary::-webkit-details-marker { display: none; }
details > summary { list-style: none; }

/* Full-page drop overlay */
#drop-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(37, 99, 235, 0.88); color: white;
  display: none; align-items: center; justify-content: center;
  pointer-events: none;
  backdrop-filter: blur(4px);
}
#drop-overlay.active, #drop-overlay.uploading { display: flex; }
#drop-overlay .drop-inner {
  text-align: center; padding: 3rem;
  border: 3px dashed rgba(255,255,255,0.5); border-radius: 1rem;
  min-width: 320px;
}
