/* Shared public listing hubs only. Homepage, detail, editor and admin layouts are untouched. */
.hub { width: calc(100% - var(--site-gutter,20px) - var(--site-gutter,20px)); max-width: var(--site-content-max,1360px); margin: 0 auto; padding: 30px 0 72px; color: var(--text-primary, #1e293b); }
.hub *, .hub *::before, .hub *::after { box-sizing: border-box; }
.hub [hidden] { display: none !important; }
.hub a { color: inherit; text-decoration: none; }
.hub a:focus-visible, .hub button:focus-visible, .hub select:focus-visible, .hub input:focus-visible, .hub summary:focus-visible { outline: 3px solid #6d28d9; outline-offset: 3px; }
.hub-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 30px 34px; margin-bottom: 26px; background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.85); border-radius: 24px; }
.hub-header > div { min-width: 0; }
.hub-eyebrow { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 700; color: #64748b; }
.hub h1 { margin: 0; font-size: clamp(28px,3vw,40px); line-height: 1.15; letter-spacing: -.025em; color: #1e293b; }
.hub-header h1 + p { margin: 12px 0 0; color: #526078; line-height: 1.5; }
.hub-header-meta { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.hub-count { margin: 0; display: flex; flex-direction: column; text-align: right; }
.hub-count strong { font-size: 30px; color: #7c3aed; line-height: 1.15; }
.hub-count span { font-size: 13px; color: #64748b; }
.hub-layout { display: grid; grid-template-columns: 252px minmax(0,1fr); gap: 26px; align-items: start; }
.hub-sidebar { min-width: 0; position: sticky; top: 112px; }
.hub-sidebar-panel { background: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.8); border-radius: 20px; overflow: hidden; }
.hub-sidebar summary { cursor: pointer; padding: 19px 20px; font-weight: 700; color: #334155; }
.hub-sidebar summary::marker { color: #7c3aed; }
.hub-sidebar-body { padding: 0 14px 18px; }
.hub-nav { display: grid; gap: 5px; }
.hub-nav a { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 11px 12px; border-radius: 11px; font-size: 14px; font-weight: 600; min-width: 0; }
.hub-nav a > span:first-child { overflow-wrap: anywhere; }
.hub-nav a:hover { background: #ede9fe; }
.hub-nav a[aria-current] { background: linear-gradient(125deg,#7c3aed,#c0268b); color: #fff; }
.hub-nav-count { font-size: 12px; font-weight: 500; flex-shrink: 0; }
.hub-nav-section { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e2e8f0; }
.hub-nav h2 { margin: 0 12px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #64748b; }
.hub-filters { margin: 18px 0 0; padding: 18px 5px 0; border-top: 1px solid #e2e8f0; display: grid; gap: 14px; }
.hub-field { display: grid; gap: 7px; min-width: 0; }
.hub label { font-size: 13px; font-weight: 600; color: #475569; }
.hub input, .hub select { width: 100%; min-width: 0; max-width: 100%; padding: 10px 11px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: #334155; font: inherit; font-size: 14px; }
.hub button { font: inherit; cursor: pointer; }
.hub .hub-action { display: inline-flex; align-items: center; justify-content: center; border: 0; padding: 11px 16px; border-radius: 11px; background: #6d28d9; color: #fff; font-weight: 600; font-size: 14px; }
.hub .hub-action:hover { background: #5b21b6; }
.hub .hub-reset { color: #5b21b6; font-size: 13px; text-align: center; text-decoration: underline; text-underline-offset: 3px; }
.hub-content { min-width: 0; }
.hub-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; padding: 14px 18px; border: 1px solid rgba(255,255,255,.85); background: rgba(255,255,255,.88); border-radius: 16px; }
.hub-sort { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; min-width: 0; }
.hub-sort select { width: auto; max-width: 210px; }
.hub-sort-apply { padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; color: #475569; background: #fff; font-size: 13px; }
.hub-toolbar-note { margin: 0; color: #64748b; font-size: 14px; }
.hub-view-toggle { display: inline-flex; gap: 3px; padding: 3px; background: #f1f5f9; border-radius: 10px; }
.hub-view-toggle button { padding: 8px 11px; border: 0; border-radius: 8px; background: transparent; color: #475569; font-size: 13px; font-weight: 600; }
.hub-view-toggle button[aria-pressed="true"] { background: #fff; color: #6d28d9; box-shadow: 0 1px 4px #0f172a18; }
.hub-results { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,260px),1fr)); gap: 20px; }
.hub .hub-card { display: flex; flex-direction: column; padding: 14px; border-radius: 19px; min-width: 0; background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 3px 12px #312e8108; transition: box-shadow .15s ease, border-color .15s ease; overflow: hidden; }
.hub .hub-card:hover { border-color: #c4b5fd; box-shadow: 0 7px 24px #312e8114; }
.hub-card-media { position: relative; width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #f1f5f9; flex-shrink: 0; }
.hub-card-media picture { display: block; width: 100%; height: 100%; }
.hub-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hub-card--guide .hub-card-media { aspect-ratio: 4/3; }
.hub-card-badge { position: absolute; top: 10px; left: 10px; padding: 5px 9px; border-radius: 8px; background: #fff; color: #4c1d95; font-weight: 700; font-size: 11px; }
.hub-card-body { display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 0; flex: 1; padding: 16px 3px 3px; }
.hub-card-body h2 { margin: 0; color: #1e293b; font-size: 19px; line-height: 1.3; letter-spacing: -.015em; overflow-wrap: anywhere; }
.hub-card-body > p { margin: 0; color: #64748b; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.hub-card-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.hub-card-tags .game-tag { padding: 4px 8px; background: #f1edff; color: #6d28d9; border-radius: 7px; font-size: 11px; font-weight: 500; }
.hub-card-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; justify-content: space-between; margin-top: auto; padding-top: 5px; font-size: 12px; color: #64748b; }
.hub-card-meta .rating { color: #9a5700; }
.hub-guide-game { display: flex; align-items: center; gap: 7px; color: #6d28d9; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.hub-guide-game img { width: 22px; height: 22px; object-fit: cover; border-radius: 5px; }
.hub-tool-symbol { display: grid; place-items: center; min-height: 126px; border-radius: 12px; color: #7c3aed; background: linear-gradient(135deg,#ede9fe,#fce7f3); }
.hub-tool-symbol svg { width: 58px; height: 58px; }
.hub-card-action { margin-top: auto; padding-top: 12px; color: #6d28d9; font-size: 14px; font-weight: 700; }
.hub[data-hub-view="list"] .hub-results { grid-template-columns: minmax(0,1fr); }
.hub[data-hub-view="list"] .hub-card { flex-direction: row; align-items: stretch; gap: 20px; }
.hub[data-hub-view="list"] .hub-card-media { width: 132px; height: 132px; aspect-ratio: 1; }
.hub[data-hub-view="list"] .hub-card-body { padding: 5px 3px; }
.hub[data-hub-view="list"] .hub-tool-symbol { width: 132px; min-width: 132px; }
.hub-empty { grid-column: 1/-1; padding: 42px 24px; background: rgba(255,255,255,.9); border-radius: 19px; text-align: center; }
.hub-empty h2 { margin: 0 0 12px; font-size: 23px; }
.hub-empty p { color: #64748b; line-height: 1.5; }
.hub-empty a { color: #6d28d9; text-decoration: underline; }
.hub-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 28px; }
.hub-pagination a, .hub-pagination > span { min-width: 38px; padding: 10px 12px; border-radius: 9px; background: #fff; text-align: center; font-size: 13px; }
.hub-pagination a[aria-current] { background: #6d28d9; color: #fff; }
.hub-pagination [aria-disabled] { color: #64748b; background: #ffffff80; }
@media (max-width: 1000px) { .hub-layout { grid-template-columns: 215px minmax(0,1fr); gap: 20px; } .hub-header { padding: 25px; } }
@media (max-width: 780px) { .hub-layout { grid-template-columns: minmax(0,1fr); } .hub-sidebar { position: static; } .hub-header { align-items: flex-start; } .hub-header-meta { flex-direction: column; align-items: flex-end; } .hub-results { grid-template-columns: repeat(auto-fill,minmax(min(100%,240px),1fr)); } }
@media (max-width: 480px) { .hub { padding: 20px 0 48px; } .hub-header { padding: 22px; flex-direction: column; gap: 18px; } .hub-header-meta { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; } .hub-count { text-align: left; } .hub-toolbar { padding: 13px; } .hub-sort { width: 100%; } .hub-sort select { flex: 1; max-width: 100%; width: 100px; } .hub-results { gap: 16px; } .hub[data-hub-view="list"] .hub-card { gap: 12px; padding: 11px; } .hub[data-hub-view="list"] .hub-card-media { width: 82px; height: 82px; } .hub[data-hub-view="list"] .hub-tool-symbol { width: 72px; min-width: 72px; min-height: 82px; } .hub[data-hub-view="list"] .hub-card-body h2 { font-size: 16px; } .hub[data-hub-view="list"] .hub-card-body > p { font-size: 12px; } .hub-card-meta { gap: 6px; } }
@media (prefers-reduced-motion: reduce) { .hub .hub-card { transition: none; } }
