/* ─────────────────────────────────────────
   EB Bento Grid – Categorias Populares
   templates/ut_sombra/css/eb-bento.css
───────────────────────────────────────── */

/* ── Wrapper – centra e limita a largura ── */
.eb-bento-wrapper {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
  width: 100%;
}

/* ── Grid container ── */
.eb-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 260px 260px;
  gap: 14px;
  width: 100%;
}

/* ── Posições bento (6 cards) ── */
.eb-bento-card-1 { grid-column: 1 / 6;  grid-row: 1; }
.eb-bento-card-2 { grid-column: 6 / 9;  grid-row: 1; }
.eb-bento-card-3 { grid-column: 9 / 13; grid-row: 1; }
.eb-bento-card-4 { grid-column: 1 / 4;  grid-row: 2; }
.eb-bento-card-5 { grid-column: 4 / 8;  grid-row: 2; }
.eb-bento-card-6 { grid-column: 8 / 13; grid-row: 2; }

/* ── Fallback para 3 cards (1 linha) ── */
.eb-bento-count-3 {
  grid-template-rows: 320px;
}
.eb-bento-count-3 .eb-bento-card-1 { grid-column: 1 / 5;  grid-row: 1; }
.eb-bento-count-3 .eb-bento-card-2 { grid-column: 5 / 9;  grid-row: 1; }
.eb-bento-count-3 .eb-bento-card-3 { grid-column: 9 / 13; grid-row: 1; }

/* ── Card base ── */
.eb-bento-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  background-color: #1e293b;
}

/* ── Imagem com zoom no hover ── */
.eb-bento-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  z-index: 0;
}
.eb-bento-card:hover .eb-bento-img {
  transform: scale(1.07);
}

/* ── Overlay gradiente ── */
.eb-bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.10) 55%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  transition: background 0.3s ease;
  z-index: 1;
}
.eb-bento-card:hover .eb-bento-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.28) 65%,
    transparent 100%
  );
}

/* ── Badge da categoria ── */
.eb-bento-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(233, 164, 45, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(233, 164, 45, 0.42);
  color: #E9A42D;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 6px;
  width: fit-content;
  margin-bottom: 7px;
}

/* ── Título da categoria ── */
.eb-bento-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

/* ── Contagem de eventos (aparece no hover) ── */
.eb-bento-meta {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 5px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease 0.05s, transform 0.3s ease 0.05s;
}
.eb-bento-card:hover .eb-bento-meta {
  opacity: 1;
  transform: translateY(0);
}

/* ── Seta no canto superior direito ── */
.eb-bento-arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 13px;
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 2;
  text-decoration: none;
}
.eb-bento-card:hover .eb-bento-arrow {
  opacity: 1;
  transform: scale(1);
}

/* ─────────────────────────────────────────
   Responsivo
───────────────────────────────────────── */
@media (max-width: 991px) {
  .eb-bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 220px);
  }
  .eb-bento-card,
  .eb-bento-count-3 .eb-bento-card {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

@media (max-width: 575px) {
  .eb-bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 200px);
  }
}
