/* =========================================================
   MELODYSMITH STUDIO WORKSPACE STYLES
========================================================= */

:root {
  color-scheme: dark;
}

/* Subtle Custom Studio Scrollbars */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #0b0a0e;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #2d2a3b;
  border-radius: 9999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #f59e0b;
}

/* Slow vinyl spin animation */
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin-slow {
  animation: spinSlow 12s linear infinite;
}

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

.animate-fade-in {
  animation: fadeIn 0.2s ease-out forwards;
}

/* =========================================================
   SYNCHRONIZED LYRIC EDITOR & SYLLLABLE GUTTER
========================================================= */

.lyric-editor-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 56px;
  gap: 8px;
  align-items: stretch;
}

.lyric-textarea {
  line-height: 1.75rem !important;
  font-size: 0.95rem;
  resize: none;
  overflow-y: hidden;
  background: transparent;
  width: 100%;
  outline: none;
  font-family: 'Merriweather', Georgia, serif;
  letter-spacing: 0.01em;
}

.syllable-gutter {
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 0.5rem;
  padding-right: 0.35rem;
  border-left: 1px dashed rgba(66, 61, 86, 0.5);
}

.syllable-line-badge {
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  padding: 0 0.4rem;
  border-radius: 0.375rem;
  transition: all 0.15s ease;
}

/* Drag and Drop Reordering Feedback */
.section-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.section-card.dragging {
  opacity: 0.45;
  transform: scale(0.99);
  border-color: #f59e0b !important;
}

.section-card.drag-over {
  border-top: 2px solid #f59e0b !important;
  box-shadow: 0 -4px 12px rgba(245, 158, 11, 0.15);
}

/* Active Section Focus Ring */
.section-card.active-section {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(245, 158, 11, 0.2);
}

/* =========================================================
   PRINT / PDF LEAD SHEET STYLES
========================================================= */

.only-print {
  display: none;
}

@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    overflow: visible !important;
  }

  .no-print {
    display: none !important;
  }

  .only-print {
    display: block !important;
  }

  .print-section-block {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 1.25rem;
  }
}