/* css/book-studio.css — Book cover customizer & print fulfillment page */

.studio-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 40px auto 60px;
  padding: 0 20px;
  gap: 40px;
}

/* Left Side: Live Book Preview Canvas */
.preview-section {
  flex: 1;
  min-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 100px;
}

.preview-card-frame { padding: 35px; display: flex; justify-content: center; width: 100%; box-sizing: border-box; }
.preview-caption { font-size: 0.85rem; color: var(--text-muted); margin-top: 15px; }

/* Hardcover Book Mockup Card */
.book-mockup {
  width: 280px;
  height: 400px;
  background: var(--primary-navy, #1a2b4c); /* Default Navy Cloth */
  border-radius: 4px 12px 12px 4px;
  box-shadow: -8px 0 15px rgba(0, 0, 0, 0.2), 12px 18px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 30px;
  box-sizing: border-box;
  transition: all 0.3s ease;
  color: var(--accent-gold, #c5a059); /* Default Metallic Gold Foil */
  border-left: 12px solid rgba(0, 0, 0, 0.25); /* Spine Shadow */
}

.book-spine-line {
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.2);
}

.book-title-preview {
  font-family: 'Georgia', serif;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  letter-spacing: 1px;
  line-height: 1.3;
  margin-top: 30px;
}

.book-subtitle-preview {
  font-family: 'Georgia', serif;
  font-size: 0.9rem;
  text-align: center;
  font-style: italic;
  margin-top: 10px;
  opacity: 0.85;
}

.book-author-preview {
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  text-align: center;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* Right Side: Customization Controls */
.controls-section { flex: 1.2; min-width: 340px; }
.controls-card { padding: 35px; }

.section-title { font-size: 1.6rem; color: var(--primary-navy); margin-top: 0; margin-bottom: 8px; }
.section-description { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 25px; }
.option-group { margin-bottom: 26px; }
.option-label { font-weight: bold; font-size: 0.95rem; color: var(--primary-navy); margin-bottom: 10px; display: block; }

/* Color Swatches */
.swatch-grid { display: flex; gap: 14px; }

.swatch {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.swatch:hover, .swatch.active {
  transform: scale(1.15);
  border-color: var(--primary-navy);
}

/* Form Controls */
.input-field {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  box-sizing: border-box;
  margin-bottom: 12px;
}

select.input-field { cursor: pointer; background: white; }

/* Print Estimate Summary Box */
.estimate-box {
  background: rgba(224, 242, 254, 0.6);
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 20px;
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-tag { font-size: 1.8rem; font-weight: bold; color: var(--primary-navy); }
.price-detail { font-size: 0.85rem; color: var(--text-muted); }
.order-btn { border: none; cursor: pointer; padding: 12px 24px; }

/* Modal Dialog Styles for Lulu Print API Proof */
.order-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease-out;
}

.order-modal-card {
  background: #ffffff;
  border-radius: 16px;
  max-width: 580px;
  width: 100%;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  padding: 22px 26px 16px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--primary-navy);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.7rem;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.modal-close-btn:hover {
  color: #1e293b;
}

.modal-body {
  padding: 24px 26px;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
}

.modal-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 18px 0;
}

.order-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-bottom: 3px;
}

.spec-val {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary-navy);
  word-break: break-word;
}

.highlight-spec {
  grid-column: span 2;
  border-top: 1px dashed #cbd5e1;
  padding-top: 10px;
  margin-top: 4px;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.highlight-spec .spec-val {
  font-size: 1.3rem;
  color: #047857;
}

.print-checklist {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 18px;
}

.checklist-item {
  font-size: 0.88rem;
  color: #166534;
  margin-bottom: 6px;
}
.checklist-item:last-child {
  margin-bottom: 0;
}

.order-success-callout {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  border-radius: 8px;
  padding: 14px;
  font-size: 0.92rem;
  line-height: 1.5;
  animation: fadeIn 0.25s ease-out;
}

.modal-footer {
  padding: 16px 26px;
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-secondary {
  background: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background: #f1f5f9;
  color: #1e293b;
}
