/* ==========================================
   HUB
========================================== */

.rst-category-hub {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 15px;
}

/* ==========================================
   CARD
========================================== */

.rst-hub-card {
    overflow: hidden;
    background: linear-gradient(0deg,rgb(30,30,30),rgb(10,10,10));
    border-radius: 10px;
    border: 1px solid var(--category-color);
    box-shadow: 0 2px 5px black;
}

.rst-hub-card + .rst-hub-card{
    margin-top:1rem;
}

/* ==========================================
   HEADER
========================================== */

.rst-hub-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    background: radial-gradient(closest-corner at 50% -300%, var(--category-color), transparent);
}

.rst-hub-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.rst-hub-card-artwork img {
    max-height: 60px;
}

.rst-hub-card-content{
    flex:1;
    min-width:0;
}

.rst-hub-card-title {
    display: flex;
    align-items: center;
    min-height: 40px;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1;
    font-family: 'Atma', sans-serif;
}

.rst-hub-card-logo {
    display: block;
    max-width: 135px;
    max-height: 25px;
    width: auto;
    height: auto;
}

.rst-hub-card-subtitle {
    display: inline-block;
    font-size: .85rem;
    padding: 2px 7px;
    background: var(--category-color);
    color: white;
    border-radius: 5px;
    text-shadow: 0 1px 4px black;
}

.rst-hub-card-icon {
    font-size: 1.4rem;
    color: var(--category-color);
}

.rst-hub-card-icon svg {
    width: 30px;
    color: inherit;
}

/* ==========================================
   CHILDREN
========================================== */

.rst-hub-card-children {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    border-top: 4px solid var(--category-color);
}

/* ==========================================
   ITEM
========================================== */
.rst-hub-item {
    flex: 1 1 150px;
}

.rst-hub-item-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 15px;
    font-family: 'Atma', sans-serif;
    text-decoration: none;
}
.rst-hub-item-name {
    flex: 1;
    min-width: 0;
    font-size: 0.9rem;
    color: white;
    white-space: nowrap;
}

.rst-hub-item-right{
    display:flex;
    align-items:center;
    gap:.75rem;
    white-space:nowrap;
}

.rst-hub-item-count {
    font-size: .8rem;
    color: var(--category-color);
    font-weight: 600;
}

.rst-hub-item-arrow{
    color:#999;
}

/* ==========================================
   NIVELES
========================================== */

.rst-level-3 .rst-hub-item-link{
    padding-left:2rem;
}

.rst-level-4 .rst-hub-item-link{
    padding-left:3rem;
    font-size:.9rem;
}

/* ==========================================
   TABLET
========================================== */

@media (min-width:768px){

    .rst-category-hub{
        gap:1.5rem;
    }

    .rst-hub-card-header{
        padding:1.25rem;
    }

    .rst-hub-card-image{
        width:72px;
        height:72px;
    }

}

/* ==========================================
   DESKTOP
========================================== */

@media (min-width:1200px){

    .rst-category-hub {
        display: grid;
        grid-template-columns: repeat(5,minmax(0,1fr));
        gap: 20px;
    }

    .rst-hub-card + .rst-hub-card{
        margin-top:0;
    }

}