/* ==========================================
   ESTILOS PRINCIPAIS - PÁGINA ROMÂNTICA
   Design System: Glassmorphism & High Aesthetic
   ========================================== */

:root {
  --bg-dark: #0a040b;
  --bg-gradient: radial-gradient(circle at 50% 0%, #2e091b 0%, #150512 50%, #090208 100%);
  --primary: #ff3366;
  --primary-glow: rgba(255, 51, 102, 0.4);
  --secondary: #ff758f;
  --accent-gold: #ffb703;
  --text-main: #ffffff;
  --text-muted: rgba(255, 235, 240, 0.75);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  --card-radius: 20px;
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset Básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-dark);
}

body {
  min-height: 100vh;
  background: var(--bg-gradient);
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 1rem;
}

/* Canvas de Corações em Segundo Plano */
#hearts-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* Container Principal */
.app-container {
  width: 100%;
  max-width: 960px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Header Romântico */
.romantic-header {
  text-align: center;
  padding: 1.5rem 1rem 0.5rem;
}

.pulsing-heart {
  font-size: 3.5rem;
  display: inline-block;
  animation: pulseHeart 1.5s infinite ease-in-out;
  filter: drop-shadow(0 0 12px var(--primary-glow));
  user-select: none;
}

@keyframes pulseHeart {
  0% { transform: scale(1); }
  14% { transform: scale(1.18); }
  28% { transform: scale(1); }
  42% { transform: scale(1.18); }
  70% { transform: scale(1); }
}

.main-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 0%, #ffccd5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 0.5rem;
  line-height: 1.2;
}

.subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* Card Principal do Contador */
.counter-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--card-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--transition-smooth), border-color 0.3s ease;
}

.counter-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 51, 102, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.counter-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.counter-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.time-box {
  background: rgba(15, 5, 16, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1rem 0.75rem;
  min-width: 90px;
  flex: 1 1 100px;
  max-width: 135px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--transition-smooth), border-color 0.25s ease, box-shadow 0.25s ease;
}

.time-box:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 51, 102, 0.4);
  box-shadow: 0 6px 20px rgba(255, 51, 102, 0.15);
}

.time-box .number {
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.time-box .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-weight: 600;
}

/* Data de Início Formatada */
.start-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.start-date-badge i {
  color: var(--primary);
}

/* Seção da Galeria de Fotos / Prints */
.gallery-section {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--card-radius);
  padding: 2rem 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.section-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  color: #ffffff;
}

.section-header p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Carrossel de Imagens */
.carousel-wrapper {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-track-container {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 0.3s var(--transition-smooth);
  will-change: transform;
}

/* Cada Slide com Suporte para Fotos de Qualquer Tamanho */
.carousel-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: clamp(380px, 65vh, 620px);
  padding: 1rem;
  user-select: none;
  overflow: hidden;
}

/* Desfoque de Fundo para preencher perfeitamente fotos horizontais ou verticais */
.slide-bg-blur {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-size: cover;
  background-position: center;
  filter: blur(25px) brightness(0.35);
  opacity: 0.85;
  z-index: 1;
  pointer-events: none;
}

/* Imagem Principal 100% Visível Sem Cortar */
.slide-main-img {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slide-main-img:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 45px rgba(255, 51, 102, 0.25);
}

/* Dica de Toque/Clique para Zoom */
.zoom-hint {
  position: absolute;
  bottom: 15px;
  right: 20px;
  z-index: 3;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Botões do Carrossel */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 5, 16, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
  font-size: 1.2rem;
}

.carousel-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev { left: 14px; }
.carousel-btn.next { right: 14px; }

/* Indicadores / Dots */
.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: 10px;
  box-shadow: 0 0 12px var(--primary-glow);
}

/* Estado de Fallback (sem imagens) */
.empty-gallery {
  text-align: center;
  padding: 3rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 16px;
}

.empty-gallery-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.empty-gallery h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.empty-gallery p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 450px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Modal Lightbox para Zoom */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 2, 6, 0.94);
  backdrop-filter: blur(14px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 95vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.9);
  transform: scale(0.9);
  transition: transform 0.3s var(--transition-smooth);
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 2.5rem;
  color: #ffffff;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  z-index: 10000;
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--primary);
  transform: scale(1.15);
}

/* Footer Romântico */
.romantic-footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.romantic-footer i {
  color: var(--primary);
  display: inline-block;
  animation: pulseHeart 1.5s infinite ease-in-out;
}

/* ==========================================
   RESPONSIVIDADE (MOBILE & TABLET)
   ========================================== */

@media (max-width: 768px) {
  .counter-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }
  
  .time-box {
    padding: 0.85rem 0.3rem;
  }
  
  .carousel-slide {
    height: clamp(340px, 60vh, 500px);
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 1rem 0.5rem;
  }

  .counter-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .counter-card {
    padding: 1.25rem 0.85rem;
  }

  .gallery-section {
    padding: 1.25rem 0.85rem;
  }
  
  .carousel-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .zoom-hint {
    font-size: 0.68rem;
    padding: 0.25rem 0.5rem;
    bottom: 10px;
    right: 10px;
  }
}
