/*
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/JSP_Servlet/CascadeStyleSheet.css to edit this template
*/
/* 
    Created on : 1 dic. 2026, 13:28:19
    Author     : ASUS
*/


/* Saldo de monedas en el encabezado compartido (reemplaza al boton de modo noche) */
header.bar .coin-chip {
  display: inline-flex; align-items: center; gap: .45rem; flex: 0 0 auto;
  padding: .5rem .95rem; border-radius: 999px; white-space: nowrap; text-decoration: none;
  color: #E9E7FF; border: 1.5px solid rgba(233,231,255,.4);
  font: 400 .9rem/1.2 var(--sans, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  transition: background .2s, border-color .2s, color .2s;
}
header.bar .coin-chip svg { width: 18px; height: 18px; flex: none; }
header.bar .coin-chip b { font-weight: 600; font-variant-numeric: tabular-nums; }
header.bar .coin-chip:hover, header.bar .coin-chip:focus-visible { background: rgba(255,255,255,.14); border-color: #fff; color: #fff; }
@media (max-width: 900px) { header.bar .coin-chip { margin-left: auto; } }

/* "Crear historia" (usuarios): es un formulario POST, pero se ve como los demás enlaces */
form.crear-historia { margin: 0; display: flex; }
form.crear-historia button { font: inherit; cursor: pointer; }
header.bar nav > .crear-historia button { padding: 0; border: 0; background: transparent; color: #E9E7FF; font-size: .98rem; }
header.bar nav > .crear-historia button:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
header.bar .menu .crear-historia button { width: 100%; padding: .65rem .8rem; border: 0; border-radius: 10px; background: transparent; color: var(--text); font-size: .98rem; text-align: left; }
header.bar .menu .crear-historia button:hover, header.bar .menu .crear-historia button:focus-visible { background: var(--soft); color: var(--title); }
.quick-grid .crear-historia button { flex: 1; text-align: left; align-items: flex-start; }

/* ===== Desglose "Catalogo": botones sueltos en cuadricula de 6 columnas x 5 filas (sin contador) ===== */
header.bar .cat-wrap .menu.cat-menu {
  width: min(740px, calc(100vw - 280px)); min-width: 0; max-height: none; overflow: visible; padding: .75rem;
}
header.bar .cat-menu a.cat-todo {
  display: block; margin-bottom: .6rem; padding: .6rem .9rem; border-radius: 10px;
  background: var(--soft); color: var(--title); font-weight: 600;
}
header.bar .cat-menu a.cat-todo:hover, header.bar .cat-menu a.cat-todo:focus-visible { background: var(--line); }

/* 5 filas visibles (40px + 8px de separacion); si hay mas categorias, la cuadricula se desplaza */
header.bar .cat-grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 40px; gap: 8px;
  max-height: calc(5 * 40px + 4 * 8px); overflow-y: auto; padding: 2px 4px 2px 2px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
header.bar .cat-menu a.cat-chip {
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 0 .55rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: .88rem; line-height: 1.1;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
header.bar .cat-menu a.cat-chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
header.bar .cat-menu a.cat-chip:hover, header.bar .cat-menu a.cat-chip:focus-visible {
  background: var(--soft); border-color: var(--title); color: var(--title); transform: translateY(-1px);
}
@media (prefers-reduced-motion: reduce) { header.bar .cat-menu a.cat-chip { transition: none; transform: none !important; } }