/* KMQ Builds projects hub — hub-only styles (2026-11-19).
   Loaded ONLY by /projects/index.html, after style-v5.css.
   New file: no ?v= bump needed on first deploy; bump the ?v= on the
   hub.css link in projects/index.html if this file ever changes. */

/* --- Interest tiles ("What are you interested in?") --- */
.hub-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0 0 2.5rem; }
.hub-tile { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; text-align: left; border: 0; border-radius: var(--radius); padding: 1.25rem 1.35rem 1.15rem; color: #fff; cursor: pointer; font-family: var(--display); box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; text-decoration: none; }
.hub-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.hub-tile:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.hub-tile .hub-tile-glyph { font-size: 1.6rem; line-height: 1; opacity: .95; }
.hub-tile .hub-tile-label { font-size: 1.15rem; font-weight: 800; line-height: 1.25; }
.hub-tile .hub-tile-count { font-family: var(--sans); font-size: .85rem; font-weight: 500; opacity: .92; }
.hub-tile[aria-pressed="true"] { outline: 3px solid var(--sun); outline-offset: 2px; }
.hub-tile-retro { background: linear-gradient(120deg, #4a1042, #cd2355); }
.hub-tile-home { background: linear-gradient(120deg, #083f4d, #0e7c86); }
.hub-tile-code { background: linear-gradient(120deg, #22252d, #374e60); }
.hub-tile-space { background: linear-gradient(120deg, #141b3a, #004881); }

/* --- Tech pills ("What do you want to build with?") --- */
.hub-tech { margin: 0 0 2rem; }
.hub-tech-label { font-weight: 700; font-size: .95rem; color: var(--text-muted); margin: 0 0 .6rem; }
.hub-tech-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.hub-pill { padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--ink); font-weight: 600; font-size: .92rem; cursor: pointer; font-family: var(--sans); }
.hub-pill:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-tint); }
.hub-pill:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.hub-pill[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* --- Search + level filter bar --- */
.hub-filterbar { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 0 0 1rem; box-shadow: var(--shadow); }
.hub-search { flex: 1 1 16rem; display: flex; align-items: center; gap: .5rem; border: 1px solid var(--border); border-radius: 999px; padding: .45rem .9rem; background: var(--bg); }
.hub-search input { border: 0; background: transparent; font: inherit; font-size: 1rem; width: 100%; color: var(--ink); }
.hub-search input:focus { outline: none; }
.hub-search:focus-within { outline: 3px solid var(--sun); outline-offset: 1px; }
.hub-levels { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.hub-levels .hub-tech-label { margin: 0; }
.hub-count { margin: 0 0 1.5rem; color: var(--text-muted); font-size: .95rem; }
.hub-count strong { color: var(--ink); }

/* --- Level signal bars (1/2/3) --- */
.level-bars { display: inline-flex; align-items: flex-end; gap: 2px; margin-right: .35rem; vertical-align: baseline; }
.level-bars i { display: block; width: 4px; background: var(--border); border-radius: 1px; }
.level-bars i:nth-child(1) { height: 6px; }
.level-bars i:nth-child(2) { height: 9px; }
.level-bars i:nth-child(3) { height: 12px; }
.level-bars i.on { background: var(--accent); }
.hub-level-line { display: flex; align-items: center; gap: .1rem; font-size: .82rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--accent2-dark); margin-bottom: .15rem; }

/* --- Card "learn & need" expander --- */
.hub-more { margin-top: .9rem; border-top: 1px solid var(--border); padding-top: .8rem; font-size: .92rem; }
.hub-more summary { cursor: pointer; font-weight: 700; color: var(--accent-dark); list-style: none; }
.hub-more summary::-webkit-details-marker { display: none; }
.hub-more summary::before { content: "+ "; font-weight: 800; }
.hub-more[open ] summary::before { content: "\2013  "; }
.hub-more summary:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
.hub-more-label { font-weight: 700; color: var(--ink); margin: .8rem 0 .25rem; }
.hub-more ul { margin: 0 0 .2rem; padding-left: 1.15rem; color: var(--text-muted); }
.hub-more li { margin: .15rem 0; line-height: 1.55; }
.hub-more .hub-cost-line { margin: .8rem 0 0; font-weight: 700; color: var(--ink); }

/* --- Card art: illustrated cards use the image, the rest keep the gradient tile --- */
.hub-card .proj-art-img { height: 150px; }
.hub-card .proj-art-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hub-card h3 a { color: var(--ink); text-decoration: none; }
.hub-card h3 a:hover { color: var(--accent-dark); text-decoration: underline; }

/* --- Category pages: back link --- */
.hub-back { margin: 0 0 1.5rem; font-weight: 700; }
.hub-back a { text-decoration: none; }
.hub-back a:hover { text-decoration: underline; }

/* --- Empty state + promo line --- */
.hub-empty { display: none; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; text-align: center; margin: 0 0 3rem; }
.hub-empty p { margin: 0 0 1rem; color: var(--text-muted); }
.hub-promo { background: var(--accent2-tint); border: 1px solid #cfe0ee; border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 0 0 3rem; }
.hub-promo p { margin: 0; }
.hub-promo a { font-weight: 700; }

@media (max-width: 860px) {
  .hub-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .hub-tiles { grid-template-columns: 1fr; }
}
