/* =====================================================
   WILDVERSE LIBRARY — LEFT CONTROL PANEL
   File: library-controls.css
===================================================== */

.wv-library-app__left {
  --wv-controls-bg: rgba(3, 10, 18, 0.9);
  --wv-controls-panel: rgba(255, 255, 255, 0.045);
  --wv-controls-panel-hover: rgba(120, 247, 255, 0.075);
  --wv-controls-border: rgba(120, 247, 255, 0.16);
  --wv-controls-border-strong: rgba(120, 247, 255, 0.42);
  --wv-controls-text: #eefcff;
  --wv-controls-muted: rgba(210, 230, 240, 0.66);
  --wv-controls-accent: #78f7ff;
  --wv-controls-radius: 18px;

  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

/* =====================================================
   FILTER PANEL
===================================================== */

.wv-library-app__left .wv-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;

  margin: 0;
  padding: 12px;

  border: 1px solid var(--wv-controls-border);
  border-radius: var(--wv-controls-radius);

  background:
    radial-gradient(
      circle at 0% 0%,
      rgba(120, 247, 255, 0.1),
      transparent 44%
    ),
    linear-gradient(
      145deg,
      rgba(120, 247, 255, 0.04),
      rgba(255, 79, 216, 0.025)
    ),
    var(--wv-controls-bg);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 32px rgba(0, 0, 0, 0.2);
}

.wv-library-app__left .wv-toolbar::before {
  content: "Library Filters";

  color: #bff8ff;
  font-size: 0.69rem;
  font-weight: 950;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.wv-library-app__left .wv-toolbar input:not([type="checkbox"]),
.wv-library-app__left .wv-toolbar select {
  width: 100%;
  min-width: 0;
  min-height: 38px;

  padding: 8px 10px;

  border: 1px solid rgba(120, 247, 255, 0.14);
  border-radius: 12px;

  color: var(--wv-controls-text);
  background: rgba(0, 7, 12, 0.72);

  outline: none;
  font: inherit;
  font-size: 0.82rem;

  transition:
    border-color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.wv-library-app__left .wv-toolbar input:not([type="checkbox"])::placeholder {
  color: rgba(210, 230, 240, 0.45);
}

.wv-library-app__left .wv-toolbar option {
  color: var(--wv-controls-text);
  background: #071219;
}

.wv-library-app__left .wv-toolbar input:not([type="checkbox"]):hover,
.wv-library-app__left .wv-toolbar select:hover {
  border-color: rgba(120, 247, 255, 0.28);
  background: rgba(4, 16, 22, 0.9);
}

.wv-library-app__left .wv-toolbar input:not([type="checkbox"]):focus,
.wv-library-app__left .wv-toolbar select:focus {
  border-color: var(--wv-controls-accent);

  box-shadow:
    0 0 0 3px rgba(120, 247, 255, 0.1),
    0 0 15px rgba(120, 247, 255, 0.08);
}

/* =====================================================
   INCLUDE SOUND EFFECTS CHECKBOX
===================================================== */

.wv-library-app__left
.wv-filter-check{
  display: flex;
  align-items: center;
  gap: 0.65rem;

  width: 100%;
  min-height: 38px;
  margin: 0;
  padding: 0.5rem 0.65rem;

  border: 1px solid rgba(120, 247, 255, 0.14);
  border-radius: 12px;

  color: rgba(245, 252, 255, 0.86);
  background: rgba(0, 7, 12, 0.72);

  font-size: 0.8rem;
  font-weight: 750;

  cursor: pointer;
  user-select: none;

  transition:
    border-color 150ms ease,
    background 150ms ease;
}

.wv-library-app__left .wv-filter-check:hover {
  border-color: rgba(120, 247, 255, 0.42);
  background: rgba(7, 24, 30, 0.85);
}

.wv-library-app__left .wv-filter-check 
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;

  display: grid;
  place-items: center;

  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  margin: 0;
  padding: 0;

  border: 1px solid rgba(120, 247, 255, 0.5);
  border-radius: 7px;

  background: rgba(2, 9, 13, 0.95);

  cursor: pointer;
}

.wv-library-app__left
.wv-filter-check 
input[type="checkbox"]::before {
  content: "✓";

  color: #031016;
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1;

  transform: scale(0);

  transition: transform 130ms ease;
}

.wv-library-app__left .wv-filter-check input[type="checkbox"]:checked {
  border-color: rgba(120, 247, 255, 0.95);

  background:
    linear-gradient(
      135deg,
      #72f7ff,
      #ff5ce8
    );

  box-shadow:
    0 0 14px rgba(120, 247, 255, 0.25);
}

.wv-library-app__left .wv-filter-check input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.wv-library-app__left .wv-filter-check input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(120, 247, 255, 0.9);
  outline-offset: 3px;
}

