/* ============================================================
   Rickyedit Games — Settings Modal Styles
   ============================================================ */

/* ── Modal overlay ─────────────────────────────────────────── */
.rlb-settings-modal {
  position: fixed; inset: 0; z-index: 3500;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(0,0,0,0.78); backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease;
}
.rlb-settings-modal.show { opacity: 1; visibility: visible; }

/* ── Card ──────────────────────────────────────────────────── */
.rlb-settings-card {
  width: min(480px, 100%);
  background: linear-gradient(135deg, rgba(255,51,204,0.10), rgba(241,196,15,0.06)), #18191c;
  border: 1px solid rgba(255,255,255,0.14); border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  transform: translateY(20px) scale(0.95); transition: transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
  overflow: hidden;
}
.rlb-settings-modal.show .rlb-settings-card { transform: translateY(0) scale(1); }

/* ── Header ────────────────────────────────────────────────── */
.rlb-settings-header {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 24px; background: linear-gradient(90deg, #ff168c, #ff33cc);
}
.rlb-settings-title {
  font-size: 1.3rem; font-weight: 900; color: #fff; margin: 0; flex: 1;
}
.rlb-settings-close {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,0.26); color: #fff;
  font-size: 1.2rem; font-weight: 900; border: none; cursor: pointer;
  transition: background 0.2s;
}
.rlb-settings-close:hover { background: rgba(0,0,0,0.45); }

/* ── Body ──────────────────────────────────────────────────── */
.rlb-settings-body {
  padding: 24px; color: #f7f2f7; font-size: 0.95rem; line-height: 1.6;
  max-height: 65vh; overflow-y: auto;
}

/* ── Section ───────────────────────────────────────────────── */
.rlb-settings-section {
  margin-bottom: 24px;
}
.rlb-settings-section:last-child { margin-bottom: 0; }

.rlb-settings-section-title {
  font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px;
  color: #ff33cc; margin: 0 0 12px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ── Volume slider ─────────────────────────────────────────── */
.rlb-settings-volume-row {
  display: flex; align-items: center; gap: 14px;
}
.rlb-settings-volume-icon {
  width: 24px; height: 24px; flex-shrink: 0; cursor: pointer;
  opacity: 0.9; transition: opacity 0.2s;
}
.rlb-settings-volume-icon:hover { opacity: 1; }
.rlb-settings-volume-slider {
  -webkit-appearance: none; appearance: none;
  flex: 1; height: 6px; border-radius: 3px;
  background: rgba(255,255,255,0.15); outline: none; cursor: pointer;
}
.rlb-settings-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 2px solid #ff33cc;
  box-shadow: 0 0 8px rgba(255,51,204,0.6);
  cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
}
.rlb-settings-volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  box-shadow: 0 0 12px rgba(255,51,204,0.9);
}
.rlb-settings-volume-slider::-moz-range-track {
  height: 6px; border-radius: 3px;
  background: rgba(255,255,255,0.15);
}
.rlb-settings-volume-slider::-moz-range-progress {
  height: 6px; border-radius: 3px; background: #ff33cc;
}
.rlb-settings-volume-slider::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 2px solid #ff33cc;
  box-shadow: 0 0 8px rgba(255,51,204,0.6);
  cursor: pointer;
}
.rlb-settings-volume-value {
  font-size: 0.85rem; font-weight: 700; color: #fff;
  min-width: 36px; text-align: right;
}

/* ── Language selector ─────────────────────────────────────── */
.rlb-settings-lang-options {
  display: flex; gap: 8px;
}
.rlb-settings-lang-btn {
  flex: 1; padding: 10px 8px; border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--muted, #b9bbbe); font-size: 0.85rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s; text-align: center;
}
.rlb-settings-lang-btn:hover {
  background: rgba(255,255,255,0.08); color: #fff;
}
.rlb-settings-lang-btn.active {
  background: rgba(255,51,204,0.15);
  border-color: rgba(255,51,204,0.5);
  color: #ff33cc; box-shadow: 0 0 12px rgba(255,51,204,0.15);
}
.rlb-settings-lang-flag {
  font-size: 1.2rem; display: block; margin-bottom: 2px;
}

