/**
 * @file
 * Difficulty-adjustment simulator styling.
 */
.wl-edu-df {
  margin: 1.5rem 0;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--color-border-subtle, rgba(255, 255, 255, 0.14));
  border-radius: 12px;
  background: var(--color-surface-raised, rgba(255, 255, 255, 0.03));
  border-left: 3px solid #5b8dff;
}
.wl-edu-df.is-fast, .wl-edu-df[data-st="fast"] { border-left-color: #f87171; }
.wl-edu-df[data-st="slow"] { border-left-color: #fbbf24; }
.wl-edu-df[data-st="ok"] { border-left-color: #34d399; }

.wl-edu-df__control { margin-bottom: 0.9rem; }
.wl-edu-df__control label { display: block; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted, rgba(255, 255, 255, 0.55)); margin-bottom: 0.3rem; }
.wl-edu-df__control input[type="range"] { width: 100%; accent-color: #5b8dff; cursor: pointer; }

.wl-edu-df__tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin-bottom: 0.9rem; }
.wl-edu-df__tile {
  text-align: center; padding: 0.6rem 0.35rem; border-radius: 10px; min-width: 0;
  background: rgba(0, 0, 0, 0.28); border: 1px solid var(--color-border-subtle, rgba(255, 255, 255, 0.1));
}
.wl-edu-df__num { display: block; font-size: 1.25rem; font-weight: 800; line-height: 1.15; color: var(--color-accent-secondary, #5b8dff); }
.wl-edu-df__lbl { display: block; margin-top: 0.18rem; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-text-muted, rgba(255, 255, 255, 0.55)); }
.wl-edu-df[data-st="fast"] [data-df-status] { color: #f87171; }
.wl-edu-df[data-st="slow"] [data-df-status] { color: #fbbf24; }
.wl-edu-df[data-st="ok"]   [data-df-status] { color: #34d399; }

/* Block-time gauge with a fixed 10-minute target line. */
.wl-edu-df__gauge { margin-bottom: 0.5rem; }
.wl-edu-df__track {
  position: relative; height: 0.85rem; border-radius: 5px; overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
}
.wl-edu-df__fill { height: 100%; border-radius: 5px; transition: width 0.25s ease; background: #34d399; }
.wl-edu-df[data-st="fast"] .wl-edu-df__fill { background: #f87171; }
.wl-edu-df[data-st="slow"] .wl-edu-df__fill { background: #fbbf24; }
.wl-edu-df__target { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; background: #fff; opacity: 0.75; }
.wl-edu-df__scale { display: flex; justify-content: space-between; margin-top: 0.2rem; font-size: 0.64rem; color: var(--color-text-muted, rgba(255, 255, 255, 0.45)); }

.wl-edu-df__note { margin: 0.6rem 0 0.9rem; font-size: 0.86rem; line-height: 1.5; min-height: 2.4rem; color: var(--color-text-muted, rgba(255, 255, 255, 0.82)); }

.wl-edu-df__controls { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; }
.wl-edu-df__btn {
  padding: 0.5rem 0.9rem; border-radius: 7px; cursor: pointer; font-size: 0.85rem; font-weight: 600;
  border: 1px solid var(--color-border-subtle, rgba(255, 255, 255, 0.2));
  background: rgba(26, 78, 255, 0.16); color: var(--color-accent-secondary, #5b8dff);
}
.wl-edu-df__btn:hover { background: rgba(26, 78, 255, 0.28); }
.wl-edu-df__btn--ghost { background: transparent; color: var(--color-text-muted, rgba(255, 255, 255, 0.6)); }

/* Difficulty history sparkline. */
.wl-edu-df__hist { display: flex; align-items: flex-end; gap: 3px; height: 2.4rem; margin-left: auto; }
.wl-edu-df__bar { width: 6px; border-radius: 2px 2px 0 0; background: rgba(91, 141, 255, 0.4); }
.wl-edu-df__bar.is-now { background: #5b8dff; }

@media (max-width: 520px) {
  .wl-edu-df__hist { width: 100%; margin: 0.4rem 0 0; }
  .wl-edu-df__num { font-size: 1.05rem; }
}
