/* ─────────────────────────────────────────────────────────────
   DR. MICHEL BELUCHE — CARROSSÉIS DO INSTAGRAM & MODAL INTERATIVO
   Design Integrado ao Conceito Navy & Gold (site 2026)
   Cores: Deep Navy (#0b1e38, #16387a), Gold (#c59b27), White (#ffffff)
   Grid 3x2 (3 na horizontal, 3 abaixo alinhados)
   Proporção 1080x1350 (4:5) • 100% Responsivo • Acessível
   ───────────────────────────────────────────────────────────── */

.beluche-carousels-section {
  position: relative;
  background: linear-gradient(180deg, #08162b 0%, #102952 50%, #08162b 100%);
  padding: 5.5rem 0;
  overflow: hidden;
  color: #ffffff;
}

.beluche-carousels-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 15% 20%, rgba(22, 56, 122, 0.45) 0%, transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(197, 155, 39, 0.18) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.beluche-carousels-section .container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Cabeçalho da Seção ── */
.beluche-carousels-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.5rem;
}

.beluche-carousels-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(197, 155, 39, 0.12);
  border: 1px solid rgba(197, 155, 39, 0.4);
  color: #e5b94c;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1.15rem;
  border-radius: 50px;
  margin-bottom: 1.1rem;
}

.beluche-carousels-badge svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.beluche-carousels-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.beluche-carousels-title .highlight {
  color: #e5b94c;
  background: linear-gradient(135deg, #e5b94c 0%, #ffd978 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.beluche-carousels-desc {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  margin: 0 auto;
}

/* ── Grid 3x2 de Carrosséis (3 no topo horizontal, 3 abaixo alinhados) ── */
.beluche-carousels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 1024px) {
  .beluche-carousels-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 680px) {
  .beluche-carousels-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    gap: 1.5rem;
  }
}

/* ── Card do Carrossel (Fiel 1080x1350 / 4:5 - Sem texto sobre a imagem) ── */
.beluche-carousel-card {
  position: relative;
  background: #09172d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
}

.beluche-carousel-card:hover {
  transform: translateY(-8px);
  border-color: rgba(197, 155, 39, 0.55);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), 0 0 25px rgba(197, 155, 39, 0.22);
}

.beluche-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #081427;
}

.beluche-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.beluche-carousel-card:hover .beluche-card-media img {
  transform: scale(1.035);
}

/* Badge no Topo Direito (Lâminas do Carrossel) */
.beluche-card-slides-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(8, 22, 43, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.beluche-card-slides-badge svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

/* Overlay ao passar o mouse com ícone de leitura */
.beluche-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8, 22, 43, 0.85) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.beluche-carousel-card:hover .beluche-card-overlay {
  opacity: 1;
}

.beluche-card-open-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(197, 155, 39, 0.92);
  color: #0b1e38;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.beluche-carousel-card:hover .beluche-card-open-hint {
  transform: translateY(0);
}

/* ── Rodapé da Seção com Link Oficial do Instagram ── */
.beluche-carousels-footer-cta {
  text-align: center;
  margin-top: 1rem;
}

.beluche-btn-instagram-profile {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #16387a 0%, #0b2545 100%);
  border: 1px solid rgba(197, 155, 39, 0.5);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(11, 37, 69, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.beluche-btn-instagram-profile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(197, 155, 39, 0.35);
  border-color: #e5b94c;
  color: #ffffff;
}

.beluche-btn-instagram-profile svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}


/* ─────────────────────────────────────────────────────────────
   MODAL INTERATIVO (2 COLUNAS: SLIDE 4:5 + LEGENDA BRANCA COM TEXTO ESCURO)
   ───────────────────────────────────────────────────────────── */

.beluche-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 14, 28, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.beluche-modal-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

.beluche-modal-window {
  background: #0a182d;
  border: 1.5px solid rgba(197, 155, 39, 0.4);
  border-radius: 24px;
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  display: grid;
  grid-template-columns: 460px 1fr;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95), 0 0 45px rgba(22, 56, 122, 0.45);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.beluche-modal-backdrop.is-active .beluche-modal-window {
  transform: scale(1);
}

/* Botão Fechar */
.beluche-modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.14);
  color: #16387a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: background 0.2s, transform 0.2s, color 0.2s, border-color 0.2s;
}

.beluche-modal-close-btn:hover {
  background: #16387a;
  border-color: #16387a;
  color: #ffffff;
  transform: rotate(90deg) scale(1.06);
}

/* Coluna Esquerda: Visualizador de Lâminas (4:5) */
.beluche-modal-slider-col {
  background: #071324;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.25rem 1.75rem 1.5rem;
  user-select: none;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.beluche-modal-slide-box {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 5;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #050d1a;
}

.beluche-modal-slide-frame {
  position: absolute;
  inset: 0;
  background: #050d1a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.beluche-modal-slide-frame.slide-fade-in {
  animation: slideFadeIn 0.25s ease-out;
}

@keyframes slideFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.beluche-modal-slide-frame img,
.beluche-slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Badge de Quantidade no Topo Direito (1 / 6) */
.beluche-modal-slide-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(5, 14, 28, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 50px;
  z-index: 6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.05em;
  pointer-events: none;
}

/* Setas de Navegação (Dentro da Moldura, Translúcidas a 60% para não tampar texto) */
.beluche-modal-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  z-index: 10;
}

