/* =============================
   guide.css
   ============================= */

/* =============================
   Styles communs — guide-section & toggle-section
   ============================= */
.guide-section .row,
.toggle-section .row {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(128, 128, 128, 0.25);
}
.guide-section .row:first-of-type,
.toggle-section .row:first-of-type {
  border-bottom: none;
  border-top: none;
  padding-bottom: 0;
}

/* H2 */
.guide-section .row h2,
.toggle-section .row h2 {
  padding-left: 0.75rem;
  border-left: 4px solid #006B62;
  margin-bottom: 1rem;
}

/* H3 — valeurs beasttribe */
.guide-section .row h3,
.toggle-section .row h3 {
  color: #009589;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* hunt pages */
.guide-section .row h3.block-title {
  color: #fff;
}

/* H4 — valeurs beasttribe */
.guide-section .row h4,
.toggle-section .row h4 {
  color: #00BDB0;
  font-weight: 600;
  font-size: inherit;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

/* H5 — valeurs guide (statique par défaut) */
.guide-section .row h5,
.toggle-section .row h5 {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #006B62;
  margin-top: 1rem;
  margin-bottom: 0.4rem;
  cursor: default;
  border: none;
  display: block;
  background: none;
  padding: 0;
}

/* Texte */
.guide-section .row p,
.toggle-section .row p {
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.guide-section .row ul,
.toggle-section .row ul {
  line-height: 1.8;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}
.guide-section .row ul li,
.toggle-section .row ul li {
  margin-bottom: 0.25rem;
}

/* Images */
.guide-section .row figure,
.toggle-section .row figure {
  margin: 1rem 0;
}
.guide-section .row figure figcaption,
.toggle-section .row figure figcaption {
  font-size: inherit;
  opacity: 1.0;
  margin-top: 0.4rem;
  font-style: italic;
}
.guide-section .row .img-thumbnail,
.toggle-section .row .img-thumbnail {
  border: 2px solid rgba(0, 149, 137, 0.4);
  border-radius: 8px;
}
.guide-section .inline-img,
.toggle-section .inline-img {
  margin: 10px;
  max-width: 100%;
}

/* Tables génériques — valeurs beasttribe */
.guide-section .row table,
.toggle-section .row table {
  width: 100%;
  border-collapse: collapse;
}
.guide-section .row table th,
.guide-section .row table td,
.toggle-section .row table th,
.toggle-section .row table td {
  padding: 0.35rem 0.6rem;
  border-bottom: 1px solid rgba(0, 149, 137, 0.2);
  text-align: left;
}
.guide-section .row table tr:last-child td,
.toggle-section .row table tr:last-child td { border-bottom: none; }

/* Tables Bootstrap — valeurs beasttribe */
.guide-section .row .table-bordered,
.toggle-section .row .table-bordered { border-color: rgba(0, 149, 137, 0.25); }
.guide-section .row .table-bordered th,
.guide-section .row .table-bordered td,
.toggle-section .row .table-bordered th,
.toggle-section .row .table-bordered td { border-color: rgba(0, 149, 137, 0.25); }
.guide-section .row .table-bordered thead th,
.toggle-section .row .table-bordered thead th {
  color: #00BDB0;
  font-weight: 600;
  background: rgba(0, 149, 137, 0.08);
  border-bottom: 2px solid rgba(0, 149, 137, 0.4);
}

/* toggle-scenario */
.guide-section .toggle-scenario,
.toggle-section .toggle-scenario {
  cursor: pointer;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00BDB0;
  user-select: none;
}

/* =============================
   Toggle section — overrides spécifiques
   ============================= */

/* H5 bouton toggle */
.toggle-section .row h5 {
  font-size: 1.2rem;
  color: #009589;
  border: 2px solid #009589;
  border-radius: 4px;
  padding: 0.3rem 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.5rem 0 0.75rem;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  user-select: none;
  transition: background 0.15s;
}
.toggle-section .row h5:hover { background: rgba(0, 149, 137, 0.15); }
.toggle-section .row h5.open { color: #4DD4CC; border-color: #4DD4CC; }

/* H4 bouton toggle (crafting) */
.toggle-section .row h4[onclick] {
  cursor: pointer;
  color: #009589;
  border: 2px solid #009589;
  border-radius: 4px;
  padding: 0.3rem 0.8rem;
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.4rem;
  margin: 0.5rem 0 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  user-select: none;
  transition: background 0.15s;
  font-size: 1.2rem;
}
.toggle-section .row h4[onclick]:hover { background: rgba(0, 149, 137, 0.15); }
.toggle-section .row h4.open { color: #4DD4CC; border-color: #4DD4CC; }

/* Icône toggle */
.toggle-section .toggle-icon {
  font-size: 0.85rem;
  transition: transform 0.2s;
  display: inline-block;
}
.toggle-section .row h5.open .toggle-icon,
.toggle-section .row h4.open .toggle-icon { transform: rotate(90deg); }

/* =============================
   Table section
   ============================= */
.table-section tbody tr {
  cursor: pointer;
  transition: background 0.15s;
}
.table-section tbody tr:hover {
  background: rgba(0, 149, 137, 0.08);
}
.table-section .table-bordered {
  border-color: rgba(0, 149, 137, 0.25);
  border-radius: 8px;
  overflow: hidden;
}
.table-section .table-bordered th,
.table-section .table-bordered td {
  border-color: rgba(0, 149, 137, 0.25);
  padding: 0.5rem 0.75rem;
  vertical-align: middle;
}
.table-section .table-bordered thead th {
  color: #00BDB0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: inherit;
  background: rgba(0, 149, 137, 0.08);
  border-bottom: 2px solid rgba(0, 149, 137, 0.4);
}
.table-section.no-click tbody tr {
  cursor: default;
}
.table-section blockquote {
  border-left: 3px solid #009589;
  margin: 0.5rem 0 0 0;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 149, 137, 0.05);
  border-radius: 0 8px 8px 0;
  font-size: inherit;
  line-height: 1.6;
}
.table-section blockquote h4 {
  font-size: inherit;
  color: #00BDB0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0.5rem 0 0.25rem;
}
.table-section blockquote p {
  margin: 0.2rem 0;
  font-size: inherit;
}

/* =============================
   Icônes tableau
   ============================= */
.table-icon {
  float: left;
  display: block;
  margin-right: 10px;
  vertical-align: middle;
}
.table-icon-sm { height: 20px; width: 20px; }
.table-icon-md { height: 32px; width: 32px; }
.table-icon-lg { height: 40px; width: 40px; }

/* =============================
   Bloc astuce générique
   ============================= */
.tip-box {
  border: 2px solid #009589;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  background: rgba(0, 149, 137, 0.05);
}
.tip-box h4 {
  color: #009589;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

/* =============================
   Rangs verrouillés
   ============================= */
.rank-locked {
  color: #ff0000;
  opacity: 0.7;
}
.rank-locked b::before {
  content: "🔒 ";
  font-size: 0.75em;
  opacity: 0.6;
}

/* ─────────────────────────────────────────
   Checkbox — style Firefox natif (sans variables)
───────────────────────────────────────── */
@supports not (-moz-appearance: none) {
	input[type="checkbox"] {
	  -webkit-appearance: none;
	  appearance: none;
	  width: 16px;
	  height: 16px;
	  border: 1.5px solid #8f8f9d;
	  border-radius: 4px;
	  background-color: #fff;
	  background-image: none;
	  background-position: center;
	  background-repeat: no-repeat;
	  background-size: 75%;
	  box-sizing: border-box;
	  cursor: pointer;
	  flex-shrink: 0;
	  transition: border-color 0.1s, background-color 0.1s, box-shadow 0.1s;
	  margin: 0;
	  outline: none;
	  accent-color: #0060df;
	}
	input[type="checkbox"]:hover:not(:disabled) {
	  border-color: #4a4a57;
	}
	input[type="checkbox"]:checked {
	  background-color: #0060df;
	  border-color: #0060df;
	  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5.5L4.5 9 11 1' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
	}
	input[type="checkbox"]:checked:hover:not(:disabled) {
	  background-color: #0250bb;
	  border-color: #0250bb;
	}
	input[type="checkbox"]:indeterminate {
	  background-color: #0060df;
	  border-color: #0060df;
	  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 4'%3E%3Cpath d='M1 2h10' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
	}
	input[type="checkbox"]:focus,
	input[type="checkbox"]:focus-visible {
	  outline: none !important;
	  box-shadow: 0 0 0 3px rgba(0, 96, 223, 0.35);
	  border-color: #0060df;
	}
	input[type="checkbox"]:disabled {
	  background-color: #f0f0f4;
	  border-color: #cfcfd8;
	  cursor: not-allowed;
	}
	input[type="checkbox"]:checked:disabled {
	  background-color: #f0f0f4;
	  border-color: #cfcfd8;
	  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5.5L4.5 9 11 1' stroke='%23afafb9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
	}
	@media (prefers-color-scheme: dark) {
	  input[type="checkbox"] {
		border-color: #8f8f9d;
		background-color: #fff;
		accent-color: #0060df;
	  }
	  input[type="checkbox"]:hover:not(:disabled) {
		border-color: #4a4a57;
	  }
	  input[type="checkbox"]:checked {
		background-color: #0060df;
		border-color: #0060df;
	  }
	  input[type="checkbox"]:checked:hover:not(:disabled) {
		background-color: #0250bb;
		border-color: #0250bb;
	  }
	  input[type="checkbox"]:indeterminate {
		background-color: #0060df;
		border-color: #0060df;
	  }
	  input[type="checkbox"]:focus,
	  input[type="checkbox"]:focus-visible {
		box-shadow: 0 0 0 3px rgba(0, 96, 223, 0.35);
		border-color: #0060df;
	  }
	  input[type="checkbox"]:disabled {
		background-color: #f0f0f4;
		border-color: #cfcfd8;
	  }
	  input[type="checkbox"]:checked:disabled {
		background-color: #f0f0f4;
		border-color: #cfcfd8;
	  }
	}
}