/**
 * BeeBot Music — Shared Stylesheet
 *
 * Equalizer / DAW-inspired theme for music.furybee.org
 * Colour tokens:
 *   --green:     #00E676  (primary – EQ green)
 *   --green-dk:  #00C853  (deep green)
 *   --yellow:    #FFD600  (secondary – EQ yellow)
 *   --red:       #FF1744  (warning – EQ red/hot)
 *   --text:      #E8E8E8  (cool white text)
 *   --muted:     #777777  (subdued text)
 *   --bg:        #0A0A0C  (near-black background)
 *   --panel:     #141416  (dark panel bg)
 *   --border:    #222226  (subtle border)
 *   --blue:      #448AFF  (accent – links/interactive)
 */

/* ---- Fonts ---- */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-700.woff2') format('woff2');
}

/* ---- Reset ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---- Keyframes ---- */
@keyframes progressShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes greenPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(0, 230, 118, 0.3); }
  50% { box-shadow: 0 0 20px rgba(0, 230, 118, 0.5), 0 0 40px rgba(0, 230, 118, 0.15); }
}

/* ---- Base ---- */
body {
  background: #0A0A0C;
  color: #E8E8E8;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  position: relative;
}

/* Faint DAW grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ---- Layout ---- */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* ---- Navigation ---- */
.nav {
  margin-bottom: 20px;
  font-size: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.nav a {
  color: #777777;
  text-decoration: none;
  transition: color 0.3s ease;
}
.nav a:hover {
  color: #00E676;
  text-shadow: 0 0 8px rgba(0, 230, 118, 0.4);
}
.nav .sep {
  color: #444;
  margin: 0 6px;
}

/* ---- Typography ---- */
h1 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #FFFFFF;
}
h2 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
}
.sub {
  color: #777777;
  font-size: 12px;
  margin-bottom: 20px;
}
.label {
  color: #00E676;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  margin-top: 15px;
}

/* ---- Buttons ---- */
.btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
}
.btn {
  background: transparent;
  color: #00E676;
  border: 1px solid #00E676;
  padding: 8px 18px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.btn:hover {
  background: #00E676;
  color: #0A0A0C;
  box-shadow: 0 0 15px rgba(0, 230, 118, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn-primary,
.btn--active {
  background: #00E676;
  color: #0A0A0C;
  border-color: #00E676;
}
.btn-primary:hover,
.btn--active:hover {
  background: #00C853;
  border-color: #00C853;
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
}
.btn-secondary {
  background: transparent;
  border: 1px solid #00E676;
  color: #00E676;
}
.btn-secondary:hover {
  background: rgba(0, 230, 118, 0.12);
  border-color: #00E676;
  color: #00E676;
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.3);
}
.btn-download {
  background: #00E676;
  color: #0A0A0C;
  border: 1px solid #00E676;
  font-weight: 700;
  padding: 10px 24px;
  font-size: 13px;
}
.btn-download:hover {
  background: #00C853;
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
}
.btn-reset {
  background: transparent;
  border: 1px solid #777777;
  color: #777777;
}
.btn-reset:hover {
  border-color: #E8E8E8;
  color: #E8E8E8;
  background: rgba(255, 255, 255, 0.05);
}
.btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ---- Form elements ---- */
textarea,
input[type="text"],
input[type="number"],
input[type="url"] {
  width: 100%;
  background: #141416;
  color: #E8E8E8;
  border: 1px solid #222226;
  padding: 10px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  outline: none;
  border-radius: 4px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
textarea:focus,
input[type="text"]:focus,
input[type="number"]:focus,
input[type="url"]:focus {
  border-color: #00E676;
  box-shadow: 0 0 8px rgba(0, 230, 118, 0.2);
}
select {
  background: #141416;
  color: #E8E8E8;
  border: 1px solid #222226;
  padding: 8px 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  outline: none;
  cursor: pointer;
  border-radius: 4px;
  transition: border-color 0.3s ease;
}
select:focus {
  border-color: #00E676;
  box-shadow: 0 0 8px rgba(0, 230, 118, 0.2);
}

/* ---- Range / slider ---- */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #222226;
  border-radius: 3px;
  outline: none;
}
input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, #00E676, #FFD600, #FF1744);
  height: 6px;
  border-radius: 3px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: #141416;
  border: 2px solid #00E676;
  border-radius: 50%;
  cursor: pointer;
  margin-top: -6px;
  transition: box-shadow 0.3s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.5);
}
input[type="range"]::-moz-range-track {
  background: linear-gradient(90deg, #00E676, #FFD600, #FF1744);
  height: 6px;
  border-radius: 3px;
  border: none;
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #141416;
  border: 2px solid #00E676;
  border-radius: 50%;
  cursor: pointer;
}

/* ---- Slider control wrapper ---- */
.slider-control {
  margin: 8px 0;
}
.slider-control label {
  color: #00E676;
  font-size: 11px;
  display: block;
  margin-bottom: 4px;
}
.slider-control .value {
  font-family: 'JetBrains Mono', monospace;
  color: #FFD600;
  font-size: 12px;
  float: right;
}

/* ---- Checkbox / toggle ---- */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-size: 12px;
}
.toggle-row input[type="checkbox"] {
  accent-color: #00E676;
  width: 16px;
  height: 16px;
}

