/* ================================================================
   PÂTISSERIE PLAIN (patisserie-plain) — suggestion-widget.css
   Floating Storybook Suggestion Trigger & Native <dialog> Modal
   ================================================================ */

/* Floating Quill Trigger Button */
.suggestion-trigger {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-cream);
  color: var(--text-ink);
  border: 1.5px solid var(--gold-accent);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(61, 30, 22, 0.12), 0 0 15px var(--gold-glow);
  transition: all var(--ease);
}

.suggestion-trigger:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(61, 30, 22, 0.18), 0 0 22px rgba(194, 142, 0, 0.4);
  background: #FFFFFF;
}

.suggestion-trigger svg {
  width: 18px;
  height: 18px;
  color: var(--gold-accent);
  transition: transform var(--ease-spring);
}

.suggestion-trigger:hover svg {
  transform: rotate(-12deg);
}

/* Native <dialog> Modal */
.suggestion-dialog {
  border: none;
  border-radius: var(--radius-lg);
  background: var(--bg-cream);
  padding: 0;
  margin: auto;
  max-width: 480px;
  width: 90%;
  box-shadow: var(--shadow-modal);
  border: 1px solid var(--border-gold);
  overflow: hidden;
}

.suggestion-dialog::backdrop {
  background: rgba(28, 25, 23, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dialog-card {
  padding: 2.25rem;
  position: relative;
}

.dialog-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--bg-parchment);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--ease);
}

.dialog-close:hover {
  background: var(--text-ink);
  color: #FFFDF9;
  transform: rotate(90deg);
}

.dialog-header {
  margin-bottom: 1.5rem;
}

.dialog-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.dialog-header p {
  font-size: 0.88rem;
}

/* Suggestion Form Elements */
.dialog-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-ink);
  font-family: var(--font-serif);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-parchment);
  background: var(--bg-card);
  color: var(--text-ink);
  font-size: 0.9rem;
  transition: all var(--ease);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold-accent);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px var(--gold-glow);
}

/* Simulated Success State */
.dialog-success {
  display: none;
  text-align: center;
  padding-block: 1.5rem;
}

.dialog-success.active {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.success-seal {
  width: 56px;
  height: 56px;
  background: var(--bg-parchment);
  border: 2px solid var(--gold-accent);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-accent);
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 20px var(--gold-glow);
  animation: sealPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes sealPop {
  0% { transform: scale(0) rotate(-45deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.dialog-success h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.dialog-success p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
  .suggestion-trigger {
    bottom: 1.25rem;
    right: 1.25rem;
    padding: 0.65rem 1rem;
    font-size: 0.82rem;
  }
}
