/* ABI-HOMETILES-CSS-LOADED */

:root {
  --abi-ht-brand: #942328;
  --abi-ht-brand-dark: #6f1a1e;
}

.abi-home-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
}

@media (max-width: 992px) {
  .abi-home-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .abi-home-tiles {
    grid-template-columns: 1fr;
  }
}

.abi-home-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  padding: 16px;
  border-radius: 4px;
  overflow: hidden;
  background-color: var(--abi-ht-brand);
  background-size: cover;
  background-position: center;
  text-decoration: none;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.abi-home-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Kafelki bez zdjęcia (jeszcze) - jednolite tło w kolorze marki,
   z lekkim gradientem dla odrobiny głębi. Gdy dodasz zdjęcie kategorii
   w panelu, kafelek automatycznie zacznie go używać zamiast tego tła. */
.abi-home-tile-noimg {
  background-image: linear-gradient(135deg, var(--abi-ht-brand), var(--abi-ht-brand-dark));
}

/* Gdy JEST zdjęcie w tle, dokładamy przyciemniający nakład, żeby biała
   ikona i napis były zawsze czytelne niezależnie od jasności zdjęcia. */
.abi-home-tile:not(.abi-home-tile-noimg)::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.abi-home-tile-icon {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.abi-home-tile-label {
  position: relative;
  z-index: 1;
  display: block;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
