/* ==========================================================================
   modal.css - Review lightbox modal
   Dooze Clip Generator
   ========================================================================== */

/* Review Modal */
.review-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(19, 19, 20, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-content {
  position: relative;
  z-index: 1001;
  background-color: var(--surface, #1e1f20);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-panel, 28px);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
  animation: modalPop 150ms ease-out;
}


.modal-header {
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0;
}

.card-ratio {
  font-size: 11px;
  color: var(--text-secondary);
  background-color: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  border: 0;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  transition: color 150ms ease-out;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-video-wrap {
  width: 100%;
  background-color: #000;
  max-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-video-wrap video {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  outline: none;
}

.modal-footer {
  padding: 1.1rem 1.25rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 0;
}

.modal-prompt {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
  flex: 1;
  max-height: 120px;
  overflow-y: auto;
  word-break: break-word;
}

.modal-actions-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.btn-review-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 140ms ease;
  user-select: none;
}

.btn-review-action:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.btn-review-action:active {
  transform: scale(0.96);
}

.btn-review-action svg {
  stroke: currentColor;
  stroke-width: 2;
  flex-shrink: 0;
}

.btn-download-modal {
  background-color: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  padding: 0 18px;
  height: 36px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: opacity 150ms ease-out;
}

.btn-download-modal:hover {
  opacity: 0.9;
}

.btn-download-modal svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
