/* ============================================================
   LYRICSHIFT — style.css
   ============================================================ */
:root {
  --bg:        #03030f;
  --panel:     #080818;
  --border:    #161630;
  --cyan:      #00d4ff;
  --purple:    #7b2fff;
  --green:     #00ff9d;
  --amber:     #ffb300;
  --red:       #ff5555;
  --text:      #dde0ff;
  --dim:       #505078;
  --root-bg:   rgba(0,212,255,0.07);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', Arial, sans-serif;
  min-height: 100vh;
  padding: 24px 16px 64px;
  overflow-x: hidden;
}

/* ── BACKGROUND ANIMATION ──────────────────────────────────── */
.bg-anim {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #7b2fff 0%, #00d4ff 50%, #00ff9d 100%);
  background-size: 400% 400%;
  animation: bgShift 18s ease infinite;
  opacity: .06;
  z-index: 0;
  pointer-events: none;
}
@keyframes bgShift {
  0%   { background-position: 0% 50%;   }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%;   }
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── HEADER ─────────────────────────────────────────────────── */
.app-header {
  text-align: center;
  padding: 36px 20px 24px;
}
.hdr-icon { font-size: 48px; line-height: 1; margin-bottom: 10px; }
.app-header h1 {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: .18em;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.hdr-sub {
  color: #ffffff;
  font-size: 1.5rem;
  letter-spacing: .06em;
}

/* ── PANEL ──────────────────────────────────────────────────── */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.panel-title {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #ffffff;
}
.panel-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.char-count {
  font-size: .78rem;
  color: var(--dim);
}

/* ── MAIN GRID ──────────────────────────────────────────────── */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── TEXTAREA ───────────────────────────────────────────────── */
.lyrics-area {
  width: 100%;
  min-height: 320px;
  background: #05050e;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: .9rem;
  line-height: 1.7;
  padding: 14px 16px;
  resize: vertical;
  outline: none;
  transition: border-color .18s;
}
.lyrics-area:focus { border-color: var(--cyan); }
.lyrics-area::placeholder { color: #aaaaaa; }

/* ── OUTPUT DISPLAY ─────────────────────────────────────────── */
.output-display {
  min-height: 320px;
  background: #05050e;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: .9rem;
  line-height: 1.7;
  overflow-y: auto;
}
.output-placeholder {
  height: 100%;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #aaaaaa;
  font-family: 'Segoe UI', Arial, sans-serif;
}
.output-placeholder > span { font-size: 2rem; }
.output-placeholder p { font-size: .9rem; color: #aaaaaa; }
.hint-small { font-size: .8rem !important; color: #aaaaaa; }
.hint-small span { font-size: .8rem !important; }
.green-example { color: var(--green); font-size: .8rem !important; }

/* Output lines */
.out-line   { color: var(--text); }
.out-line.changed { color: var(--green); }
.out-tag    { color: var(--amber); font-size: .82rem; letter-spacing: .08em; margin-top: 4px; }
.out-blank  { height: 10px; }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  padding: 10px 22px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  letter-spacing: .06em;
  transition: all .18s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
}
.btn-primary:hover {
  opacity: .88;
  box-shadow: 0 4px 20px rgba(0,212,255,.3);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--dim);
}
.btn-ghost:hover:not(:disabled) {
  border-color: var(--cyan);
  color: var(--cyan);
}
.btn-ghost:disabled { opacity: .35; cursor: not-allowed; }

/* ── OPTIONS PANEL ──────────────────────────────────────────── */
.options-panel { gap: 16px; }
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.opt-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color .18s;
}
.opt-item:hover { border-color: var(--cyan); }
.opt-item input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--cyan);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}
.opt-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.opt-label strong { font-size: .88rem; color: var(--text); }
.opt-label small  { font-size: .75rem; color: var(--dim); }

/* Intensity */
.intensity-item {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  grid-column: span 2;
}
.intensity-slider {
  width: 100%;
  accent-color: var(--cyan);
  cursor: pointer;
}
.intensity-marks {
  display: flex;
  justify-content: space-between;
  font-size: .72rem;
  color: var(--dim);
  padding: 0 2px;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 30px 20px;
  margin-top: 10px;
  border-top: 1px solid var(--border);
}
.footer p {
  font-size: .72rem;
  color: #ffffff;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 700px) {
  .main-grid { grid-template-columns: 1fr; }
  .intensity-item { grid-column: span 1; }
  .app-header h1 { font-size: 1.8rem; }
}