.beluche-modal-nav-arrow:hover {
  opacity: 1;
  background: rgba(22, 56, 122, 0.9);
  border-color: #e5b94c;
  transform: translateY(-50%) scale(1.1);
}

.beluche-modal-nav-prev {
  left: 12px;
}

.beluche-modal-nav-next {
  right: 12px;
}

/* Barra Inferior Centralizada com Dots e Contador */
.beluche-modal-bottom-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  width: 100%;
  text-align: center;
  user-select: none;
}

.beluche-modal-dots-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  max-width: 90%;
}

.beluche-modal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: all 0.25s ease;
}

.beluche-modal-dot.is-active {
  width: 22px;
  border-radius: 10px;
  background: #e5b94c;
  box-shadow: 0 0 10px rgba(229, 185, 76, 0.6);
}

.beluche-modal-slide-counter {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.04em;
}

/* Coluna Direita: Detalhes, Legenda & Conversão (Background Branco com Texto Escuro) */
.beluche-modal-content-col {
  padding: 1.75rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  max-height: 90vh;
  background: #ffffff;
  color: #1f2937;
}

.beluche-modal-post-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 0.85rem;
  padding-right: 2.5rem;
  flex-shrink: 0;
}

.beluche-modal-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #16387a;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.beluche-modal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.beluche-modal-profile-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.beluche-modal-profile-name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0b2545;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.beluche-modal-verified-badge {
  color: #1da1f2;
  display: inline-flex;
}

.beluche-modal-profile-handle {
  font-size: 0.78rem;
  color: #556987;
}

.beluche-modal-tag {
  flex-shrink: 0;
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #16387a;
  background: rgba(22, 56, 122, 0.08);
  border: 1px solid rgba(22, 56, 122, 0.2);
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
}

.beluche-modal-caption-area {
  flex: 1;
  min-height: 0;
  margin-bottom: 0.65rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.beluche-modal-caption-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #0b2545;
  line-height: 1.35;
  margin-bottom: 0.65rem;
  text-transform: none;
  flex-shrink: 0;
}

.beluche-modal-caption-text {
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  color: #333333;
  line-height: 1.7;
  white-space: pre-line;
  flex: 1;
  min-height: 140px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 0.75rem;
}

.beluche-modal-caption-text::-webkit-scrollbar {
  width: 6px;
}
.beluche-modal-caption-text::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 4px;
}
.beluche-modal-caption-text::-webkit-scrollbar-thumb {
  background: rgba(22, 56, 122, 0.4);
  border-radius: 4px;
}
.beluche-modal-caption-text::-webkit-scrollbar-thumb:hover {
  background: rgba(22, 56, 122, 0.7);
}

/* Ações de Conversão no Modal (Diminuídos pela metade e logo abaixo do texto sem vão vazio) */
.beluche-modal-actions-box {
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding-top: 0.85rem;
  margin-top: auto;
  margin-bottom: 0.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  width: 100%;
}

.beluche-modal-btn-primary {
  flex: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #16387a 0%, #0b2545 100%);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  min-height: 34px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(22, 56, 122, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
  white-space: nowrap;
}

.beluche-modal-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(22, 56, 122, 0.5);
  color: #ffffff;
}

.beluche-modal-btn-primary svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.beluche-modal-btn-secondary {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: #f1f5fa;
  border: 1px solid rgba(22, 56, 122, 0.25);
  color: #16387a;
  font-family: 'Outfit', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  min-height: 34px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-align: center;
  white-space: nowrap;
}

.beluche-modal-btn-secondary:hover {
  background: #e3ebf6;
  border-color: #16387a;
  color: #0b2545;
}

.beluche-modal-btn-secondary svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ── Mobile Layout do Modal ── */
@media (max-width: 880px) {
  .beluche-modal-window {
    grid-template-columns: 1fr;
    max-height: 90vh;
    max-width: 500px;
    overflow-y: auto;
  }
  .beluche-modal-slider-col {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.25rem 1rem 1.25rem;
  }
  .beluche-modal-slide-box {
    max-width: 300px;
  }
  .beluche-modal-content-col {
    padding: 1.25rem 1.25rem 1.5rem;
    max-height: none;
    overflow: visible;
  }
  .beluche-modal-caption-text {
    max-height: 180px;
  }
  .beluche-modal-actions-box {
    flex-direction: column;
    gap: 0.45rem;
    align-items: center;
    padding-top: 0.75rem;
    margin-bottom: 0.5rem;
  }
  .beluche-modal-btn-primary {
    width: 100%;
    max-width: 280px;
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
  }
  .beluche-modal-btn-secondary {
    width: 100%;
    max-width: 280px;
    padding: 0.42rem 1rem;
    font-size: 0.76rem;
  }
}