/* =====================================================
   LIBRARY SUMMARY STATS
===================================================== */

.wv-library-app__left .wv-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;

  margin: 0;
}

.wv-library-app__left .wv-stat {
  display: grid;
  gap: 4px;

  min-height: 58px;
  padding: 10px 11px;

  border: 1px solid var(--wv-controls-border);
  border-radius: 15px;

  background:
    linear-gradient(
      145deg,
      rgba(120, 247, 255, 0.055),
      rgba(255, 79, 216, 0.025)
    ),
    var(--wv-controls-panel);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04);

  transition:
    border-color 150ms ease,
    background 150ms ease,
    transform 150ms ease;
}

.wv-library-app__left .wv-stat:hover {
  border-color: rgba(120, 247, 255, 0.32);
  background: var(--wv-controls-panel-hover);
  transform: translateY(-1px);
}

.wv-library-app__left .wv-stat strong {
  color: var(--wv-controls-text);
  font-size: 1.2rem;
  font-weight: 950;
  line-height: 1;
}

.wv-library-app__left .wv-stat span {
  color: var(--wv-controls-muted);
  font-size: 0.61rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =====================================================
   CREATOR CREDIT / LICENCE NOTE
===================================================== */

.wv-library-app__left .wv-library-foot {
  margin: 0;
  padding: 12px;

  border: 1px solid var(--wv-controls-border);
  border-radius: var(--wv-controls-radius);

  color: var(--wv-controls-muted);
  background:
    radial-gradient(
      circle at 0% 0%,
      rgba(120, 247, 255, 0.09),
      transparent 42%
    ),
    linear-gradient(
      135deg,
      rgba(120, 247, 255, 0.04),
      rgba(255, 79, 216, 0.025)
    ),
    var(--wv-controls-bg);

  font-size: 0.75rem;
  line-height: 1.45;
}

.wv-library-app__left .wv-library-foot::before {
  content: "Creator Credit";

  display: block;
  margin-bottom: 7px;

  color: #bff8ff;
  font-size: 0.67rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wv-library-app__left .wv-library-foot strong {
  color: var(--wv-controls-text);
}

/* =====================================================
   DESKTOP
===================================================== */

@media (min-width: 1180px) {
  .wv-library-app__left {
    height: 100%;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    transform: none;
  }
}

/* =====================================================
   TABLET / MOBILE
===================================================== */

@media (max-width: 1179px) {
  .wv-library-app__left {
    margin-bottom: 14px;
  }

  .wv-library-app__left .wv-toolbar {
    grid-template-columns:
      minmax(220px, 1.4fr)
      repeat(2, minmax(145px, 0.8fr));
  }

  .wv-library-app__left .wv-toolbar::before {
    grid-column: 1 / -1;
  }

  .wv-library-app__left .wv-stats {
    grid-template-columns:
      repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .wv-library-app__left .wv-toolbar {
    grid-template-columns: 1fr;
  }

  .wv-library-app__left .wv-toolbar::before {
    grid-column: auto;
  }

  .wv-library-app__left .wv-filter-check {
    width: 100%;
  }

  .wv-library-app__left .wv-stats {
    grid-template-columns: 1fr 1fr;
  }
}
