/* ============================
   D&D Randomizer - index.css
   Dark/Light + Gradients
============================ */

/* Theme variables */
:root {
  --bg: #0b0f14;
  --text: #e8edf3;

  --card: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.14);

  --primary: rgba(255, 255, 255, 0.14);
  --primaryText: var(--text);

  --accent: #6d5efc;  /* violet/blue */
  --accent2: #2b6cff; /* blue */
}

body.light {
  --bg: #f5f7ff;
  --text: #0f172a;

  --card: #ffffff;
  --border: rgba(15, 23, 42, 0.12);

  --primary: #0f172a;
  --primaryText: #ffffff;

  --accent: #7c86ff;  /* pastel violet */
  --accent2: #7bc7ff; /* pastel blue */
}

/* Base */
html, body { height: 100%; }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(109, 94, 252, 0.25), transparent 55%),
              radial-gradient(900px 500px at 110% 15%, rgba(43, 108, 255, 0.18), transparent 60%),
              var(--bg);
  color: var(--text);

  display: flex;
  justify-content: center;   /* centra horizontal */
  align-items: flex-start;   /* arriba pero centrado horizontalmente */
}

.wrap {
  width: 100%;
  max-width: 400px;
  padding: 24px 14px 30px;
}

.brand {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.3px;
  text-align: center;
  opacity: 0.98;
}

/* Card */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
  backdrop-filter: blur(10px);
}

.mode {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 12px 10px;
  margin: 0 0 14px;
}

.mode legend {
  padding: 0 8px;
  opacity: 0.85;
  font-weight: 700;
}

.radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  cursor: pointer;
}

.radio:hover {
  background: rgba(255,255,255,0.05);
}

.radio input {
  width: 18px;
  height: 18px;
}

/* Buttons */
.row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.row.tiny {
  margin-top: 12px;
  justify-content: space-between;
}

button {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-radius: 14px;
  padding: 11px 14px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.2px;
  transition: transform 0.06s ease, background 0.15s ease, border-color 0.15s ease;
}

button:active {
  transform: translateY(1px);
}

button.primary {
  background: linear-gradient(90deg, rgba(109, 94, 252, 0.92), rgba(43, 108, 255, 0.92));
  border-color: rgba(255,255,255,0.18);
  color: #fff;
}

button.secondary {
  background: rgba(255,255,255,0.06);
}

button.big {
  flex: 1;
  padding: 14px 18px;
  font-size: 16px;
  border-radius: 16px;
}

.lang-buttons {
  display: inline-flex;
  gap: 8px;
}

.chip {
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 800;
}

.chip.active {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.22);
}

/* Dialog */
dialog {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 18px 44px rgba(0,0,0,0.5);
  max-width: min(560px, 92vw);
}

dialog::backdrop {
  background: rgba(0,0,0,0.55);
}

dialog h2 {
  margin: 0 0 10px;
}

dialog p {
  margin: 0 0 14px;
  opacity: 0.92;
  white-space: pre-line;
  line-height: 1.35;
}

/* Title placeholder */
#title {
  display: none;
}

/* Small screens */
@media (max-width: 360px) {
  .row.tiny { gap: 8px; }
  button { padding: 10px 12px; }
  button.big { padding: 12px 14px; }
}

.mode {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap; /* por si en móvil no cabe */
    max-width: 300px;
padding-left: 25px;
    padding-right: 5px;
}

/* Espacio entre opciones */
.mode .radio {
 display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;  /* separación vertical entre radios */
  padding-left: 8px;    /* separa del borde izquierdo */
    padding-right: 8px;
}


