@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --chord-color: #f59e0b; /* Amber/Orange like classic chord books */
  --chord-hover: #fbbf24;
  --border-color: #334155;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
}

body.light {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --chord-color: #d97706;
  --chord-hover: #b45309;
  --border-color: #e2e8f0;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  transition: background-color 0.2s, color 0.2s;
}

/* Monospace font for chords and lyrics sheet */
.cifra-sheet-content pre {
  font-family: 'JetBrains Mono', 'Courier New', Courier, monospace !important;
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: var(--text-primary);
  margin: 0;
  padding: 0;
}

/* Chords styling */
.cifra-sheet-content b[data-chord-name] {
  color: var(--chord-color);
  font-weight: 700;
  cursor: pointer;
  display: inline-block;
  padding: 0 1px;
  border-radius: 3px;
  transition: all 0.15s ease;
}

.cifra-sheet-content b[data-chord-name]:hover {
  color: #ffffff;
  background-color: var(--chord-color);
}

body.light .cifra-sheet-content b[data-chord-name]:hover {
  color: #ffffff;
  background-color: var(--chord-color);
}

/* Tabs styling */
.cifra-sheet-content .tabs {
  color: #38bdf8;
  opacity: 0.95;
  font-weight: 500;
}
body.light .cifra-sheet-content .tabs {
  color: #0284c7;
}

/* Hidden tabs option */
.hide-tabs .tabs {
  display: none !important;
}

/* Two columns mode */
.cifra-columns-2 .cifra-sheet-content pre {
  column-count: 2;
  column-gap: 40px;
  column-rule: 1px dashed var(--border-color);
}

@media (max-width: 768px) {
  .cifra-columns-2 .cifra-sheet-content pre {
    column-count: 1;
  }
}

/* Chord tooltip popup */
.chord-tooltip {
  position: absolute;
  z-index: 50;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  padding: 10px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.chord-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth auto-scroll */
html {
  scroll-behavior: smooth;
}

/* Print styles */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .no-print {
    display: none !important;
  }
  .cifra-sheet-content pre {
    color: #000000 !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
  }
  .cifra-sheet-content b[data-chord-name] {
    color: #000000 !important;
    font-weight: bold !important;
    text-decoration: underline;
  }
  .cifra-sheet-content .tabs {
    color: #444444 !important;
  }
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}
