@import "../sobre/sobre.css";

/* ==========================================================================
   ESTILOS DO NAVBAR E OFFCANVAS (IGUAL COMO-ADOTAR.PHP)
   ========================================================================== */

body {
  background-color: #fafafa !important;
}

/* Container principal alinhado */
.navbar > .container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
}

.navbar {
  background: transparent;
  padding: 0.5rem 1rem;
  margin-bottom: 0 !important;
  position: relative;
  z-index: 1030;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.navbar-logo {
  width: clamp(60px, 10vw, 80px);
  height: clamp(60px, 10vw, 80px);
  object-fit: contain;
  user-select: none;
}

.navbar-nav {
  gap: 1.5rem;
  align-items: center;
  flex-direction: row !important;
  margin: 0 !important;
}

.nav-link {
  font-weight: bold !important;
  cursor: pointer;
  position: relative;
  padding: 10px 15px;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  font-size: 1.5rem !important;
  white-space: nowrap;
  border-radius: 4px;
}

.navlink {
  color: var(--cor-cinza-texto);
}

.navlink::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 15px;
  width: calc(100% - 30px);
  height: 2px;
  background: var(--cor-rosa-escuro);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.navlink:hover,
.navlink:focus {
  color: var(--cor-rosa-escuro) !important;
}

.navlink:hover::after,
.navlink:focus::after,
.navlink.active::after {
  transform: scaleX(1);
}

.navlink.active {
  color: var(--cor-rosa-escuro) !important;
}

.loginlink {
  color: var(--cor-vermelho) !important;
  position: relative;
  margin-left: 0 !important;
}

.loginlink::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 15px;
  width: calc(100% - 30px);
  height: 2px;
  background: var(--cor-vermelho);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.loginlink:hover,
.loginlink:focus {
  color: var(--cor-vermelho);
}

.loginlink:hover::after,
.loginlink:focus::after {
  transform: scaleX(1);
}

.loginlink::before {
  display: none;
}

.navbar-nav .nav-item:has(.loginlink) {
  position: relative;
}

.navbar-nav .nav-item:has(.loginlink)::before {
  content: "|";
  position: absolute;
  left: -12px;
  top: 45%;
  transform: translateY(-50%);
  color: var(--cor-cinza);
  font-weight: 300;
  font-size: 1.8rem;
}

.navbar-nav .nav-item + .nav-item:has(.loginlink)::before {
  content: "|";
  position: absolute;
  left: -12px;
  top: 45%;
  transform: translateY(-50%);
  color: var(--cor-vermelho);
  font-weight: 500;
  font-size: 1.8rem;
}

.navbar-nav .nav-item:nth-child(2) + .nav-item::before {
  content: "|";
  position: absolute;
  left: -12px;
  top: 45%;
  transform: translateY(-50%);
  color: var(--cor-vermelho);
  font-weight: 500;
  font-size: 1.8rem;
}

.navbar-nav .nav-item.position-relative {
  padding-left: 8px;
}

.profile-icon.logged-in,
.sidebar-profile-icon.logged-in {
  color: var(--cor-vermelho) !important;
  font-size: 3rem;
}

.sidebar-profile-icon.logged-out {
  color: var(--cor-cinza) !important;
  opacity: 0.7;
  font-size: 4rem;
}

.profile-info-link .d-flex {
  flex-direction: row-reverse;
}

.profile-name {
  font-size: 1.1rem;
  font-weight: bold;
}

.profile-info-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-icon {
  font-size: 2rem;
  color: #555;
}

/* ==========================================================================
   OFFCANVAS
   ========================================================================== */
.offcanvas {
  position: fixed;
  z-index: 1045;
  transition: transform 0.3s ease-in-out;
  visibility: visible !important;
}

.offcanvas-end {
  transform: translateX(100%);
}

.offcanvas.show {
  transform: translateX(0);
}

.offcanvas-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100vw;
  height: 100vh;
  background-color: #000;
}

