/* CSS para frontend do plugin Galeria de Aniversarios */

.ga-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.ga-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ga-item {
  border-radius: 16px !important;
  overflow: hidden !important;
  position: relative;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.ga-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ga-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 0;
  transition: background 0.3s ease;
}

.ga-item:hover::before {
  background: rgba(0, 0, 0, 0.2);
}

.ga-item > * {
  position: relative;
  z-index: 1;
}

.ga-button {
  width: 100%;
  padding: 18px 20px !important;
  background: transparent !important;
  border: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  text-align: left;
  transition: background 0.3s ease;
}

.ga-button:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

.ga-arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.ga-item.open .ga-arrow {
  transform: rotate(180deg);
}

.ga-panel {
  display: none;
  padding: 0 20px 20px;
}

.ga-item.open .ga-panel {
  display: block;
}

.ga-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.ga-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.ga-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.ga-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  transition: transform 0.3s ease;
}

.ga-card:hover img {
  transform: scale(1.1);
}

.ga-lightbox-trigger {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: left;
}

.ga-lightbox-trigger:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
}

.ga-lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.ga-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ga-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
}

.ga-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(92vw, 1200px);
  max-height: 92vh;
  padding: 24px;
}

.ga-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 48px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.ga-lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(30%, -30%);
  background: rgba(255, 255, 255, 0.2);
  border: 0;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.3s ease;
}

.ga-lightbox-close:hover,
.ga-lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.4);
}

.ga-screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .ga-button {
    padding: 16px !important;
    font-size: 14px;
  }

  .ga-panel {
    padding: 0 16px 16px;
  }

  .ga-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
  }

  .ga-card img {
    height: 150px;
  }

  .ga-lightbox-dialog {
    width: 100%;
    max-height: 100vh;
    padding: 16px;
  }

  .ga-lightbox-image {
    max-height: 80vh;
  }

  .ga-lightbox-close {
    top: 12px;
    right: 12px;
    transform: none;
  }
}
