/* ===== Layout Geral ===== */
body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff7f9;
line-height: 200%;
}


/* FONTES */

h2.rainbow-text{text-align:center; text-transform:uppercase;font-size:28px;}

a{color:#ff8ba8; text-decoration:none;}
a:hover{color:#d3bae2; transition: color 0.5s linear;}


.author-profile {
  display: flex;
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== Sidebar ===== */
.author-sidebar {
  width: 250px;
  background: #fff;
  padding: 20px;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  box-sizing: border-box;
  text-align: center;
}

/* centraliza a área do avatar */
.author-avatar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

/* wrapper com tamanho fixo — é ele que fica centralizado */
.avatar-wrap {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto;
  overflow: visible; /* permite selo "para fora" */
}

/* apenas a imagem do autor — recebe borda circular */
.avatar-wrap > img.avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fea45f;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* SELO VIP - seletor direto e específico para evitar herança
   Uso de !important para derrotar regras globais tipo img { max-width:100% } */
.avatar-wrap > img.selo-vip {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 56px !important;      /* força tamanho fixo */
  max-width: none !important;  /* impede max-width:100% global */
  height: auto !important;
  z-index: 10;
  border-radius: 8px;
  border: none;
  background: transparent;  display: block; /* garante que não herde display inline */
}

/* --- Responsivo --- */
@media (max-width: 768px) {
  .avatar-wrap { width: 120px; height: 120px; }
  .avatar-wrap > img.selo-vip { width: 45px !important; top: -5px; right: -5px; }
}

@media (max-width: 480px) {
  .avatar-wrap { width: 100px; height: 100px; }
  .avatar-wrap > img.selo-vip { width: 38px !important; top: -4px; right: -4px; }
}






.author-name {font-family: "Shrikhand", serif;
  text-align: center;
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 5px;
color: #f86067;
}

.author-age {
  text-align: center;
  font-size: 16px;
  color: #666;
}

.author-socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 15px 0 20px 0;
}

.social-icon {
  font-size: 20px;
  color: #333;
  text-decoration: none;
}

.social-icon:hover {
  color: #fbac6a;
}

/* ===== Menu Sidebar ===== */
.author-nav ul {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.author-nav ul li {
  margin-bottom: 10px;
}

.author-nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  display: block;
  padding: 6px 10px;
  border-radius: 5px;
  transition: background 0.5s, color 0.5s;
}

.author-nav ul li a.active,
.author-nav ul li a:hover {
  background: #fcadc0;
  color: #fff;
}

/* ===== Conteúdo ===== */
.author-content {box-sizing: border-box;
  flex: 1;
  background: #fff;
  padding: 20px;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.tab-content { display: none; }
.tab-content.active { display: block; }


.author-section h2 {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.author-section ul {
  list-style: none;
  padding: 0;
}

.author-section ul li {
  font-size: 16px;
  color: #555;
  margin-bottom: 5px;
}



.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.grid-3col .grid-item {
  background: #ffe0dd;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  font-size: 14px;
  color: #333;
}


/* Grid para resultados */
#historias .grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;

    max-width: 1000px;  /* limita o grid ao tamanho do conteúdo */
    margin: 0 auto;      /* centraliza */
    padding: 0 10px;     /* evita que toque as bordas da tela */
    box-sizing: border-box;
}

#historias .grid-item {
    border: 1px solid #ccc;
    padding: 10px;
word-wrap: break-word;
}

#historias .grid-container h3 {
    font-size: 18px;
}

#historias .grid-container p {
    font-size: 13px;
}

.lista-container .grid-item.lista { width: 100%; display: block; margin-bottom: 10px;}



.grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.grid-2col .grid-item {
  background: none;
  padding: 10px;
  border-radius: 8px;
 /* box-shadow: 0 2px 6px rgba(0,0,0,0.05);*/
  font-size: 14px;
  color: #333;
}


/* FORMS */

form {
  border-radius: 5px;
  background-color: #fcadc0;
  padding: 20px;
width: 70%;
margin: auto;
}

label {display: block;}

input[type=text], select {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-family: 'Open Sans', sans-serif;
}

input[type=email], select {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-family: 'Open Sans', sans-serif;
}

textarea, select {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-family: 'Open Sans', sans-serif;
}
input[type=submit] {
  width: 100%;
  background-color: #ffa755;
  color: white;
  padding: 14px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Open Sans', sans-serif;
}

input[type=submit]:hover {
  background-color: #d3bae2;
}

  .tt-card {
        border: 0px solid #ddd;
        padding: 15px;
        margin: 15px auto 15px auto;
        border-radius: 8px;
box-sizing: border-box;
width:60%;
        background: #fff7f9;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }
    .tt-card strong { color: #ff8ba8; }

    .tt-card img {
        border-radius: 50%;
    }


/* Adapte conforme necessário para seu tema */

.vip-thumbnail{width:100%;}



.generos-bar { max-width: 500px; margin: 20px 0; }
.genero-item { display: flex; align-items: center; margin-bottom: 10px; }
.genero-nome { width: 120px; font-weight: bold; }
.barra-bg { flex: 1; height: 16px; background: #eee; border-radius: 8px; margin: 0 10px; overflow: hidden; }
.barra-fill { height: 100%; background: linear-gradient(90deg, #d3bae2, #feb9b2); border-radius: 8px 0 0 8px; transition: width 0.5s ease; }
.percent-text { width: 40px; text-align: right; font-size: 14px; }




/* ===== Responsividade ===== */
@media (max-width: 1024px) {
  .author-profile {
    flex-direction: column;
    padding: 15px;
  }

  .author-sidebar {
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .author-content {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .author-avatar img {
    width: 120px;
    height: 120px;
  }

  .author-name {
    font-size: 22px;
  }

  .author-age {
    font-size: 14px;
  }

  .author-nav ul li a {
    font-size: 14px;
    padding: 5px 8px;
  }

  .author-section h2 {
    font-size: 20px;
  }

  .author-section ul li {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .author-avatar img {
    width: 100px;
    height: 100px;
  }

  .author-name {
    font-size: 20px;
  }

.author-nav ul {width:100%;
}

  .author-nav ul li a {
    font-size: 13px;
  }

  .author-section h2 {
    font-size: 18px;
  }

  .author-section ul li {
    font-size: 13px;
  }

  .author-profile {
    padding: 10px;
  }

  .author-content {
    padding: 15px;
  }
}



/* ===== Responsividade ===== */
@media (max-width: 1024px) {
  /* Sidebar e conteúdo */
  .author-profile {
    flex-direction: column;
    padding: 15px;
  }

  .author-sidebar {
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .author-content {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .grid-3col {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .grid-2col {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  #historias .grid-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 480px) {
  .grid-3col,
  .grid-2col,
  #historias .grid-container {
    grid-template-columns: 1fr;
  }

.author-nav ul {width:100%;
}

form {width: 90%;}

.comentario{width: 90%;
}


  .author-sidebar {
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .author-content {
    width: 100%;
  }

}

