@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

/* RESET / BASE */
* { box-sizing: border-box }
html, body { height: 100% }
body {
  font-family: 'Poppins', sans-serif;
  background-color: #ee9ca7;
  color: #222;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(6px);
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600 }
.nav-logo { width: 36px; height: 36px; object-fit: contain; border-radius: 6px }
.nav-links { display: flex; gap: 14px; align-items: center }
.nav-link { color: #fff; text-decoration: none; padding: 8px 10px; border-radius: 8px; transition: background .2s }
.nav-link:hover { background: rgba(255,255,255,0.06) }
.nav-actions { display: flex; gap: 10px; align-items: center }

/* Buttons */
.btn-primary {
  display: inline-block;
  background: linear-gradient(90deg, #ff4d6d, #ff758c);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s, opacity .18s;
}
.btn-primary:hover { transform: translateY(-3px); opacity: .98 }
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.btn-inline { display: inline-block; margin-left: 12px; color: #6b6b6b; text-decoration: underline }

/* Hamburger */
.hamburger { display: none; background: transparent; border: none; cursor: pointer; padding: 8px }
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; margin: 4px 0; border-radius: 2px; transition: all .2s }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg) }
.hamburger.open span:nth-child(2) { opacity: 0 }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg) }

/* HERO */
.hero-section { display: flex; justify-content: center; align-items: center; min-height: 80vh; padding: 40px 20px }
.hero-content {
  background: rgba(255,255,255,0.92);
  padding: 28px;
  border-radius: 18px;
  max-width: 1100px;
  display: flex;
  gap: 30px;
  align-items: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.profile-pic { width: 150px; height: 150px; border-radius: 16px; object-fit: cover; border: 4px solid #fff; box-shadow: 0 6px 18px rgba(0,0,0,0.12) }
.hero-text { flex: 1; text-align: left; color: #111 }
.profile-name { font-size: 1.8rem; margin: 0 0 6px }
.bio { margin: 0 0 16px; color: #6b6b6b; font-size: 0.98rem }

/* Social stats */

.social-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 14px
}

.stat-card { background: #fff; padding: 10px 14px; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,0.06); min-width: 110px; text-align: center }
.stat-card strong { display: block; font-size: 1.05rem }
.stat-card span { display: block; color: #6b6b6b; font-size: 0.85rem }

/* Links / CTAs */
.links { display: flex; gap: 10px; margin-bottom: 12px }
.links .ghost { background: transparent; color: #111; border: 1px solid rgba(0,0,0,0.06); padding: 8px 12px }

/* Hero CTA */
.hero-cta { display: flex; gap: 12px; align-items: center; margin-top: 6px }

/* SECTIONS */
.section { padding: 60px 20px }
.container { max-width: 1100px; margin: 0 auto }
h2 { margin: 0 0 12px; font-size: 1.4rem }
.lead { color: #6b6b6b; margin-bottom: 18px }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin-top: 18px }
.about-grid h4 { margin: 0 0 8px }

/* PORTFOLIO */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 18px }
.video-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 26px rgba(0,0,0,0.08) }
.video-card img { width: 100%; height: 160px; object-fit: cover; display: block }
.video-info { padding: 12px }

/* METRICS */
.metrics-grid { display: flex; gap: 18px; flex-wrap: wrap }
.metric { background: #fff; padding: 18px; border-radius: 12px; flex: 1; min-width: 200px; box-shadow: 0 8px 20px rgba(0,0,0,0.06) }
.metric .big { font-size: 1.6rem; margin: 6px 0; color: #ff4d6d }
.muted { color: #6b6b6b; font-size: 0.9rem }

/* MEDIA KIT */
.media-kit-actions { display: flex; gap: 12px; align-items: center }

/* PARTNERS / TESTIMONIALS */
.partners-logos { display: flex; gap: 16px; align-items: center; flex-wrap: wrap }
.partners-logos img { height: 42px; filter: grayscale(100%); opacity: .8 }
.testimonials { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 12px; margin-top: 18px }
blockquote { background: #fff; padding: 16px; border-radius: 10px; box-shadow: 0 8px 20px rgba(0,0,0,0.06); margin: 0; font-style: italic }
blockquote cite { display: block; margin-top: 8px; font-weight: 600; color: #6b6b6b; font-style: normal }

/* FOOTER */
.site-footer {
  background-color: #c7828c;
  padding: 24px 20px;
  color: #fff;
  text-align: center;
}

/* MODAL */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1500; align-items: center; justify-content: center; padding: 20px }
.modal-content { background: #fff; padding: 28px; border-radius: 12px; width: 360px; max-width: 95%; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.3) }
.modal-content input { width: 100%; padding: 10px; margin: 8px 0; border: 1px solid #e6e6e6; border-radius: 8px }
.fechar { position: absolute; right: 12px; top: 10px; border: none; background: transparent; font-size: 22px; cursor: pointer }
.msg { color: #c0392b; margin-top: 10px }

/* Blur only on public-content wrapper */
.blur-bg { filter: blur(6px); transition: filter .25s ease }

/* Animations & responsiveness */
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: none } }
.hero-content, .video-card, .stat-card { animation: fadeIn .5s ease both }

/* Responsive */
/* Responsive */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    max-width: 92%;
    margin: 0 auto;
  }

  .profile-pic {
    width: 110px;
    height: 110px;
    border-width: 3px;
  }

  .profile-name {
    font-size: 1.3rem;
  }

  .bio {
    font-size: 0.9rem;
    line-height: 1.4;
    padding: 0 10px;
  }

  .social-stats {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .stat-card {
    min-width: auto;
    width: 100%;
    padding: 10px;
  }

  /* === CORREÇÃO: Links da Hero Section === */
  .links {
    flex-direction: column; /* Empilha os botões verticalmente */
    width: 100%; /* Faz o container ocupar a largura total do hero-content */
  }

  /* Garante que os botões dentro de .links ocupem a largura total */
  .links .btn-primary,
  .links .ghost {
    width: 100%;
    text-align: center;
    font-size: 0.95rem;
  }
  /* ======================================= */

  .hero-cta { /* Mantém a regra original para .hero-cta caso seja usada em outro lugar */
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-outline {
    width: 100%;
    font-size: 0.95rem;
  }

  /* Seu código para a Navbar Mobile */
  /* ... (As regras de NAVBAR MOBILE SIMPLES continuam aqui) ... */
}

/* ========================
   NAVBAR MOBILE SIMPLES
======================== */
@media (max-width: 768px) {
  .nav-inner {
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  /* Centraliza logo e nome */
  .brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.95rem;
  }

  /* Some o botão de métricas */
  .nav-actions .btn-outline {
    display: none;
  }

  /* Ícone hambúrguer */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
  }

  .hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .hamburger.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* Menu dropdown */
  .nav-links {
    position: absolute;
    top: 100%;
    right: 10px;
    background: #1d1d1d;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    padding: 12px 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 160px;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    color: #fff;
    padding: 10px 16px;
    width: 100%;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s;
  }

  .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
  }
}



/* Custom scrollbar */
::-webkit-scrollbar { width: 8px }
::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #ff4d6d, #ff758c); border-radius: 10px }

/* Logout */
.logout-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(90deg, #ff4d6d, #ff758c);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
  z-index: 2000;
  transition: transform .2s, opacity .2s;
}
.logout-btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

/* ===== CONTATO & PROPOSTA ===== */
.contact-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0.5));
  backdrop-filter: blur(8px);
  border-radius: 22px;
  padding: 50px 40px;
  margin: 80px auto;
  max-width: 900px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  animation: fadeInUp 0.6s ease both;
}

.contact-section h2 {
  text-align: center;
  font-size: 1.6rem;
  color: #111;
}

.contact-section .lead {
  text-align: center;
  margin-bottom: 28px;
  color: #6b6b6b;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 600px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #ff4d6d;
  box-shadow: 0 0 0 3px rgba(255,77,109,0.2);
  outline: none;
}

.form-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.btn-primary, .btn-outline {
  padding: 10px 22px;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px) }
  to { opacity: 1; transform: none }
}

@media (max-width: 768px) {
  .contact-section { padding: 36px 20px; margin: 50px 16px }
  .contact-form { width: 100% }
  .btn-primary, .btn-outline { width: 100%; text-align: center }
  .form-actions { flex-direction: column; gap: 10px }
}



/* métricas */


/* INSTAGRAM INSIGHTS */
.instagram-insights-section .metrics-grid {
  margin-top: 20px;
}
.insight-card {
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
}
.insight-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.insight-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #111;
}
.insight-card .big {
  font-size: 1.8rem;
  margin: 0 0 10px;
  color: #333;
}
.insight-card .muted {
  font-size: 0.85rem;
  margin-bottom: 4px;
}

/* Indicadores de mudança */
.change {
  font-weight: 600;
  display: inline-block;
  margin-left: 6px;
}
.up {
  color: #27ae60; /* Verde */
}
.down {
  color: #c0392b; /* Vermelho */
}
.down-indicator {
    color: #c0392b;
    font-weight: 600;
}

/* Barras de progresso */
.progress-bar-container {
  background: #e6e6e6;
  border-radius: 4px;
  height: 8px;
  margin: 10px 0 4px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: #ff4d6d;
  width: 0%; /* Será controlado pelo JS */
  transition: width 0.5s ease-out;
  border-radius: 4px;
}
.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #6b6b6b;
  margin-bottom: 12px;
}
.label-left {
  color: #111;
  font-weight: 500;
}
/* Altera o layout dos cards inferiores para melhor visualização */
.insights-grid-bottom {
    grid-template-columns: repeat(2, 1fr);
    display: grid;
    gap: 18px;
}
@media (max-width: 768px) {
  .insights-grid-bottom {
    grid-template-columns: 1fr;
  }
}


/* AUDIENCE INSIGHTS */
.audience-insights-section {
  background: #fdfdfd;
  padding-top: 20px;
}

.audience-card {
  max-width: 300px;
  margin-bottom: 30px;
  background-color: #fff;
}

.age-gender-section {
  margin-bottom: 30px;
}

.age-gender-content {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

/* Gráfico de Rosca (Doughnut Chart - Simulado) */
.doughnut-chart-placeholder {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  position: relative;
  /* Simulação de cores da imagem - 75.2% Rosa e 24.8% Roxo */
  background: conic-gradient(#ff758c 0% 75.2%, #5b3e7c 75.2% 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.doughnut-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #fdfdfd;
}

.gender-data {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.gender-pct {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.gender-pct.female { color: #ff4d6d; }
.gender-pct.male { color: #5b3e7c; }


/* Barras de Faixa Etária */
.age-bars-container {
  flex-grow: 1;
  min-width: 250px;
}
.age-bar-group {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.age-label {
  font-size: 0.8rem;
  width: 50px;
  text-align: right;
  margin-right: 10px;
  color: #6b6b6b;
}

.age-bars {
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.age-bar-fill {
  height: 10px;
  border-radius: 2px;
  transition: width 0.5s ease-out;
}
.age-bar-fill.female { background-color: #ff758c; }
.age-bar-fill.male { background-color: #5b3e7c; }

.age-pct {
  font-size: 0.8rem;
  width: 40px;
  text-align: left;
  margin-left: 10px;
  color: #6b6b6b;
}

/* Legendas de Gênero */
.gender-legend {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #333;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.color-box {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}
.female-color { background-color: #ff758c; }
.male-color { background-color: #5b3e7c; }


/* Localização (Cidades e Países) */
.location-section {
  margin-top: 40px;
}
.location-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 600px;
}
.location-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
  color: #333;
}

.location-name {
  width: 250px; /* Largura fixa para o nome da cidade */
  min-width: 150px;
  max-width: 40%;
  flex-shrink: 0; /* Impede que o nome encolha muito */
  margin-right: 15px;
}

.location-bar-wrapper {
  flex-grow: 1;
  height: 5px;
  background-color: #f0f0f0;
  border-radius: 2px;
  margin-right: 10px;
  /* CRÍTICO: Garante que a barra não passe do wrapper */
  overflow: hidden; 
}

.location-bar {
  height: 100%;
  background-color: #ff4d6d;
  border-radius: 2px;
  transition: width 0.5s ease-out;
}

.location-pct {
  width: 50px;
  text-align: right;
  font-weight: 500;
  color: #ff4d6d;
  flex-shrink: 0; /* Impede que o percentual encolha */
}

@media (max-width: 768px) {
    .age-gender-content {
        flex-direction: column;
        align-items: center;
    }
}


/* wrapper geral */
.brand-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
}

/* título premium */
.brand-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: #111;
}

/* container centralizado */
.brand-container {
  width: 75%;
  max-width: 1100px;
  min-width: 300px;
  margin: 0 auto;

  padding: 25px;
  border-radius: 20px;

  overflow: hidden;
  position: relative;

  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

/* carrossel */
.brand-track {
  display: flex;
  gap: 60px;
  align-items: center;
  animation: brandScroll 32s linear infinite;
}

.brand-track img {
  height: 85px;
  border-radius: 15px;
  filter: drop-shadow(0px 4px 8px rgba(0,0,0,0.15));
  opacity: 0.85;
  transition: .3s ease;
}

.brand-track img:hover {
  opacity: 1;
  transform: scale(1.15);
  filter: drop-shadow(0px 6px 15px rgba(0,0,0,0.25));
}

/* animação infinita */
@keyframes brandScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* MOBILE — agora também anima sozinho */
@media (max-width: 768px) {
  .brand-container {
    width: 90%;
    padding: 20px;
  }

  .brand-track {
    gap: 40px; /* reduzido para ficar mais bonito no mobile */
    animation: brandScroll 28s linear infinite; /* levemente mais rápido */
  }

  .brand-track img {
    height: 55px;
  }
}

/* DESKTOP PREMIUM 3D */
@media (min-width: 1200px) {
  .brand-track img:hover {
    transform: scale(1.25) translateZ(30px);
  }
}
