/* ESTILOS DO MURAL DE PRESENTES (FANARTS DA COMUNIDADE - TEMA ORIGINAL AZUL & ROSA) */

.presentes-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem 1.5rem;
}

.presentes-min-height {
  min-height: calc(100vh - 250px);
}

.presentes-hero {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem 1rem;
}

.presentes-hero h1 {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #2bb8fc 0%, #fe55bd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.presentes-hero p {
  font-size: 1.1rem;
  color: #64748b;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

/* LISTA / GRID DOS AUTORES */
.presentes-authors-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  align-items: start;
}

.author-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(23, 54, 87, 0.08);
  box-shadow: 0 8px 24px rgba(23, 54, 87, 0.04);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.author-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(234, 73, 139, 0.12);
  border-color: rgba(234, 73, 139, 0.25);
}

/* HEADER DO AUTOR COM EMBLEMA/AVATAR */
.author-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(to right, rgba(240, 249, 255, 0.8), rgba(255, 240, 250, 0.7));
  border-bottom: 1px solid rgba(23, 54, 87, 0.06);
}

.author-profile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex: 1;
}

/* EMBLEMA DO AUTOR (MOLDURA ESTILIZADA AZUL/ROSA) */
.author-emblem-badge {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, #2bb8fc, #fe55bd);
  box-shadow: 0 4px 14px rgba(234, 73, 139, 0.25);
  flex-shrink: 0;
}

.author-emblem-badge img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background-color: #ffffff;
  display: block;
}

.author-emblem-badge .default-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.6rem;
}

.author-meta {
  min-width: 0;
  flex: 1;
}

.author-meta h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.15rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.author-badge-count {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  background: rgba(34, 197, 94, 0.16);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
}

.author-meta p {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
  line-height: 1.3;
}

.author-socials {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.author-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--color-text);
  border: 1px solid rgba(23, 54, 87, 0.1);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.author-social-link:hover {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(234, 73, 139, 0.25);
}

/* GRID DE ARTES DO AUTOR */
.author-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.25rem;
}

.gift-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid rgba(23, 54, 87, 0.05);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  aspect-ratio: 4 / 3;
}

.gift-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(23, 54, 87, 0.1);
  border-color: rgba(234, 73, 139, 0.35);
}

.gift-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gift-item:hover img {
  transform: scale(1.04);
}

.gift-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23, 54, 87, 0.88) 0%, rgba(23, 54, 87, 0.2) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: #ffffff;
}

.gift-item:hover .gift-overlay {
  opacity: 1;
}

.gift-overlay h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.gift-overlay p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
}

/* ESTADO VAZIO CASO AINDA NÃO TENHA ARTES CADASTRADAS */
.empty-gifts-notice {
  text-align: center;
  padding: 3rem 1.5rem;
  background: rgba(240, 249, 255, 0.4);
  border-radius: 16px;
  border: 1px dashed rgba(23, 54, 87, 0.15);
  color: #64748b;
  margin-top: 2rem;
}

.empty-gifts-notice .material-symbols-rounded {
  font-size: 3rem;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

/* LIGHTBOX MODAL REUTILIZADO DO DESIGN SYSTEM */
.presentes-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.presentes-lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content-wrapper {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: #ffffff;
  text-align: center;
  margin-top: 1rem;
  max-width: 700px;
}

.lightbox-caption h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.lightbox-caption p {
  font-size: 0.9rem;
  color: #cbd5e1;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 2005;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .presentes-hero h1 {
    font-size: 2rem;
  }
  .author-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .author-gallery {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }
}