/* ── Toggle row ────────────────────────────────────────────── */
.rlb-settings-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.rlb-settings-toggle-label {
  font-size: 0.9rem; font-weight: 700; color: #fff;
}
.rlb-settings-toggle-desc {
  font-size: 0.78rem; color: var(--muted, #b9bbbe); margin-top: 2px;
}

/* ── Toggle switch ─────────────────────────────────────────── */
.rlb-settings-switch {
  position: relative; width: 46px; height: 26px; flex-shrink: 0;
}
.rlb-settings-switch input { opacity: 0; width: 0; height: 0; }
.rlb-settings-switch-slider {
  position: absolute; inset: 0; cursor: pointer;
  background: rgba(255,255,255,0.15); border-radius: 26px;
  transition: background 0.3s;
}
.rlb-settings-switch-slider::before {
  content: ''; position: absolute; left: 3px; top: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; transition: transform 0.3s;
}
.rlb-settings-switch input:checked + .rlb-settings-switch-slider {
  background: #ff33cc;
}
.rlb-settings-switch input:checked + .rlb-settings-switch-slider::before {
  transform: translateX(20px);
}

/* ── Game death controls ───────────────────────────────────── */
.rlb-settings-game-death {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 12px;
}
.rlb-settings-death-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}
.rlb-settings-death-row + .rlb-settings-death-row {
  border-top: 1px solid rgba(255,255,255,0.06);
}
.rlb-settings-death-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  min-width: 80px;
}
.rlb-settings-death-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rlb-settings-death-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  line-height: 1;
}
.rlb-settings-death-btn:hover {
  background: rgba(255,51,204,0.2);
  transform: scale(1.1);
}
.rlb-settings-death-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--pink, #ff33cc);
  min-width: 24px;
  text-align: center;
}
.rlb-settings-death-unit {
  font-size: 0.78rem;
  color: var(--muted, #b9bbbe);
  min-width: 50px;
  text-align: right;
}

/* ── Info badge ────────────────────────────────────────────── */
.rlb-settings-info {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: 12px;
  background: rgba(255,51,204,0.06);
  border: 1px solid rgba(255,51,204,0.15);
  font-size: 0.82rem; color: var(--muted, #b9bbbe); line-height: 1.5;
}
.rlb-settings-info-icon {
  font-size: 1.1rem; flex-shrink: 0; margin-top: 1px;
}

/* ── Select dropdown ───────────────────────────────────────── */
.rlb-settings-select {
  width: 100%; padding: 10px 14px; border-radius: 12px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff; font-family: inherit; font-size: 0.9rem; font-weight: 600;
  outline: none; cursor: pointer; transition: border-color 0.2s;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ff33cc' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.rlb-settings-select:focus { border-color: #ff33cc; }
.rlb-settings-select option { background: #18191c; color: #fff; }

/* ── Gear button in topbar ─────────────────────────────────── */
.rlb-settings-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 40px;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(0,0,0,0.18);
  color: #fff;
  font: inherit;
  transition: transform 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}
.rlb-settings-btn:hover {
  transform: translateY(-2px);
  background: rgba(0,0,0,0.32);
}

/* ── Accordion ── */
.rlb-settings-accordion-item {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  margin-bottom: 6px;
  overflow: hidden;
}
.rlb-settings-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.rlb-settings-accordion-header:hover {
  background: rgba(255,255,255,0.08);
}
.rlb-settings-accordion-title {
  flex: 1;
  text-align: left;
}
.rlb-settings-accordion-icon {
  font-size: 1.1rem;
  transition: transform 0.2s;
  color: var(--muted, #b9bbbe);
}
.rlb-settings-accordion-body {
  padding: 10px 14px 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
