/* V-Pet Hub page, built on the guide layout */

.hub-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    align-items: start;
}

.hub-count {
    color: var(--text-gray);
    font-size: 0.85em;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}

.hub-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hub-card.is-live {
    border-color: rgba(255, 77, 109, 0.55);
    box-shadow: 0 0 14px rgba(255, 77, 109, 0.18);
}

.hub-sprite {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background-repeat: no-repeat;
    background-position: 0 0;
    image-rendering: pixelated;
    border-radius: 8px;
    background-color: #eef2e4;
}

canvas.hub-sprite {
    background: none;
}

.hub-card-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hub-channel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--text-light);
    text-decoration: none;
}

.hub-channel:hover {
    color: var(--primary-color);
}

.hub-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.hub-avatar-blank {
    display: inline-grid;
    place-items: center;
    font-size: 11px;
    background: rgba(255, 255, 255, 0.12);
}

.hub-live {
    align-self: flex-start;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 1px 6px;
    border-radius: 4px;
    background: #ff4d6d;
    color: #fff;
}

.hub-pet {
    color: var(--text-light);
}

.hub-pet small {
    color: var(--text-gray);
}

.hub-meta {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.hub-meta i {
    color: var(--accent-color);
    margin-left: 4px;
}

.hub-meta code {
    font-size: 0.75rem;
}

.hub-news {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hub-news-row {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    font-size: 0.9rem;
}

.hub-news-row .hub-sprite {
    width: 36px;
    height: 36px;
}

@media (max-width: 900px) {
    .hub-shell {
        grid-template-columns: 1fr;
    }
}