/* ---- Panels / sections ---- */
.panel {
  background: #141416;
  border: 1px solid #222226;
  padding: 12px;
  margin-top: 10px;
  overflow: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  white-space: pre-wrap;
  word-wrap: break-word;
  border-radius: 6px;
}
.section {
  background: #141416;
  border: 1px solid #222226;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 8px;
  transition: border-color 0.3s ease;
}
.section:hover {
  border-color: rgba(0, 230, 118, 0.3);
}
.section h2 {
  font-size: 14px;
  margin-bottom: 10px;
  color: #FFFFFF;
}

/* ---- Tool options ---- */
.tool-options {
  background: #141416;
  border: 1px solid #222226;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}
.tool-options .label {
  color: #00E676;
}
.option-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
  flex-wrap: wrap;
}
.option-row label {
  color: #E8E8E8;
  font-size: 12px;
  min-width: 100px;
}
.option-row select,
.option-row input {
  flex: 1;
  min-width: 120px;
}

/* ---- Drop zone ---- */
.drop-zone {
  border: 2px dashed #333;
  padding: 40px 20px;
  min-height: 150px;
  text-align: center;
  color: #777777;
  font-size: 13px;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  border-radius: 12px;
  background: rgba(20, 20, 22, 0.5);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.drop-zone:hover,
.drop-zone.drag-over {
  border-color: #00E676;
  color: #00E676;
  background: rgba(0, 230, 118, 0.03);
  box-shadow: inset 0 0 30px rgba(0, 230, 118, 0.06), 0 0 15px rgba(0, 230, 118, 0.12);
}
.drop-zone.has-file {
  border-color: #00E676;
  border-style: solid;
  background: rgba(0, 230, 118, 0.04);
}
.drop-zone .icon {
  font-size: 32px;
  display: block;
  margin-bottom: 10px;
}

/* ---- Waveform container ---- */
.waveform-container {
  background: #141416;
  border: 1px solid #222226;
  border-radius: 8px;
  padding: 12px;
  margin: 10px 0;
  min-height: 100px;
  position: relative;
  overflow: hidden;
}
.waveform-container canvas {
  width: 100%;
  display: block;
}

/* ---- VU meter ---- */
.vu-meter {
  width: 12px;
  height: 100%;
  min-height: 80px;
  background: #141416;
  border: 1px solid #222226;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  display: inline-block;
}
.vu-meter .fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, #00E676, #FFD600, #FF1744);
  transition: height 0.1s ease;
  border-radius: 2px;
}
.vu-meter-group {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 80px;
}

