@import "./theme.css";

/* ============================================================
   CORE bank — Gallery (CTA do app)
   ============================================================ */

#gallery {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: var(--section-py) 0 0;
  background: var(--background-gallery);
  background-image: var(--gradient-mesh);
  color: var(--white-color);
}

#gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.6;
}

#gallery .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: end;
  min-height: 620px;
}

.gallery-content {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

/* Conteúdo */
.gallery-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: var(--cyan-soft);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.gallery-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.7);
}

#gallery h2 {
  position: relative;
  margin: 0 0 22px;
  padding-bottom: 18px;
  text-transform: none;
  color: var(--white-color);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

#gallery h2::after {
  position: absolute;
  content: "";
  height: 3px;
  width: 72px;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--cyan-soft) 100%);
  border-radius: 2px;
  box-shadow: 0 2px 14px rgba(0, 212, 255, 0.5);
}

.gallery-paragraph {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(233, 241, 249, 0.82);
  margin: 0 0 32px;
  max-width: 56ch;
}

/* CTA primary */
.gallery-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.gallery-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  padding: 14px 26px;
  min-height: 48px;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-soft) 100%);
  color: var(--navy);
  box-shadow: var(--shadow-glow-cyan-strong);
}

.gallery-cta-primary:hover,
.gallery-cta-primary:focus {
  background: linear-gradient(135deg, var(--cyan-soft) 0%, var(--cyan) 100%);
  color: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 22px 56px -14px rgba(0, 212, 255, 0.85);
}

.gallery-cta-icon {
  width: 13px;
  height: 13px;
  transition: transform 0.3s var(--ease-reveal);
}

.gallery-cta-primary:hover .gallery-cta-icon {
  transform: translateX(4px);
}

/* Store badges */
.gallery-store-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white-color);
  text-decoration: none;
  transition: transform 0.3s var(--ease-reveal),
    background 0.3s var(--ease-reveal),
    border-color 0.3s var(--ease-reveal),
    box-shadow 0.3s var(--ease-reveal);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.store-badge:hover,
.store-badge:focus {
  transform: translateY(-2px);
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.5);
  color: var(--white-color);
  text-decoration: none;
  box-shadow: var(--shadow-glow-cyan);
}

.store-badge-icon {
  font-size: 24px;
  color: var(--cyan-soft);
  flex-shrink: 0;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.store-badge-small {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(233, 241, 249, 0.7);
  margin-bottom: 2px;
}

.store-badge-text strong {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--white-color);
  letter-spacing: -0.01em;
}

/* Phone — colado no rodapé da seção e maior */
.gallery-phone-wrap {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  align-self: end;
  min-height: 620px;
  margin-bottom: 0;
}

.gallery-phone-halo {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80%;
  background: radial-gradient(
    55% 60% at 50% 70%,
    rgba(0, 212, 255, 0.38) 0%,
    transparent 70%
  );
  filter: blur(4px);
  pointer-events: none;
  animation: floatY 6s ease-in-out infinite;
}

#gallery .gallery-phone {
  position: relative;
  z-index: 1;
  margin: 0 0 -1px 0;
  max-width: 560px;
  width: 100%;
  height: auto;
  border-right: 0;
  filter: drop-shadow(0 36px 72px rgba(6, 26, 46, 0.65));
  display: block;
  vertical-align: bottom;
}

/* Reveal */
#gallery .reveal {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
}

#gallery .reveal.visible {
  animation: revealFadeUp var(--dur-reveal) var(--ease-reveal) forwards;
}

#gallery .gallery-content .reveal:nth-child(1) {
  animation-delay: 0.08s;
}
#gallery .gallery-content .reveal:nth-child(2) {
  animation-delay: 0.18s;
}
#gallery .gallery-content .reveal:nth-child(3) {
  animation-delay: 0.28s;
}
#gallery .gallery-content .reveal:nth-child(4) {
  animation-delay: 0.38s;
}
#gallery .gallery-content .reveal:nth-child(5) {
  animation-delay: 0.48s;
}
#gallery img.reveal {
  animation-delay: 0.4s;
}

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: 0;
    align-items: stretch;
  }

  .gallery-content {
    padding-bottom: 0;
  }

  .gallery-phone-wrap {
    min-height: 0;
    margin-top: 24px;
  }

  #gallery .gallery-phone {
    max-width: 460px;
  }
}

@media (max-width: 768px) {
  #gallery {
    padding: 64px 0 0;
  }

  #gallery .gallery-phone {
    margin: 24px auto -1px !important;
    max-width: 320px;
    filter: drop-shadow(0 18px 36px rgba(6, 26, 46, 0.5));
  }

  .gallery-cta-primary,
  .store-badge {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  #gallery .reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .gallery-phone-halo {
    animation: none !important;
  }
}
