/* * Arquivo: assets/css/header-sidebar.css
 * Descrição: Estilos do Menu Sidebar V24 e Busca V6 
 */

:root {
  --tl-white: #ffffff;
  --tl-black: #000000;
  --tl-neon: #00ff66;
  --tl-red-alert: #ff3b30;
  --tl-glass-border: rgba(255, 255, 255, 0.15);
  --tl-divider-color: rgba(255, 255, 255, 0.08);
  --tl-font-monument: "Monument Extended", sans-serif; /* Certifique-se de carregar essa fonte */
  --tl-font-helvetica: "Helvetica Now Display", sans-serif;
  --tl-sidebar-width: 40vw;
  --tl-button-size: 50px;
}

/* --- TRIGGER DO MENU (HAMBURGUER) --- */
.tl-menu-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  width: var(--tl-button-size);
  height: var(--tl-button-size);
  border-radius: 50% !important;
  background: transparent !important;
  border: 2px solid var(--tl-white) !important;
  color: var(--tl-white) !important;
  cursor: pointer;
  transition: 0.3s ease;
  padding: 0;
}
.tl-menu-btn:hover {
  background: var(--tl-white) !important;
  color: var(--tl-black) !important;
  transform: scale(1.05);
}

.tl-hamburger {
  width: 20px;
  height: 14px;
  position: relative;
}
.tl-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  position: absolute;
  left: 0;
}
.tl-hamburger span:nth-child(1) {
  top: 0;
}
.tl-hamburger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}
.tl-hamburger span:nth-child(3) {
  bottom: 0;
}

/* --- SIDEBAR CONTAINER --- */
.tl-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: var(--tl-sidebar-width);
  height: 100vh;
  background: rgba(15, 15, 15, 0.65);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-left: 1px solid var(--tl-glass-border);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  border-top-left-radius: 40px;
  border-bottom-left-radius: 40px;
  transform: translateX(110%);
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  visibility: hidden;
}

.tl-sidebar-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 40px 60px 120px 60px; /* Correção padding bottom V24 */
  box-sizing: border-box;
}

.tl-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Estados de Animação */
.gs-menu-item,
.gs-widget-item,
.gs-anim-item {
  opacity: 0;
}

/* --- BOTÃO FECHAR --- */
.tl-close-wrapper {
  margin-bottom: 40px;
}
.tl-hybrid-close-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--tl-white);
  border-radius: 50px;
  cursor: pointer;
  overflow: hidden;
  padding: 0 !important;
  margin: 0;
  line-height: 0;
  transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1),
    background-color 0.3s ease, border-color 0.3s ease;
}
.tl-hybrid-close-btn:hover {
  width: 140px;
  background-color: var(--tl-red-alert);
  border-color: var(--tl-red-alert);
}
.tl-hybrid-close-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  min-width: 50px;
  padding: 0;
  margin: 0;
}
.tl-hybrid-close-text {
  color: #fff;
  font-family: var(--tl-font-helvetica);
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  padding-left: 0px;
  line-height: normal;
  transition: opacity 0.2s ease 0.1s;
}
.tl-hybrid-close-btn:hover .tl-hybrid-close-text {
  opacity: 1;
}

/* --- LISTA DE MENU --- */
.tl-menu-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}
.tl-menu-item {
  border-bottom: 1px solid var(--tl-divider-color);
  overflow: hidden;
}
.tl-menu-item:last-child {
  border-bottom: none;
}
.tl-menu-link {
  display: flex;
  align-items: center;
  font-family: var(--tl-font-monument), sans-serif !important;
  font-size: 1.5rem;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--tl-white) !important;
  text-decoration: none;
  line-height: 1.3 !important;
  padding: 12px 0;
  transition: color 0.3s ease;
}
.tl-menu-link:hover {
  color: #e0e0e0 !important;
}
.tl-link-text {
  position: relative;
}
.tl-link-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: #fff;
  transition: width 0.4s ease;
}
.tl-menu-link:hover .tl-link-text::after {
  width: 100%;
}

/* --- LINKS ÚTEIS E RODAPÉ --- */
.tl-section-wrapper {
  margin-bottom: 25px;
  padding-bottom: 25px;
}
.tl-has-divider {
  border-bottom: 1px solid var(--tl-divider-color);
}
.tl-section-label {
  font-family: var(--tl-font-helvetica);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
  letter-spacing: 1px;
  font-weight: 400;
  text-transform: uppercase;
}

.tl-useful-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tl-useful-item {
  margin-bottom: 0;
  border-bottom: 1px solid var(--tl-divider-color);
}
.tl-useful-item:last-child {
  border-bottom: none;
}
.tl-useful-link {
  font-family: var(--tl-font-helvetica);
  font-size: 0.95rem;
  color: #cccccc !important;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
}
.tl-useful-link:hover {
  padding-left: 5px;
  color: #fff !important;
}
.tl-link-validate {
  color: var(--tl-neon) !important;
  font-weight: 700 !important;
}

.tl-footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}
.tl-footer-col {
  flex: 1;
}
.tl-contacts-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tl-contact-row {
  display: block;
  font-family: var(--tl-font-helvetica);
  font-size: 0.9rem;
  color: #fff !important;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}
.tl-contact-row:hover {
  color: var(--tl-neon) !important;
  opacity: 0.8;
}
.tl-sidebar-social-wrapper {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tl-sidebar-social-icon {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}
.tl-sidebar-social-icon:hover {
  background: #fff !important;
  color: #000 !important;
  transform: translateY(-3px);
}

/* --- BUSCA V1 E V6 (DARK GLASS) --- */
.tl-search-v1-wrapper,
.tl-standalone-search-wrapper {
  position: relative;
  width: 100%;
}
.tl-search-v1-input,
.tl-standalone-search-input {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 100px !important;
  padding: 12px 50px 12px 20px;
  font-family: "Helvetica Now Display", sans-serif;
  font-size: 0.9rem;
  color: var(--tl-white) !important;
  font-weight: 500;
  box-sizing: border-box;
  outline: none;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  -webkit-appearance: none;
  appearance: none;
}
.tl-search-v1-input:focus,
.tl-standalone-search-input:focus {
  background-color: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}
.tl-search-v1-submit,
.tl-standalone-search-submit {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent !important;
  border: none;
  padding: 5px;
  color: var(--tl-white) !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  opacity: 0.6;
  transition: 0.3s;
}
.tl-search-v1-submit:hover,
.tl-standalone-search-submit:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

/* Remove X nativo */
.tl-standalone-search-input::-webkit-search-decoration,
.tl-standalone-search-input::-webkit-search-cancel-button,
.tl-standalone-search-input::-webkit-search-results-button {
  display: none;
}

/* Mobile */
@media (max-width: 768px) {
  .tl-sidebar {
    max-width: 90%;
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
  }
  .tl-sidebar-inner {
    padding: 40px 30px 120px 30px;
  }
  .tl-menu-link {
    font-size: 1.2rem;
  }
  .tl-footer-grid {
    flex-direction: column;
    gap: 30px;
  }
}
