/* Hub pages, top area v4 (2026-09-27): loaded after hubs.css by the hub pages built with _hub2.php. The hero is the live hub
   hero (background, copy, buttons, the panel and its stats); only the panel's three small banners became a clickable list.
   Site pieces only: Minecraft Ten headings (.f-mc), PVPRP blue buttons, dark panels with the blue edge, pack banners. */
.hub2-hero {
    padding-bottom: 0;
    overflow: visible;   /* the search suggestions open below the browse bar */
    z-index: 5;
}
.hub2-ico { display: inline-block; vertical-align: -3px; flex: 0 0 auto; }

/* the hero panel's picks as a list: rank, banner, name, creator and downloads */
.hub2-top-label {
    display: block;
    margin: -0.2vh 0 0.8vh;
    color: var(--c-blue);
    font-size: 0.82em;
    line-height: 1;
}
.hub2-rows { display: flex; flex-direction: column; }
.hub2-row {
    display: grid;
    grid-template-columns: 1.5em 112px minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.4vh;
    padding: 0.9vh 1vh;
    margin: 0 -1vh;
    text-decoration: none;
    border-top: 1px solid rgba(255,255,255,0.06);
    transition: background 0.14s ease;
}
.hub2-row:first-child { border-top: 0; }
.hub2-row:hover { background: rgba(255,255,255,0.045); }
.hub2-row-rank { color: rgba(223,227,233,0.45); text-align: center; line-height: 1; transition: color 0.14s ease; }
.hub2-row-art {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(0,0,0,0.22);
}
.hub2-row-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hub2-row-res { position: absolute; right: 4px; bottom: 3px; font-size: 0.72em; line-height: 1; }
.hub2-row-txt { display: block; min-width: 0; }
.hub2-row-txt strong { display: block; font-size: 0.98em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub2-row-txt small { display: block; margin-top: 0.45vh; color: rgba(223,227,233,0.62); font-size: 0.84em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub2-row-go { display: inline-flex; color: rgba(223,227,233,0.3); transition: color 0.14s ease, transform 0.14s ease; }
.hub2-row:hover .hub2-row-go { color: var(--c-blue); transform: translateX(2px); }
.hub2-row:hover .hub2-row-rank { color: var(--c-blue); }
.hub2-top .hub-stat-grid { margin-top: 1.3vh; }
.hub2-top .hub-stat { padding: 1.2vh 1.5vh; }
.hub2-top .hub-stat strong { font-size: 1.45em; }

/* browse bar: search with suggestions + quick filters */
.hub2-browse {
    max-width: 1280px;
    margin: 4.2vh auto 0;
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(300px, 1fr) auto;
    gap: 2vh;
    align-items: center;
    padding: 1.5vh 1.6vh 1.5vh 2vh;
    background: rgba(16,22,30,0.84);
    border: 1px solid rgba(255,255,255,0.08);
    border-bottom: 0;
    box-shadow: inset 4px 0 0 var(--c-blue);
}
.hub2-search { display: grid; grid-template-columns: 1fr auto; gap: 1vh; }
.hub2-search .hub-search-input-wrap { position: relative; }
.hub2-search .hub-search-input-wrap > .hub2-ico {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(223,227,233,0.55);
    pointer-events: none;
    z-index: 1;
}
.hub2-search input[type="text"] {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 38px;
    box-sizing: border-box;
    color: var(--c-switch);
    background: #2a313b;
    border: 2px solid rgba(255,255,255,0.08);
    outline: none;
    font-size: 1em;
}
.hub2-search input[type="text"]:focus { border-color: var(--c-blue); }
.hub2-search button {
    height: 44px;
    min-width: 0;
    width: auto;
    padding: 0 18px;
    background: var(--c-blue);
    color: #fff;
    border: 0;
    cursor: pointer;
}
.hub2-search button:hover { filter: brightness(1.08); }
.hub2-search .hub-search-ac { z-index: 30; }
.hub2-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.8vh;
    justify-content: flex-end;
}
.hub2-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.6vh;
    padding: 0.85vh 1.2vh 0.7vh;
    color: rgba(223,227,233,0.9);
    background: rgba(255,255,255,0.035);
    border: 2px solid rgba(255,255,255,0.1);
    text-decoration: none;
    font-size: 0.86em;
    line-height: 1.1;
    white-space: nowrap;
    transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
.hub2-chip .hub2-ico { color: var(--c-blue); }
.hub2-chip:hover { background: rgba(76,131,226,0.16); border-color: var(--c-blue); color: #fff; }

/* category links: the live link cards (title + blue subtitle) with a small picture of the top pack behind each link */
.hub2-styles .hub-section-head { margin-bottom: 1.8vh; }
.hub2-style-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2vh;
}
.hub2-style {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.6vh;
    padding: 1.2vh 1.8vh 1.2vh 1.2vh;
    background: var(--c-gray);
    border: 1px solid rgba(255,255,255,0.06);
    border-left: 4px solid var(--c-blue);
    text-decoration: none;
    transition: background 0.14s ease, border-color 0.14s ease;
}
.hub2-style:hover { background: #3a4553; border-color: rgba(76,131,226,0.45); border-left-color: var(--c-blue); }
.hub2-style-art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(0,0,0,0.22);
}
.hub2-style-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hub2-style--tool .hub2-style-art { background: linear-gradient(135deg, #202936 0%, #18202a 100%); color: rgba(76,131,226,0.9); }
.hub2-style--tool .hub2-style-art .hub2-ico { width: 30px; height: 30px; }
.hub2-style-txt { display: block; min-width: 0; }
.hub2-style-txt strong { display: block; font-size: 1.2em; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub2-style-txt small { display: block; margin-top: 0.6vh; color: var(--c-blue); font-size: 0.82em; line-height: 1.1; }
.hub2-style-go { display: inline-flex; color: rgba(223,227,233,0.3); transition: color 0.14s ease, transform 0.14s ease; }
.hub2-style:hover .hub2-style-go { color: var(--c-blue); transform: translateX(2px); }
/* 'What players look for' links: the neutral quick-filter style with an arrow, so they read as links */
.hub-page .hub-pill {
    justify-content: space-between;
    gap: 1vh;
    text-align: left;
    padding: 0.85vh 1.4vh;
    color: rgba(223,227,233,0.92);
    background: rgba(255,255,255,0.035);
    border: 2px solid rgba(255,255,255,0.1);
}
.hub-page .hub-pill:after {
    content: "";
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    background: var(--c-blue);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='M5 12h13M13 7l5 5-5 5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='M5 12h13M13 7l5 5-5 5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hub-page .hub-pill:hover { transform: none; background: rgba(76,131,226,0.16); border-color: var(--c-blue); color: #fff; }
.hub2-about {
    margin-top: 2.4vh;
    padding: 2.2vh 2.4vh;
    background: var(--c-gray);
    border: 1px solid rgba(255,255,255,0.06);
    border-left: 5px solid var(--c-blue);
}
.hub2-about .hub-copy-desktop { column-count: 2; column-gap: 4vh; }
.hub2-about p { margin: 0 0 1.4vh; line-height: 1.6; color: rgba(223,227,233,0.86); break-inside: avoid; }
.hub2-about p:last-child { margin-bottom: 0; }

/* the rest of the hub page: long pack names end in an ellipsis instead of a cut letter */
.hub-page .hub-grid .pack-title { text-overflow: ellipsis; }
/* desktop: the site-wide section padding (5% of the width) left ~220 px between sections; a tighter rhythm */
@media (min-width: 981px) {
    .hub-page .hub-main .hub-section { padding-top: clamp(28px, 2.9vw, 44px); padding-bottom: clamp(28px, 2.9vw, 44px); }
}

@media (max-width: 1100px) {
    .hub2-browse { grid-template-columns: 1fr; }
    .hub2-chips { justify-content: flex-start; flex-wrap: wrap; }
    .hub2-style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
    .hub2-hero .hub-actions { display: flex; flex-wrap: nowrap; gap: 1vh; }
    .hub2-hero .hub-actions .hub-btn { flex: 1 1 0; min-width: 0; text-align: center; font-size: 0.84em; padding: 1.4vh 0.8vh; white-space: nowrap; }
    .hub2-search button { padding: 0 14px; }
    .hub2-about .hub-copy-desktop { column-count: 1; }
    /* 'What players look for' cards: stacked on phones, sized to their two lines instead of the 150 px minimum */
    .hub-page .hub-vibe-card { min-height: 0; }
}
/* phones: smaller list banners, the filters one scrolling line, the category cards one column */
@media (max-width: 600px) {
    .hub2-row { grid-template-columns: 1.1em 96px minmax(0, 1fr); gap: 1.2vh; }
    .hub2-row-go { display: none; }   /* the whole row is the link; the room goes to the name and downloads */
    .hub2-row-txt small { white-space: normal; line-height: 1.35; }
    .hub2-top .hub-stat-grid { grid-template-columns: 1fr 1fr; }
    /* pack cards: the views and downloads pills overflowed the two-column grid and cut the download count */
    .hub-page .hub-grid .stats-grid { gap: 9px; flex-wrap: wrap; row-gap: 2px; }
    .hub-page .hub-grid .pack-inf { padding: 0 !important; background: none !important; box-shadow: none !important; }
    .hub-page .hub-grid .pack-inf-ico { margin-right: 3px !important; }
    .hub-page .hub-grid .pack-inf-ico img { height: 13px !important; }
    .hub-page .hub-grid .pack-inf h5 { font-size: 12px !important; }
    /* 'What players look for' links: two per row, whole words (hubs.css declares its 4-column row after its phone rule) */
    .hub-page .hub-pill-row { grid-template-columns: 1fr 1fr; }
    .hub-page .hub-pill { overflow-wrap: normal; word-break: normal; white-space: nowrap; font-size: 0.86em; min-height: 40px; }
    .hub2-browse { margin: 3vh -5.4% 0; padding: 1.4vh 5.4%; box-shadow: inset 0 3px 0 var(--c-blue); border-left: 0; border-right: 0; }
    .hub2-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 0 -5.4%;
        padding: 0 5.4% 0.2vh;
        scrollbar-width: none;
        -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
        mask-image: linear-gradient(90deg, #000 88%, transparent);
    }
    .hub2-chips::-webkit-scrollbar { display: none; }
    .hub2-style-grid { grid-template-columns: 1fr; gap: 1vh; }
    .hub2-style { grid-template-columns: 96px minmax(0, 1fr) auto; gap: 1.4vh; }
    .hub2-style-txt strong { font-size: 1.1em; }
    .hub-page .hub-pill { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
    .hub2-style, .hub2-style-go, .hub2-row, .hub2-row-go { transition: none; }
    .hub2-style:hover .hub2-style-go, .hub2-row:hover .hub2-row-go { transform: none; }
}
