/* ===================================================
   STORY SECTION - STATS E IMAGE
   =================================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.stat-item {
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.8) 0%, rgba(6, 182, 212, 0.1) 100%);
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #f59e0b, #06b6d4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-item:hover {
  border-color: rgba(6, 182, 212, 0.3);
  background: linear-gradient(135deg, rgba(2, 6, 23, 1) 0%, rgba(6, 182, 212, 0.15) 100%);
  transform: translateY(-4px);
}

.stat-item:hover::before {
  opacity: 1;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 300;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.stat-label {
  font-size: 14px;
  color: #9ca3af;
  line-height: 1.5;
  font-weight: 500;
}

.story-image {
  display: none; /* Agora usamos story-intro-profile no topo */
}

.image-placeholder {
  background: linear-gradient(135deg, rgba(17, 24, 39, 1) 0%, rgba(31, 41, 55, 0.8) 100%);
  border: 1px solid transparent;
  background-image: linear-gradient(#111827, #111827), linear-gradient(135deg, #06b6d4 0%, #f59e0b 50%, #8b5cf6 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-radius: 32px;
  padding: 50px 30px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 40px rgba(6, 182, 212, 0.1);
  position: relative;
  overflow: hidden;
}

.image-placeholder::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
  animation: rotate 10s linear infinite;
}

@keyframes rotate {
  100% { transform: rotate(360deg); }
}

.profile-icon {
  font-size: 80px;
  margin-bottom: 32px;
  filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.4));
  position: relative;
  z-index: 1;
}

.profile-text {
  position: relative;
  z-index: 1;
}

.profile-text h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 300;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.profile-text p {
  font-size: 15px;
  color: #9ca3af;
  margin-bottom: 6px;
  font-weight: 500;
}

/* ===================================================
   HISTÓRIA FOTO - VIGNETTE DRAMÁTICO (NOVA OPÇÃO 5)
   =================================================== */

.historia-foto-frame {
  position: relative;
  width: 100%;
  max-width: 340px;
}

.vignette-frame {
  position: relative;
  border-radius: 24px; /* Aumentado de 12px para 24px para combinar com o box */
  padding: 1.5px; /* Borda premium fina como no box */
  background: linear-gradient(135deg, #F5A623 0%, #0ea5e9 100%);
  display: flex;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.historia-foto {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 23px; /* Levemente menor que o frame para encaixar perfeitamente */
  object-fit: cover;
  filter: brightness(1.1) contrast(1.05);
  position: relative;
  z-index: 0;
}

.vignette-overlay {
  position: absolute;
  inset: 1.5px;
  border-radius: 23px;
  background: radial-gradient(
    ellipse at center,
    transparent 30%,
    rgba(13, 17, 23, 0.2) 70%,
    rgba(13, 17, 23, 0.6) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.vignette-glow {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  box-shadow: inset 0 0 60px rgba(245, 166, 35, 0.1);
  pointer-events: none;
  z-index: 2;
}

.vignette-inner-glow {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: radial-gradient(
    ellipse at 30% 30%,
    rgba(245, 166, 35, 0.05) 0%,
    transparent 50%
  );
  pointer-events: none;
  z-index: 3;
  animation: vignetteGlow 5s ease-in-out infinite;
}

@keyframes vignetteGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.historia-foto-frame:hover .historia-foto {
  filter: brightness(1.15) contrast(1.08);
}

.historia-foto-frame:hover .vignette-overlay {
  background: radial-gradient(
    ellipse at center,
    transparent 25%,
    rgba(13, 17, 23, 0.5) 75%,
    rgba(13, 17, 23, 0.9) 100%
  );
}

.historia-info {
  text-align: center;
  margin-top: 28px;
  padding: 0 10px;
}

.historia-info h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 300;
  color: #ffffff;
  margin-bottom: 0;
  letter-spacing: 0.05em;
}

.historia-info p.prof-specialty {
  font-size: 16px;
  color: #fbbf24;
  margin-top: 4px;
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.prof-tagline {
  display: inline-block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 500;
}

@media (max-width: 900px) {
  .story-image {
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin-bottom: 5px !important;
  }

  .historia-foto-frame {
    max-width: 280px !important;
  }

  .historia-info {
    margin-top: 15px !important;
    margin-bottom: 5px !important;
  }

  .historia-info h3 {
    font-size: 22px !important;
    margin-bottom: 0 !important;
  }

  .historia-info p {
    font-size: 14px !important;
    margin-bottom: 0 !important;
  }
}