/* FlippablePDF — block editor styles */

.flippdf-block-edit .flippdf-placeholder {
  background: linear-gradient(135deg, rgba(212,168,90,0.06), rgba(212,168,90,0.02));
  border: 2px dashed rgba(212,168,90,0.45);
  border-radius: 12px;
}

.flippdf-block-edit .flippdf-placeholder .components-placeholder__label {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.flippdf-preview {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  background: #1a160e;
  color: #f5efe1;
  display: flex;
  flex-direction: column;
}

.flippdf-preview-cover {
  display: flex;
  position: relative;
  background:
    radial-gradient(ellipse at top, rgba(212,168,90,0.05), transparent 60%),
    linear-gradient(135deg, #2a2418 0%, #1a160e 100%);
  padding: 36px;
  min-height: 200px;
  align-items: center;
  justify-content: center;
}

.flippdf-preview-spine {
  position: absolute;
  left: 50%;
  top: 16px;
  bottom: 16px;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, rgba(212,168,90,0.4), transparent);
  opacity: 0.4;
}

.flippdf-preview-page {
  background: #f7f1e3;
  color: #2a2418;
  width: 100%;
  max-width: 360px;
  border-radius: 4px;
  padding: 28px 22px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  text-align: center;
  position: relative;
  z-index: 1;
}

.flippdf-preview-icon {
  font-size: 36px;
  margin-bottom: 12px;
  filter: sepia(0.3);
}

.flippdf-preview-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
  word-break: break-word;
}

.flippdf-preview-url {
  font-family: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, monospace;
  font-size: 11px;
  color: #8c7b56;
  word-break: break-all;
  line-height: 1.4;
}

.flippdf-preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(245,239,225,0.04);
  border-top: 1px solid rgba(245,239,225,0.06);
  flex-wrap: wrap;
}

.flippdf-preview-label {
  font-size: 12px;
  color: rgba(245,239,225,0.6);
  font-style: italic;
  letter-spacing: 0.01em;
}

.flippdf-preview-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.flippdf-preview-actions .components-button {
  background: rgba(212,168,90,0.12) !important;
  color: #d4a85a !important;
  border: 1px solid rgba(212,168,90,0.3) !important;
}
.flippdf-preview-actions .components-button.is-tertiary {
  background: transparent !important;
  border: none !important;
  color: rgba(245,239,225,0.5) !important;
}
.flippdf-preview-actions .components-button.is-tertiary:hover {
  color: #ff6b6b !important;
}