/* ---- Progress bar ---- */
.progress-wrap {
  background: #141416;
  border: 1px solid #222226;
  height: 22px;
  margin: 10px 0;
  position: relative;
  display: none;
  border-radius: 11px;
  overflow: hidden;
}
.progress-bar {
  background: linear-gradient(90deg, #00E676, #FFD600, #FF1744, #FFD600, #00E676);
  background-size: 200% 100%;
  animation: progressShimmer 2s linear infinite;
  height: 100%;
  width: 0;
  transition: width 0.2s;
  border-radius: 11px;
}
.progress-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  line-height: 22px;
  color: #0A0A0C;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

/* ---- Preview ---- */
.preview-container {
  background: #141416;
  border: 1px solid #222226;
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ---- Tool cards ---- */
.tool-card {
  border: 1px solid #222226;
  padding: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
  border-radius: 10px;
  background: #141416;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid transparent;
}
.tool-card:hover {
  border-color: rgba(0, 230, 118, 0.4);
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, #00E676, #FFD600, #FF1744) 1;
  border-image-slice: 1;
  background: rgba(0, 230, 118, 0.04);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 230, 118, 0.12), 0 0 30px rgba(0, 230, 118, 0.06);
}
.tool-card .tool-icon {
  font-size: 24px;
  margin-bottom: 8px;
  display: block;
}
.tool-name {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #FFFFFF;
}
.tool-name .icon {
  margin-right: 8px;
}
.tool-desc {
  font-size: 12px;
  color: #777777;
  line-height: 1.5;
}
.tool-status {
  float: right;
  font-size: 11px;
  padding: 2px 10px;
  border: 1px solid #00E676;
  color: #00E676;
  border-radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---- Result rows ---- */
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(34, 34, 38, 0.5);
  font-size: 12px;
}
.result-row:last-child {
  border-bottom: none;
}
.result-row__label {
  color: #777777;
}
.result-row__value {
  color: #00E676;
  font-family: 'JetBrains Mono', monospace;
}

/* ---- Error display ---- */
.error-box {
  color: #FF1744;
  font-size: 12px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #FF1744;
  border-radius: 6px;
  background: rgba(255, 23, 68, 0.08);
  display: none;
}

/* ---- Info / muted text ---- */
.info {
  color: #777777;
  font-size: 11px;
  margin-top: 5px;
}

/* ---- SEO sections ---- */
.tool-intro {
  color: #777777;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 20px;
  border-left: 3px solid #00E676;
  padding-left: 14px;
}
.faq-section {
  margin-top: 30px;
  border-top: 1px solid #222226;
  padding-top: 15px;
}
.faq-section h2 {
  font-size: 14px;
  color: #FFFFFF;
  margin-bottom: 12px;
}
.faq-section details {
  background: #141416;
  border: 1px solid #222226;
  margin-bottom: 8px;
  border-radius: 6px;
  transition: border-color 0.3s ease;
}
.faq-section details:hover {
  border-color: rgba(0, 230, 118, 0.3);
}
.faq-section summary {
  padding: 12px 14px;
  cursor: pointer;
  font-size: 12px;
  color: #E8E8E8;
  list-style: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  transition: color 0.3s ease;
}
.faq-section summary:hover {
  color: #00E676;
}
.faq-section summary::before {
  content: '▸ ';
  color: #00E676;
}
.faq-section details[open] summary::before {
  content: '▾ ';
  color: #FFD600;
}
.faq-section summary::-webkit-details-marker {
  display: none;
}
.faq-section details p {
  padding: 0 14px 12px;
  font-size: 12px;
  color: #777777;
  line-height: 1.7;
}

/* ---- Other tools cross-promo ---- */
.other-tools {
  margin-top: 25px;
  border-top: 1px solid #222226;
  padding-top: 15px;
}
.other-tools h2 {
  font-size: 14px;
  color: #FFFFFF;
  margin-bottom: 12px;
}
.other-tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.other-tools-grid a {
  color: #E8E8E8;
  text-decoration: none;
  border: 1px solid #222226;
  padding: 8px 14px;
  font-size: 11px;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.other-tools-grid a:hover {
  border-color: #00E676;
  background: rgba(0, 230, 118, 0.06);
  color: #00E676;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.15);
}

/* ---- Footer ---- */
.footer {
  margin-top: 40px;
  text-align: center;
  font-size: 11px;
  color: #444;
  padding: 20px 0;
  border-top: 1px solid #222226;
}
.footer a {
  color: #777777;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer a:hover {
  color: #00E676;
}
.footer .donate-links {
  margin: 10px 0;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer .donate-links a {
  color: #00E676;
  border: 1px solid #222226;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  transition: all 0.3s ease;
}
.footer .donate-links a:hover {
  border-color: #00E676;
  background: rgba(0, 230, 118, 0.08);
}
.footer .legal-links {
  margin-top: 8px;
}
.footer .legal-links a {
  margin: 0 8px;
}

/* ---- Custom scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0A0A0C;
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #00E676;
}
* {
  scrollbar-width: thin;
  scrollbar-color: #333 #0A0A0C;
}

/* ---- Selection ---- */
::selection {
  background: rgba(0, 230, 118, 0.3);
  color: #FFFFFF;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .container {
    padding: 12px;
  }
  h1 {
    font-size: 18px;
  }
  .btns {
    flex-direction: column;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
  .tool-card {
    padding: 14px;
  }
  .drop-zone {
    padding: 30px 15px;
    min-height: 120px;
  }
  .option-row {
    flex-direction: column;
    align-items: stretch;
  }
  .option-row label {
    min-width: auto;
  }
}
