/* ==========================================================================
   SEÇÃO 01 / FORMATOS DE EVENTO — QUADRINHO CINEMATOGRÁFICO & FOTOS VIVAS
   ========================================================================== */

.formatos-interactive-section {
  position: relative;
  padding: 60px 0 80px 0;
  background: 
    linear-gradient(to bottom, rgba(14, 8, 4, 0.94) 0%, rgba(20, 11, 6, 0.90) 50%, rgba(14, 8, 4, 0.95) 100%),
    url('../images/bg-sofa-global.jpg') center center / cover no-repeat fixed;
  color: #FFFFFF;
  border-bottom: 1px solid rgba(255, 138, 64, 0.2);
}

.formatos-header-block {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 28px auto;
}

.formatos-header-block .tag-pill {
  background: rgba(255, 107, 43, 0.14);
  color: #FF7A33;
  border-color: rgba(255, 122, 51, 0.35);
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.formatos-header-block h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.08;
  margin: 14px 0 10px 0;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.formatos-header-block p {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  color: #E5DAC7;
}

/* Badge de Dica / Instrução */
.formatos-hint-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 43, 0.1);
  border: 1px solid rgba(255, 122, 51, 0.3);
  padding: 6px 18px;
  border-radius: 30px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #FFB070;
  margin-bottom: 22px;
}

.formatos-hint-badge .hint-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FF6B2B;
  box-shadow: 0 0 10px #FF6B2B;
  animation: pulseDotTerracotta 2s infinite ease-in-out;
}

@keyframes pulseDotTerracotta {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Barra de Abas / Formatos */
.formatos-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.formatos-tab-btn {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 138, 64, 0.22);
  background: rgba(36, 18, 10, 0.75);
  color: #E5DAC7;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

.formatos-tab-btn:hover {
  border-color: #FF7A33;
  color: #FFFFFF;
  background: rgba(56, 28, 16, 0.88);
  transform: translateY(-2px);
}

.formatos-tab-btn.active {
  background: #FF6B2B;
  color: #FFFFFF;
  border-color: #FF6B2B;
  box-shadow: 0 6px 20px rgba(255, 107, 43, 0.45);
  transform: translateY(-2px);
}

/* ==========================================================================
   QUADRINHO / VIEWPORT EMOLDURADO DAS FOTOS
   ========================================================================== */
.formatos-viewport-frame {
  position: relative;
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  min-height: 480px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  border: 4px solid #381E12;
  outline: 1px solid rgba(255, 138, 64, 0.45);
  background: #0E0704;
}

.formatos-viewport-img,
.food-viewport-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  filter: contrast(1.08) saturate(1.15) brightness(1.0);
}

.formatos-viewport-img.active,
.food-viewport-img.active {
  opacity: 1;
  visibility: visible;
}

/* Legenda Dinâmica Sobreposta no Quadrinho */
.formatos-caption-box {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: linear-gradient(to top, rgba(14, 7, 4, 0.95) 0%, rgba(14, 7, 4, 0.65) 60%, rgba(14, 7, 4, 0) 100%);
  padding: 30px 36px 28px 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.formatos-caption-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 900;
  color: #FFFFFF;
  margin: 0;
  text-transform: uppercase;
}

.formatos-caption-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #E5DAC7;
  margin: 0 0 8px 0;
  max-width: 720px;
}

.formatos-caption-btn {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 10px 22px;
  border-radius: 6px;
  background: #FF6B2B;
  color: #FFFFFF;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(255, 107, 43, 0.4);
  transition: all 0.25s ease;
}

.formatos-caption-btn:hover {
  background: #FF854D;
  transform: translateY(-2px);
}

/* Responsivo Mobile */
@media (max-width: 880px) {
  .formatos-tabs-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .formatos-tab-btn {
    font-size: 0.74rem;
    padding: 9px 8px;
    justify-content: center;
  }

  .formatos-viewport-frame {
    min-height: 380px;
    border-width: 3px;
  }

  .formatos-caption-box {
    padding: 20px 16px 18px 16px;
  }

  .formatos-caption-btn {
    width: 100%;
    justify-content: center;
  }
}
