:root{
  --hub-maxw: 1200px;
  --hub-gap: 16px;
  --hub-radius: 18px;
  --hub-shadow: 0 10px 28px rgba(2, 6, 23, .06);
  --hub-shadow-hover: 0 16px 36px rgba(2, 6, 23, .12);
  --hub-bg: #ffffff;
  --hub-tint: #f3f6fb;             
  --hub-accent: #0f172a;           
  --hub-brand: #ea6c53;            
}


.bb-category-hub{
  margin: 28px auto 8px;
  max-width: var(--hub-maxw);
  padding: 0 clamp(16px, 3vw, 24px);
}


.bb-category-hub::before{
  content: "Rychlý rozcestník";
  display: block;
  font-weight: 800;
  color: var(--hub-accent);
  margin: 0 0 12px;
}


.bb-category-hub__grid{
  display: grid;
  gap: var(--hub-gap);
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* Dlaždice */
.bb-hub-card{
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  min-height: 160px;
  padding: 18px 14px;
  border-radius: var(--hub-radius);
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(234,108,83,.06), transparent 60%),
    var(--hub-bg);
  box-shadow: var(--hub-shadow);
  border: 1px solid rgba(15,23,42,.06);
  color: var(--hub-accent);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
  isolation: isolate;             
  overflow: hidden;
}


.bb-hub-card::before{
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(234,108,83,.25), rgba(16,185,129,.25));
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
  z-index: -1;
}

.bb-hub-card::after{
  content: "›";
  position: absolute;
  right: 14px; bottom: 10px;
  font-weight: 900; font-size: 18px;
  color: rgba(15,23,42,.25);
  transform: translateX(-4px);
  transition: opacity .2s ease, transform .2s ease, color .2s ease;
  opacity: 0;
}

.bb-hub-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--hub-shadow-hover);
  border-color: rgba(234,108,83,.35);
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(234,108,83,.10), transparent 60%),
    var(--hub-bg);
}
.bb-hub-card:hover::before{ opacity: .25; }
.bb-hub-card:hover::after{
  opacity: 1; transform: translateX(0);
  color: rgba(234,108,83,.9);
}

.bb-hub-card__img{
  width: 96px; height: 96px;
  margin-bottom: 12px;
  object-fit: contain;
  border-radius: 14px;
  background: var(--hub-tint);
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.06),
              0 6px 16px rgba(2, 6, 23, .05);
  transition: transform .18s ease, box-shadow .18s ease;
}
.bb-hub-card:hover .bb-hub-card__img{
  transform: translateY(-2px) scale(1.02);
  box-shadow: inset 0 0 0 1px rgba(234,108,83,.35),
              0 10px 24px rgba(2, 6, 23, .10);
}

.bb-hub-card__label{
  font-weight: 800;
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.5rem); 
  line-height: 1.3;
  letter-spacing: .1px;
}

.bb-hub-card:focus{
  outline: 3px solid var(--hub-brand);
  outline-offset: 2px;
  border-color: var(--hub-brand);
}

@keyframes bb-hub-fade{
  from{ opacity: 0; transform: translateY(8px); }
  to  { opacity: 1; transform: translateY(0); }
}
.bb-hub-card[data-in]{ animation: bb-hub-fade .36s ease both; }

@media (max-width: 1200px){
  .bb-category-hub__grid{ grid-template-columns: repeat(4,1fr); }
}
@media (max-width: 900px){
  .bb-category-hub__grid{ grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 640px){
  .bb-category-hub__grid{ grid-template-columns: repeat(2,1fr); }
  .bb-hub-card{ min-height: 140px; }
  .bb-hub-card__img{ width: 84px; height: 84px; }
}
@media (max-width: 420px){
  .bb-category-hub__grid{ grid-template-columns: 1fr; }
}