.offcanvas-backdrop.show {
  opacity: 0.5;
}

.offcanvas-header {
  border-bottom: 1px solid #eee;
}

.profile-sidebar {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.profile-nav .nav-link {
  color: var(--cor-cinza-texto);
  font-weight: 500;
  font-size: 1rem;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
  margin-bottom: 0.25rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.profile-nav .nav-link:hover {
  background-color: var(--cor-laranja-claro);
  color: var(--cor-rosa-escuro);
}

.profile-nav .nav-link.active {
  background-color: var(--cor-vermelho);
  color: var(--cor-branca);
}

.logout-link-sidebar {
  color: var(--cor-vermelho) !important;
}

.logout-link-sidebar:hover {
  background-color: #fcebeb !important;
}

.loginlink-sidebar {
  color: var(--cor-vermelho) !important;
  font-weight: 600;
}

.loginlink-sidebar:hover {
  background-color: #fcebeb !important;
  color: var(--cor-vermelho) !important;
}

/* ==========================================================================
   SEÇÃO TERMOS DE USO
   ========================================================================== */

.termos-section {
  padding: 4rem var(--container-padding);
  min-height: calc(100vh - 100px);
}

.termos-header {
  margin-bottom: 3rem;
}

.section-title-kawaii {
  font-family: "Kawaii RT", sans-serif;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  color: var(--cor-rosa-escuro);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle-poppins {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: var(--cor-cinza-texto);
  font-weight: 400;
  opacity: 0.9;
}

.termos-content {
  background-color: var(--cor-branca);
  border-radius: 15px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.termos-intro {
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.termos-intro p {
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  color: var(--cor-rosa-escuro);
  margin: 0;
  font-weight: 700;
  line-height: 1.5;
}

.termos-item {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #f0f0f0;
}

.termos-item:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.termos-item h2 {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.3rem, 4vw, 1.6rem);
  color: var(--cor-rosa-escuro);
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.termos-item h2 i {
  color: var(--cor-vermelho);
  font-size: 1.8rem;
}

.termos-item p {
  font-family: "Poppins", sans-serif;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  color: var(--cor-cinza-texto);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.termos-item ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.termos-item ul li {
  font-family: "Poppins", sans-serif;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  color: var(--cor-cinza-texto);
  line-height: 1.8;
  padding-left: 2rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.termos-item ul li::before {
  content: "•";
  position: absolute;
  left: 0.75rem;
  color: var(--cor-vermelho);
  font-weight: bold;
  font-size: 1.5rem;
}

.termos-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--cor-rosa-pastel);
}

.data-atualizacao {
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  color: var(--cor-cinza-texto);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.btn-voltar {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background-color: var(--cor-vermelho);
  color: var(--cor-branca);
  text-decoration: none;
  border-radius: 25px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.btn-voltar:hover {
  background-color: var(--cor-rosa-escuro);
  color: var(--cor-branca);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
}

.btn-voltar i {
  font-size: 1.2rem;
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */

@media (max-width: 1199.98px) {
  .d-none.d-xl-block .navbar-nav {
    display: none !important;
  }
  
  .navbar button[data-bs-toggle="offcanvas"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .offcanvas {
    width: 85% !important;
  }
  
  .termos-content {
    padding: 1.5rem;
  }
  
  .termos-intro {
    padding: 1rem;
  }
  
  .termos-item h2 i {
    font-size: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .profile-name {
    display: none !important;
  }
  
  .profile-icon.logged-in {
    font-size: 2.2rem;
  }
  
  .termos-section {
    padding: 2rem var(--container-padding);
  }
}

@media (min-width: 768px) {
  .offcanvas {
    width: 400px !important;
  }
}

body.offcanvas-open {
  overflow: hidden;
}

html.offcanvas-open,
body.offcanvas-open {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
}

main, section, footer {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .navbar,
  .navlink::after,
  .btn-voltar {
    transition: none;
  }
}