/* ==========================================================================
   Κάρτες-πύλες (κατηγορίες με υποσελίδες)
   ========================================================================== */
.hubc {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(1rem, 2.4vw, 1.75rem);
    margin: 0;
    padding: 0;
    list-style: none;
}
.hubc--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }

.hubc__card {
    --acc: var(--c-teal);
    --acc-bg: linear-gradient(155deg, var(--c-mint), #c5e9e3);
    --acc-ink: var(--c-dark);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--c-line);
    border-radius: 28px;
    background: var(--c-white);
    transition: box-shadow .3s var(--ease), translate .3s var(--ease);
}
.hubc__card:hover { box-shadow: var(--shadow-lift); translate: 0 -4px; }
.hubc__card--orange { --acc: var(--c-orange-600); --acc-bg: linear-gradient(155deg, var(--c-peach), #fbd3bb); }
.hubc__card--dark { --acc: var(--c-orange); --acc-bg: linear-gradient(155deg, var(--c-dark), #24505d); --acc-ink: var(--c-white); }
.hubc__card--yellow { --acc: #a87a00; --acc-bg: linear-gradient(155deg, #fff4cf, #ffe69a); }

.hubc__head {
    position: relative;
    isolation: isolate;
    display: grid;
    gap: .5rem;
    padding: 1.6rem 1.6rem 1.4rem;
    background: var(--acc-bg);
    color: var(--acc-ink);
}
.hubc__head::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -40px;
    bottom: -70px;
    width: 170px;
    aspect-ratio: 1;
    border: 28px solid rgb(255 255 255 / .28);
    border-radius: 50%;
}
.hubc__card--dark .hubc__head::after { border-color: rgb(255 255 255 / .06); }
.hubc__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: .35rem;
    border-radius: 16px;
    background: var(--c-white);
    color: var(--acc);
    font-size: 1.6rem;
    box-shadow: 0 10px 20px -12px rgb(28 58 68 / .5);
}
.hubc__card--dark .hubc__icon { background: rgb(255 255 255 / .1); }
.hubc__label { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--acc); }
.hubc__card--dark .hubc__label { color: var(--c-orange); }
.hubc__title { margin: 0; font-size: clamp(1.35rem, 1.1rem + .8vw, 1.65rem); line-height: 1.2; color: inherit; }
.hubc__title a { color: inherit; }
.hubc__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hubc__text { margin: 0; font-size: var(--fs-sm); opacity: .85; }

.hubc__links { display: grid; margin: 0; padding: .6rem; list-style: none; }
.hubc__links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    border-radius: 16px;
    color: var(--c-dark);
    transition: background-color .2s var(--ease);
}
.hubc__links li + li a { box-shadow: inset 0 1px 0 var(--c-line); }
.hubc__links a:hover { background: var(--c-mint-50); box-shadow: none; }
.hubc__links a:hover + * { box-shadow: none; }
.hubc__link-text { display: grid; gap: .15rem; }
.hubc__link-text strong { font-weight: 800; }
.hubc__link-text small { font-size: var(--fs-xs); color: var(--c-muted); }
.hubc__links .icon { flex: none; color: var(--acc); transition: translate .2s var(--ease); }
.hubc__card--dark .hubc__links .icon { color: var(--c-orange-600); }
.hubc__links a:hover .icon { translate: 4px 0; }

.hubc__more {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: auto 1.6rem 1.4rem;
    padding-top: .5rem;
    font-size: var(--fs-sm);
    font-weight: 800;
    color: var(--acc);
}
.hubc__card--dark .hubc__more { color: var(--c-orange-600); }
.hubc__more:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
    .hubc__card, .hubc__links .icon { transition: none; }
}
