/* ========= COLEÇÕES — colecoes.html ========= */

/* Usa os mesmos estilos de .card-grid do 05-acervo.css */
/* Importar ou duplicar as classes necessárias */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.card {
  background: #ffffff;
  border-radius: 14px;
  padding: 0.9rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: visible;
}

.card::before {
  content: '';
  position: absolute;
  inset: -6px;
  background: linear-gradient(
    135deg,
    rgba(208, 187, 108, 0.35) 0%,
    rgba(230, 214, 168, 0.3) 25%,
    rgba(208, 187, 108, 0.35) 50%,
    rgba(168, 138, 63, 0.3) 75%,
    rgba(208, 187, 108, 0.35) 100%
  );
  border-radius: 16px;
  z-index: -2;
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: blur(6px);
}

.card::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(
    135deg,
    #d0bb6c 0%,
    #e6d6a8 25%,
    #d0bb6c 50%,
    #a88a3f 75%,
    #d0bb6c 100%
  );
  border-radius: 14px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  border-color: var(--primary-soft);
}

.card img {
  width: 100%;
  height: 140px;
  border-radius: 14px 14px 0 0;
  border: 1px solid var(--border-soft);
  object-fit: cover;
  background: #e5e7eb;
  display: block;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
}

.card-tagline {
  font-size: 0.88rem;
  color: var(--muted);
}

.card-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.card-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  flex-wrap: wrap;
}

.card-actions .btn {
  flex: 1;
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  border-radius: 12px;
  font-weight: 600;
}

/* ========= RESPONSIVO ========= */
@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
