/* ============================================================
   Page: Galéria
   Owner: galeria.css
   ============================================================ */

/* ---------- Hero Section ---------- */
.hero-gallery {
  position: relative;
  width: 100%;
  height: 80vh;
  background: url('/src/media/galeria-hero-background.webp') center/cover no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-gallery__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(106, 13, 173, 0.6), rgba(255, 105, 180, 0.4));
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-gallery__panel {
  max-width: 800px;
  width: 90%;
  padding: 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  background: rgba(26, 26, 46, 0.8);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-none);
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-gallery__title {
  font-size: var(--fs-h1);
  color: var(--text-light);
  margin: 0;
}

.hero-gallery__subtitle {
  font-size: var(--fs-h2);
  color: var(--text-muted);
  margin: 0;
}

.hero-gallery__intro {
  max-width: 600px;
  font-size: var(--fs-body);
  color: var(--text-light);
  margin: 0;
}

.hero-gallery__cta {
  min-width: 200px;
}

/* ---------- Intro Section ---------- */
.intro-section {
  background-color: var(--bg-dark);
  padding: var(--space-3xl) 0;
}

.intro-section__container {
  display: grid;
  grid-template-columns: 60% 40%;
  align-items: center;
}

.intro-section__text {
  padding-right: var(--space-xl);
}

.intro-section__heading {
  margin-bottom: var(--space-md);
  text-align: left;
}

.intro-section__description {
  max-width: 700px;
  text-align: left;
  margin: 0;
}

.intro-section__decoration {
  height: 4px;
  background: linear-gradient(to right, var(--accent-violet), var(--accent-pink));
  width: 100%;
}

/* ---------- Featured Image ---------- */
.featured-image {
  padding: var(--space-3xl) 0;
  background-color: var(--bg-dark);
}

.featured-image__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.featured-image__img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  filter: sepia(0.3) hue-rotate(250deg) saturate(0.8) brightness(0.9);
  cursor: pointer;
}

.featured-image__caption {
  max-width: 400px;
  text-align: center;
  font-size: var(--fs-small);
  font-style: italic;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Gallery Sections (shared) ---------- */
.gallery-section {
  padding: var(--space-3xl) 0;
  background-color: var(--bg-dark);
}

.gallery-section__container {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: var(--space-xl);
  align-items: center;
}

.gallery-section__text {
  /* default left-aligned */
}

.gallery-section__heading {
  margin-bottom: var(--space-md);
}

.gallery-section__description {
  max-width: 600px;
  margin: 0;
}

.gallery-section__images {
  display: grid;
  gap: var(--space-md);
  min-width: 0;
}

.gallery-section__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.3) hue-rotate(250deg) saturate(0.8) brightness(0.9);
  cursor: pointer;
}

/* ---------- Roulette Gallery ---------- */
.gallery-section--roulette .gallery-section__images {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
}

.gallery-section__img--roulette-1 {
  grid-column: 1;
  grid-row: 1;
  aspect-ratio: 4 / 3;
}

.gallery-section__img--roulette-2 {
  grid-column: 2;
  grid-row: 1;
  aspect-ratio: 1 / 1;
  margin-top: 2rem;
  margin-left: -1rem;
  z-index: 1;
}

/* ---------- Poker Gallery ---------- */
.gallery-section--poker .gallery-section__container {
  grid-template-columns: 60% 40%;
}

.gallery-section--poker .gallery-section__images {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
}

.gallery-section__img--poker-1 {
  grid-column: 1;
  grid-row: 1;
  aspect-ratio: 3 / 2;
}

.gallery-section__img--poker-2 {
  grid-column: 2;
  grid-row: 1;
  aspect-ratio: 16 / 9;
  margin-top: 1rem;
  margin-left: -1.5rem;
  z-index: 1;
}

.gallery-section__text--poker {
  text-align: right;
}

.gallery-section__text--poker .gallery-section__description {
  margin-left: auto;
}

/* ---------- Blackjack Gallery ---------- */
.gallery-section--blackjack .gallery-section__images {
  position: relative;
  display: block;
}

.gallery-section__img--blackjack-1 {
  width: 70%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: sepia(0.3) hue-rotate(250deg) saturate(0.8) brightness(0.9);
  cursor: pointer;
}

.gallery-section__img--blackjack-2 {
  width: 40%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: sepia(0.3) hue-rotate(250deg) saturate(0.8) brightness(0.9);
  cursor: pointer;
  position: absolute;
  bottom: -1rem;
  right: 0;
  z-index: 1;
}

/* ---------- Atmosphere Gallery ---------- */
.gallery-section--atmosphere .gallery-section__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xl);
}

.gallery-section__text--atmosphere {
  text-align: center;
  max-width: 600px;
}

.gallery-section__text--atmosphere .gallery-section__description {
  margin: 0 auto;
}

.gallery-section__images--atmosphere {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-xl);
  width: 100%;
}

.gallery-section__images--atmosphere .gallery-section__img {
  aspect-ratio: 4 / 3;
}

/* ---------- CTA Section ---------- */
.cta-section {
  background-color: var(--bg-surface);
  padding: var(--space-3xl) 0;
  display: flex;
  justify-content: center;
}

.cta-section__container {
  max-width: 600px;
  width: 90%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.cta-section__heading {
  margin: 0;
}

.cta-section__description {
  max-width: 500px;
  margin: 0;
}

.cta-section__btn {
  min-width: 250px;
}

/* ---------- Responsive ---------- */
@media (max-width: 64em) {
  .hero-gallery {
    height: 60vh;
  }

  .hero-gallery__panel {
    padding: 2rem;
  }

  .intro-section__container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .intro-section__decoration {
    display: none;
  }

  .intro-section__text {
    padding-right: 0;
    text-align: center;
  }

  .intro-section__description {
    margin: 0 auto;
    text-align: center;
  }

  .featured-image__img {
    height: 400px;
  }

  .gallery-section__container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .gallery-section--poker .gallery-section__container {
    grid-template-columns: 1fr;
  }

  .gallery-section__text--poker {
    text-align: left;
  }

  .gallery-section__text--poker .gallery-section__description {
    margin-left: 0;
  }

  .gallery-section__images--roulette,
  .gallery-section__images--poker {
    grid-template-columns: 1fr;
  }

  .gallery-section__img--roulette-2,
  .gallery-section__img--poker-2 {
    margin: 0;
  }

  .gallery-section--blackjack .gallery-section__images {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
  }

  .gallery-section__img--blackjack-1,
  .gallery-section__img--blackjack-2 {
    width: 100%;
    position: static;
  }

  .gallery-section__images--atmosphere {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .cta-section__btn {
    width: 100%;
  }
}

@media (max-width: 48em) {
  .hero-gallery__title {
    font-size: var(--fs-h2);
  }

  .hero-gallery__subtitle {
    font-size: var(--fs-h3);
  }

  .hero-gallery__intro {
    font-size: var(--fs-small);
  }

  .featured-image__img {
    height: 300px;
  }

  .gallery-section__heading {
    font-size: var(--fs-h4);
  }

  .cta-section__heading {
    font-size: var(--fs-h3);
  }
}
