/* =========================
   VARIÁVEIS
========================= */
:root {
  
  --expert-card-bg: #030712;
  --expert-border: rgba(255,255,255,.08);

  --expert-green: #00BF62;
  --expert-green-soft: rgba(0,191,98,.12);

  --expert-text: #F8FAFC;
  --expert-text-light: #9CA3AF;
}

/* =========================
   SECTION / WRAPPER
========================= */
#expert {
  position: relative;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--expert-bg);
  overflow: hidden;
}

/* Gradiente de fundo com verde */
#expert::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(0, 191, 98, 0.14) 0%,
    rgba(0, 191, 98, 0.06) 35%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* Linha decorativa superior */
#expert::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--expert-green), 
    transparent
  );
}

/* =========================
   CARD
========================= */
.expert-card {
  max-width: 900px;
  width: 95%;
  display: grid;
  grid-template-columns: 320px 1fr;
  border-radius: 20px;
  background: var(--expert-card-bg);
  border: 1px solid var(--expert-border);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.3),
    0 2px 12px rgba(0, 191, 98, 0.1);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* Borda gradiente sutil */
.expert-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(0, 191, 98, 0.3),
    rgba(0, 191, 98, 0.1),
    rgba(0, 191, 98, 0.3)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box,
                linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
}

/* =========================
   FOTO
========================= */
.expert-photo {
  height: 500px;
  position: relative;
}

.expert-photo-frame {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

/* Overlay sutil na imagem */
.expert-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(19, 35, 56, 0.2) 100%
  );
  pointer-events: none;
}

.expert-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(5%) contrast(1.05) saturate(1.05);
}

/* =========================
   TEXTO
========================= */
.expert-text {
  padding: 40px;
  display: flex;
  align-items: flex-start;
  background: var(--expert-card-bg);
}

.expert-content {
  width: 100%;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 12px;
}

/* Scrollbar personalizada */
.expert-content::-webkit-scrollbar {
  width: 5px;
}

.expert-content::-webkit-scrollbar-track {
  background: rgba(0, 191, 98, 0.05);
  border-radius: 10px;
}

.expert-content::-webkit-scrollbar-thumb {
  background: rgba(0, 191, 98, 0.2);
  border-radius: 10px;
}

.expert-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 191, 98, 0.3);
}

/* =========================
   TAG
========================= */
.expert-tag-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.expert-tag {
  font-size: .7rem;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--expert-green);
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid rgba(0, 191, 98, 0.3);
  background: rgba(0, 191, 98, 0.08);
  text-transform: uppercase;
}

/* =========================
   TÍTULO
========================= */
.expert-title {
  font-size: 1.8rem;
  line-height: 1.3;
  margin-bottom: 24px;
  font-weight: 800;
  color: var(--expert-text);
}

.expert-highlight {
  color: var(--expert-green);
  background: none;
  -webkit-text-fill-color: var(--expert-green);
}

/* =========================
   BIO
========================= */
.expert-bio {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.expert-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--expert-text);
}

.expert-bio p {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--expert-text-light);
  margin: 0;
}

.expert-bio strong {
  color: var(--expert-green);
  font-weight: 600;
}

/* =========================
   FOOTER
========================= */
.expert-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--expert-border);
}

.expert-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.expert-badge {
  font-size: .8rem;
  padding: 8px 16px;
  border-radius: 50px;
  background: rgba(0, 191, 98, 0.08);
  color: var(--expert-text-light);
  border: 1px solid rgba(0, 191, 98, 0.2);
  font-weight: 500;
}

/* =========================
   REDES SOCIAIS
========================= */
.expert-social {
  display: flex;
  gap: 12px;
}

.expert-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 191, 98, 0.05);
  border: 1px solid var(--expert-border);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--expert-text-light);
}

.expert-social a svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Facebook - Azul */
.expert-social a:nth-child(1):hover {
  background: rgba(59, 89, 152, 0.15);
  border-color: #3b5998;
  color: #3b5998;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(59, 89, 152, 0.25);
}

/* Instagram - Gradiente rosa/laranja */
.expert-social a:nth-child(2):hover {
  background: rgba(225, 48, 108, 0.15);
  border-color: #e1306c;
  color: #e1306c;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(225, 48, 108, 0.25);
}

/* YouTube - Vermelho */
.expert-social a:nth-child(3):hover {
  background: rgba(255, 0, 0, 0.15);
  border-color: #ff0000;
  color: #ff0000;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 0, 0, 0.25);
}

/* =========================
   RESPONSIVO
========================= */

@media (max-width: 1024px) {
  .expert-card {
    max-width: 95%;
    margin: 0 20px;
  }
}

/* TABLET / MOBILE */
@media (max-width: 900px) {

  .expert-card {
    grid-template-columns: 1fr;
    max-width: 600px;
  }

  /* FOTO – ocupa tudo sem faixa e sem cortar rosto */
  .expert-photo {
    height: auto;
  }

  .expert-photo-frame {
    aspect-ratio: 1 / 1; /* proporção real da imagem */
    background: none;
  }

  .expert-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* preserva o rosto */
  }

  .expert-content {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .expert-photo-frame::after {
    background: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(19, 35, 56, 0.3) 100%
    );
  }
}

/* MOBILE */
@media (max-width: 640px) {

  #expert {
    padding: 60px 16px;
  }

  .expert-card {
    border-radius: 16px;
  }

  .expert-text {
    padding: 30px 24px;
  }

  .expert-title {
    font-size: 1.5rem;
  }

  /* mantém 1:1 também no mobile */
  .expert-photo-frame {
    aspect-ratio: 1 / 1;
  }

  .expert-badges {
    flex-direction: column;
    gap: 8px;
  }

  .expert-social {
    justify-content: center;
  }
}

/* MOBILE PEQUENO */
@media (max-width: 480px) {

  #expert {
    padding: 40px 12px;
  }

  .expert-text {
    padding: 24px 20px;
  }

  .expert-tag {
    font-size: .65rem;
    padding: 6px 12px;
  }

  .expert-title {
    font-size: 1.3rem;
  }

  .expert-social a {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .expert-social a svg {
    width: 18px;
    height: 18px;
  }
}
