/* ==============================
   Wiki Staff - AtheOnedam
   Estilos personalizados
   ============================== */

/* --- Badges de Roles --- */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  vertical-align: middle;
}

.badge-helper {
  background: #3b82f6;
  color: #fff;
}

.badge-mod {
  background: #f59e0b;
  color: #1a1a1a;
}

.badge-srmod {
  background: #f97316;
  color: #fff;
}

.badge-admin {
  background: #ef4444;
  color: #fff;
}

/* --- Tablas de Permisos --- */
.md-typeset table:not([class]) {
  font-size: 0.82em;
  border-collapse: collapse;
  width: 100%;
}

.md-typeset table:not([class]) th {
  background: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85em;
  letter-spacing: 0.5px;
  padding: 10px 14px;
}

.md-typeset table:not([class]) td {
  padding: 8px 14px;
  border-bottom: 1px solid var(--md-typeset-table-color);
}

.md-typeset table:not([class]) tbody tr:hover {
  background: var(--md-accent-fg-color--transparent);
}

/* Codigo dentro de tablas */
.md-typeset table:not([class]) code {
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 4px;
}

/* --- Cards Grid (index) --- */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.grid-cards > .admonition,
.grid-cards > details {
  margin: 0 !important;
}

/* --- Separadores de seccion --- */
.md-typeset hr {
  margin: 2rem 0;
  border: none;
  border-top: 2px solid var(--md-default-fg-color--lightest);
}

/* --- Tabs --- */
.md-typeset .tabbed-labels > label {
  font-weight: 600;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .grid-cards {
    grid-template-columns: 1fr;
  }

  .md-typeset table:not([class]) {
    font-size: 0.78em;
  }

  .md-typeset table:not([class]) th,
  .md-typeset table:not([class]) td {
    padding: 6px 8px;
  }
}
