/* Galeria Styles - GOC Brasil */

/* Hero Section */
.galeriaHero {
  position: relative;
  width: 100%;
  min-height: 300px;
  background: linear-gradient(135deg, #3D2B1F 0%, #2a1d15 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
}

.galeriaHero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%23C5A572" stroke-width="0.5" opacity="0.1"/></svg>') repeat;
  background-size: 100px 100px;
  opacity: 0.3;
}

.galeriaHeroContent {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.galeriaTag {
  display: inline-block;
  background: linear-gradient(135deg, #C5A572 0%, #a88a5a 100%);
  color: #3D2B1F;
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.galeriaHeroContent h1 {
  color: white;
  font-family: 'Cinzel', serif;
  font-size: 3rem;
  margin: 0 0 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.galeriaHeroContent p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Gallery Section */
.galeriaSection {
  width: 100%;
  padding: 3rem 0;
  display: flex;
  justify-content: center;
  background-color: #f8f7f5;
  min-height: 60vh;
}

.galeriaContainer {
  max-width: 1400px;
  width: 100%;
  padding: 0 2rem;
}

/* Stats */
.galeriaStats {
  background: white;
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(197, 165, 114, 0.2);
}

.galeriaStats span {
  color: #3D2B1F;
  font-weight: 600;
}

.galeriaStats i {
  color: #C5A572;
}

/* Gallery Grid */
.galeriaGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Gallery Item */
.galeriaItem {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

.galeriaItem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.galeriaItem:hover img {
  transform: scale(1.1);
}

/* Overlay */
.galeriaOverlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(61, 43, 31, 0.9) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}

.galeriaItem:hover .galeriaOverlay {
  opacity: 1;
}

.galeriaCaption {
  color: white;
}

.galeriaCaption p {
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.galeriaDate {
  font-size: 0.8rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #C5A572;
}

/* Expand Button */
.galeriaExpand {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.galeriaItem:hover .galeriaExpand {
  opacity: 1;
  transform: scale(1);
}

.galeriaExpand:hover {
  background: #C5A572;
}

.galeriaExpand i {
  font-size: 1rem;
  color: #3D2B1F;
}

/* Empty State */
.galeriaEmpty {
  background: white;
  border-radius: 1.5rem;
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(197, 165, 114, 0.1);
}

.galeriaEmptyIcon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #3D2B1F 0%, #5a4030 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}

.galeriaEmptyIcon i {
  font-size: 2.5rem;
  color: #C5A572;
}

.galeriaEmpty h2 {
  color: #3D2B1F;
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.galeriaEmpty p {
  color: #666;
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Pagination */
.galeriaPagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.galeriaPaginationBtn {
  background: white;
  color: #3D2B1F;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(197, 165, 114, 0.2);
}

.galeriaPaginationBtn:hover {
  background: #C5A572;
  color: #3D2B1F;
  transform: translateY(-2px);
}

.galeriaPaginationNumbers {
  display: flex;
  gap: 0.5rem;
}

.galeriaPaginationNumber {
  width: 40px;
  height: 40px;
  background: white;
  color: #3D2B1F;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(197, 165, 114, 0.2);
}

.galeriaPaginationNumber:hover,
.galeriaPaginationNumber.active {
  background: #C5A572;
  color: #3D2B1F;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightboxClose {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 50px;
  height: 50px;
  background: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10000;
}

.lightboxClose:hover {
  background: #C5A572;
  transform: rotate(90deg);
}

.lightboxClose i {
  font-size: 1.5rem;
  color: #3D2B1F;
}

.lightboxContent {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightboxContent img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 0.5rem;
}

.lightboxCaption {
  color: white;
  font-size: 1rem;
  margin-top: 1rem;
  text-align: center;
  max-width: 600px;
}

/* ========================================
   Album Cards - Gallery Landing Page
   ======================================== */

.albumGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.albumCard {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  aspect-ratio: 4 / 3;
  text-decoration: none;
  display: block;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.albumCard:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
}

.albumCardImage {
  position: absolute;
  inset: 0;
}

.albumCardImage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.albumCard:hover .albumCardImage img {
  transform: scale(1.08);
}

.albumCardOverlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(61, 43, 31, 0.95) 0%,
    rgba(61, 43, 31, 0.4) 40%,
    transparent 70%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  transition: background 0.3s ease;
}

.albumCard:hover .albumCardOverlay {
  background: linear-gradient(
    to top,
    rgba(61, 43, 31, 0.98) 0%,
    rgba(61, 43, 31, 0.5) 50%,
    transparent 75%
  );
}

.albumCardInfo {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.albumCardInfo h3 {
  color: white;
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  margin: 0 0 0.4rem;
  line-height: 1.3;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.albumCardDesc {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.albumCardCount {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #C5A572;
  font-size: 0.85rem;
  font-weight: 600;
}

.albumCardCount i {
  font-size: 0.8rem;
}

.albumCardArrow {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  background: rgba(197, 165, 114, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(197, 165, 114, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s ease;
}

.albumCard:hover .albumCardArrow {
  opacity: 1;
  transform: translateX(0);
}

.albumCardArrow i {
  color: #C5A572;
  font-size: 0.9rem;
}

/* ========================================
   Album Detail Page - Header & Back Link
   ======================================== */

.albumHero {
  position: relative;
  width: 100%;
  min-height: 220px;
  background: linear-gradient(135deg, #3D2B1F 0%, #2a1d15 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
}

.albumHero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%23C5A572" stroke-width="0.5" opacity="0.1"/></svg>') repeat;
  background-size: 100px 100px;
  opacity: 0.3;
}

.albumHeroContent {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.albumBreadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.albumBreadcrumb a {
  color: #C5A572;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}

.albumBreadcrumb a:hover {
  color: #d4b882;
}

.albumBreadcrumb .fa-chevron-right {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.7rem;
}

.albumBreadcrumb span {
  color: rgba(255, 255, 255, 0.8);
}

.albumHeroContent h1 {
  color: white;
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  margin: 0 0 0.75rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.albumHeroContent p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  line-height: 1.6;
}

.albumBackLink {
  text-align: center;
  margin-top: 2.5rem;
}

.albumBackLink a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #3D2B1F;
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(197, 165, 114, 0.2);
  transition: all 0.3s ease;
}

.albumBackLink a:hover {
  background: #C5A572;
  color: #3D2B1F;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 165, 114, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .galeriaGrid {
    grid-template-columns: repeat(3, 1fr);
  }

  .albumGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .galeriaGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .galeriaHeroContent h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .galeriaHero {
    min-height: 250px;
    padding: 3rem 1.5rem;
  }

  .galeriaHeroContent h1 {
    font-size: 2rem;
  }

  .galeriaHeroContent p {
    font-size: 1rem;
  }

  .galeriaSection {
    padding: 2rem 0;
  }

  .galeriaContainer {
    padding: 0 1rem;
  }

  .galeriaGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .galeriaItem {
    border-radius: 0.75rem;
  }

  .galeriaOverlay {
    padding: 1rem;
  }

  .galeriaCaption p {
    font-size: 0.85rem;
  }

  .galeriaExpand {
    width: 35px;
    height: 35px;
    top: 0.75rem;
    right: 0.75rem;
  }

  .galeriaPagination {
    gap: 0.75rem;
  }

  .galeriaPaginationBtn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .galeriaPaginationNumber {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .lightboxClose {
    width: 40px;
    height: 40px;
    top: 1rem;
    right: 1rem;
  }

  .lightboxClose i {
    font-size: 1.25rem;
  }

  /* Album responsive - tablet */
  .albumGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .albumCardInfo h3 {
    font-size: 1.15rem;
  }

  .albumHero {
    min-height: 180px;
    padding: 2.5rem 1.5rem;
  }

  .albumHeroContent h1 {
    font-size: 2rem;
  }

  .albumHeroContent p {
    font-size: 1rem;
  }

  .albumBreadcrumb {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .galeriaHero {
    min-height: 200px;
    padding: 2rem 1rem;
  }

  .galeriaHeroContent h1 {
    font-size: 1.75rem;
  }

  .galeriaTag {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
  }

  .galeriaGrid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .galeriaItem {
    aspect-ratio: 4 / 3;
  }

  .galeriaStats {
    width: 100%;
    justify-content: center;
  }

  .galeriaEmpty {
    padding: 3rem 1.5rem;
  }

  .galeriaEmptyIcon {
    width: 80px;
    height: 80px;
  }

  .galeriaEmptyIcon i {
    font-size: 2rem;
  }

  .galeriaEmpty h2 {
    font-size: 1.25rem;
  }

  .galeriaEmpty p {
    font-size: 0.95rem;
  }

  .galeriaPaginationNumbers {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Album responsive - mobile */
  .albumGrid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .albumCard {
    aspect-ratio: 16 / 10;
  }

  .albumCardOverlay {
    padding: 1.25rem;
  }

  .albumCardInfo h3 {
    font-size: 1.1rem;
  }

  .albumCardDesc {
    font-size: 0.85rem;
    -webkit-line-clamp: 1;
  }

  .albumCardArrow {
    width: 36px;
    height: 36px;
    top: 1rem;
    right: 1rem;
  }

  .albumHero {
    min-height: 160px;
    padding: 2rem 1rem;
  }

  .albumHeroContent h1 {
    font-size: 1.5rem;
  }

  .albumBreadcrumb {
    font-size: 0.8rem;
    gap: 0.4rem;
  }
}

/* ============================================================
   VIDEO BADGE — Overlay play icon on video items
   ============================================================ */

.galeriaVideoBadge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.85);
  pointer-events: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, color 0.3s ease;
}

.galeriaItem:hover .galeriaVideoBadge {
  transform: translate(-50%, -50%) scale(1.15);
  color: var(--cor-primaria, #C5A572);
}

/* Album card video badge */
.albumCardVideoBadge {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  backdrop-filter: blur(4px);
}
