@charset "UTF-8";
@import url('https://fonts.googleapis.com/css?family=Ubuntu+Mono');
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@100..900&family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap');


:root {
  /* --bg-color: #212529; */
  /* --bg-color: #0c1317; */
  --bg-color: #202c33;
  --bg-content-color: whitesmoke;
  /* --bg-color: #343434 ;*/
}

body {
  background-color: var(--bg-color);
}

#formModal {
  z-index: 1 !important;
}

.modal-backdrop {
  z-index: 0 !important;
}


#cabecalho {
  color: whitesmoke;
  font-family: 'Ubuntu Mono', 'Times New Roman', Times, serif;
  padding: 1em;
  text-align: center;
}

#footer {
  position: fixed;
  bottom: 0;
  width: 100%;
}

hr.h-color {
  background: #eee;
}


body,
h1 {
  font-family: 'Ubuntu Mono';
}

/* Cabeçalho */
#cabecalho .titulo-cabecalho {
  height: 1.2em;
}

#cabecalho .titulo-cabecalho a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.content h1,
p {
  color: #212529;
}

.content #nav_info {
  width: 100%;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.98) translateY(+100%);
  }

  50% {
    opacity: 1;
    transform: scale(1.0) translateY(0);
  }

  70% {
    transform: scale(0.98);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.content {
  /* background: #eee; */
  /* padding: 32px; */

  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.3s ease-in-out;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;

  min-height: 640px;

}

.content.show-content {
  display: block !important;
  visibility: visible !important;

  opacity: 1 !important;
  animation: bounceIn 0.6s ease;
}


.card-index {
  display: inline-block;
  position: relative;
}

.card-index:after {
  content: "";
  display: block;
  width: 0px;
  height: 0px;
  background-color: var(--bg-color);
  top: -2px;
  right: -2px;

  border-bottom-left-radius: 8px;
  border-bottom: 20px solid whitesmoke;
  border-left: 20px solid whitesmoke;
  border-right: 20px solid transparent;
  border-top: 20px solid transparent;
  position: absolute;

  box-shadow: rgba(0, 0, 0, 0.15) -5px 5px 3px -2px;
}


.card-index {
  box-shadow: rgba(17, 17, 26, 0.1) 0px 1px 0px;
  border: 2px solid white;
  border-radius: 8px;
}


.card-projects {
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
  border: 3px solid white;
  border-radius: 12px !important;
  margin: 4px;
}

.card-projects div:nth-child(1) {
  border-radius: 12px !important;

}



/* Styling the tag Code */
code {
  background-color: #272822;
  color: #f8f8f2;
  border-radius: 0.3rem;
  padding-left: 0px;
  padding-top: 2px;
  padding-bottom: 2px;
  padding-right: 2px;
  white-space: nowrap;
}

pre code {
  white-space: inherit;
  font-family: 'Source Code Pro';
  background-color: #272822;
}



pre {
  background-color: #272822;
  padding: 5px;
  border-radius: 0.3em;
  color: #f8f8f2;
  white-space: pre;
  text-align: start;
}


/* // For Github embed code not became too big in page */

.gist-data {
  max-height: 40rem;
  overflow-y: visible;
}

.loader {

  border: 1em solid #eee;
  /* Light grey */
  border-top: 1em solid #212529;
  /* Blue */
  border-radius: 100%;
  width: 10em;
  height: 10em;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

form>input.form-control,
form>button.btn[type=submit] {
  border-radius: 8px;
}

.login-wrap,
.login-form .form-group input.form-control,
.login-form .form-group button.btn[type=submit] {
  border-radius: 8px;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

body #cabecalho {
  width: 100%;
}

.main-container {
  max-width: 1366px;
  width: 100%;

  border-radius: 8px;
  padding-left: 16px;
  padding-right: 16px;

  margin-bottom: 32px;

}



/* .ck .ck-balloon-rotator__content {

  background: #000 !important;
  padding: 2px !important;
  z-index: 5 !important;
} */

form#pagination {
  display: flex;
  justify-content: end;
  margin: 20px;
  margin-top: 50px;
}

form#pagination button {
  font-weight: 600;
  font-family: 'Source Code Pro';
  border: none;
  border-radius: 8px;
  /* box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px; */
  /* background: whitesmoke; */
  text-align: center;
  background: gray;
  color: whitesmoke;
  min-height: 40px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}


form#pagination button.active {
  background: gainsboro;
  margin-left: 8px;
  margin-right: 8px;
  padding-top: 4px;
  padding-bottom: 4px;
  color: #202c33;

}

form#pagination button:hover {
  /* background: #202c33; */
  background: black;
  color: white;
  /* padding-top: 4px;
  padding-bottom: 4px; */
}



form#pagination button.page-btn-previous {
  border-radius: 8px;
  margin-right: 20px;
  padding-left: 20px;
  padding-bottom: 5px;
  padding-right: 20px;

  color: white;
  /* border-top-left-radius: 16px;
  border-bottom-left-radius: 16px; */
}

form#pagination button.page-btn-next {
  border-radius: 8px;
  margin-left: 20px;
  padding-left: 20px;
  padding-bottom: 5px;
  padding-right: 20px;

  color: white;
  /* border-top-right-radius: 16px;
  border-bottom-right-radius: 16px; */
}


form#pagination button.page-btn-previous:hover,
form#pagination button.page-btn-next:hover {

  background: gainsboro;
  color: #202c33;
  /* border-top-left-radius: 16px;
  border-bottom-left-radius: 16px; */
}

/* tabela */
.article figure.table,
.article figure.table table {
  width: 100%;
  max-width: 700px;
  /* seu limite */
  box-sizing: border-box;
  border-collapse: collapse;
}

/* comportamento natural (colunas podem crescer) */
.article figure.table table {
  table-layout: auto;
  /* deixa colunas crescerem conforme conteúdo, mas controlaremos overflow */
}

/* células: permitir que quebrem e não forçar largura minima */
.article figure.table td,
.article figure.table th {
  padding: 8px;
  /* vertical-align: top; */

  /* permitir quebra de palavras longas */
  overflow-wrap: anywhere;
  /* moderno */
  word-break: break-word;
  /* compatibilidade */
  white-space: normal;
  /* importante se algum CSS global tinha nowrap */

  /* crucial para evitar que filhos (flex/inline-block) forcem overflow */
  min-width: 0;
  box-sizing: border-box;
}

/* wrapper dentro da célula — bom para controlar filhos */
.article figure.table .cell-wrap {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
  box-sizing: border-box;
}

/* imagens e elementos media não estouram a célula */
/* figure.table img,
figure.table video,
figure.table iframe {
  max-width: 100%;
  height: 100%;
  display: block;
} */

/* <pre> e <code> costumam quebrar layout — tratá-los */

.article figure.table pre,
.article figure.table code {
  white-space: pre-wrap;
  /* permite quebra */
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
  box-sizing: border-box;
}

/* links longos */
.article figure.table a {
  word-break: break-all;
  overflow-wrap: anywhere;
}

.raw-html-embed {
  max-width: 700px;
  /* seu limite */
  width: 100%;
}

code {
  padding: 0px;
  max-width: 700px;
  /* seu limite */
  width: 100%;
}

pre code {
  padding: 0px;
}

pre {
  overflow: auto;
  padding: 0px;
  font-size: small;
}

@media (max-width: 768px) {

  article.row div.col {
    padding-left: 0px;
    padding-right: 0px;
  }

  .card-index {
    display: inline-block;
    position: relative;
  }

  /* Styling the tag Code */
  code {
    padding: 0px;
    width: 100%;
  }

  pre code {
    padding: 0px;
  }

  pre {
    overflow: scroll;
    overflow-y: scroll;
    padding: 0px;
    font-size: small;
  }

  iframe {
    width: 100% !important;
  }

  /* #navbar {
        display: flex;
        visibility: visible;
    }


    .content {
        margin-bottom: 32px;
    } */


}


/* === Navbar base === */
.navbar_top {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  background: transparent;
  transition: all 0.3s ease;
  padding: 0.8rem 2rem;
  display: inline-flex;
  justify-content: center;
}

.navbar_top.scrolled {
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  padding: 0.5rem 2rem;
}

/* === Layout interno === */
.navbar_container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  max-width: 1366px;
}

/* === Logo === */
.navbar_logo {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
}

/* === Botão mobile === */
.navbar_toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: none;
  /* só aparece no mobile */
}

/* === Menu === */
.navbar_menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.3s ease;
  height: 100%;
}

.navbar_menu li {
  list-style: none;
  width: fit-content;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav_link {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav_link i {
  font-size: 1rem;
  margin-right: 6px;
}

.nav_link:hover {
  color: #00bcd4;
  transform: translateY(-2px);
}

/* === Search bar === */
.navbar_search {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  transition: background 0.2s ease;
}

.navbar_search:hover {
  background: rgba(255, 255, 255, 0.2);
}

.navbar_search input {
  border: none;
  background: transparent;
  color: #fff;
  outline: none;
  padding: 0.2rem 0.5rem;
  width: 140px;
}

.navbar_search i {
  color: #ccc;
  font-size: 0.9rem;
}

/* === MOBILE MODE === */
@media (max-width: 768px) {

  #navbar_top {
    height: fit-content;
    display: flex;
  }

  .navbar_container {
    flex-wrap: wrap;
    height: 100%;
  }

  .navbar_toggle {
    display: block;
    /* mostra o botão hambúrguer */
  }

  .navbar_menu {
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    gap: 2px;
  }

  .navbar_menu li {
    list-style: none;
    height: fit-content;
    padding: 8px 0px;
    display: block;
    width: 100%;
    justify-content: center;
    display: flex;
  }

  .navbar_menu.active {
    max-height: fit-content;
    opacity: 1;
    pointer-events: auto;
  }

  .navbar_search {
    width: 100%;
    /* margin-top: 0.5rem; */
    justify-content: center;
  }

  .navbar_search input {
    width: 100%;
  }
}



/* === Dropdown === */
.navbar_menu .dropdown {
  position: relative;
}

.dropdown_toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.dropdown_menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #000;
  /* background: rgba(20, 20, 20, 0.95); */
  backdrop-filter: blur(8px);
  border-top-left-radius: 0px;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  border-bottom-left-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  min-width: 180px;
  display: none;
  flex-direction: column;
  padding: 0.3rem 0;
  z-index: 1000;
}

/* .dropdown:hover{
  background: #000;
} */

/* Mostrar dropdown no hover */
.dropdown:hover .dropdown_menu {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.dropdown_menu li {
  width: 100%;
}

.dropdown_menu a {
  color: #fff;
  padding: 0.6rem 1rem;
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  transition: background 0.2s ease, color 0.2s ease;
  width: 100%;
}

.dropdown_menu a:hover {
  background: #fff;
  color: #000;
}

.dropdown:hover {
  background: #000;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 0px;
  border-bottom-left-radius: 0px;
}

.dropdown:hover .fa-chevron-down {
  transform: rotate(180deg);
}

.dropdown:hover .nav_link {
  color: #00bcd4;
  transform: translateY(-2px);
}


.dropdown.active .fa-chevron-down {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .dropdown_menu {
    position: static;
    box-shadow: none;
    backdrop-filter: none;
    padding-left: 1rem;
    display: none;
    /* começa fechado */
    flex-direction: column;

    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
  }

  .dropdown {
    display: inline-flex;
    flex-direction: column;

    border-radius: 6px;
  }

  .dropdown.active {
    background: #fff;
  }

  .dropdown.active>a {
    color: #202c33;
  }

  /* Quando o dropdown estiver ativo (via JS) */
  .dropdown.active .dropdown_menu {
    margin-top: 10px;
    display: flex;
    width: 100%;
  }

  .dropdown_menu a {
    padding: 0.5rem 0;
    font-size: 0.9rem;
  }

  .dropdown_toggle {
    /* justify-content: space-between; */
    width: 100%;
  }
}







#side_nav_container,
#aside_nav_container {

  min-width: 15rem;
  width: 15rem;
  height: 100%;
  position: relative;
  top: 55px;
  background: var(--bg-color);
  /* min-width: 250px;
    max-width: 250px; */
  transition: all 0.4s;


}

#side_nav_container.sticky,
#aside_nav_container.sticky {
  position: sticky;
}


.social-sticky {}




@media (max-width: 768px) {

  .main-container {
    display: flex;
    flex-direction: column;
  }

  #side_nav_container {
    display: none;
  }

  #aside_nav_container {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  /* Se o aside tiver o social-container.active joga ele logo pro inicio */
  #aside_nav_container .social-container.active {
    order: -999;
  }

}




.side-container,
.aside-container {
  display: none;
  width: 100%;
  gap: 16px;

  /* background: rgba(255, 255, 255, 0.05); */
  border-radius: 16px;
  /* border: 1px solid rgba(255, 255, 255, 0.1); */
}

.side-container.active,
.aside-container.active {
  display: block;
}

.social-header {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  padding: 1.5rem 1rem;
  color: #f8f8f2;
  gap: 16px;

  /* background: rgba(255, 255, 255, 0.05); */
  border-radius: 16px;
  backdrop-filter: blur(6px);
  /* border: 1px solid rgba(255, 255, 255, 0.1); */
}



.social-title {
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
}

.social-image {
  width: 180px;
  height: 180px;
  border-radius: 20px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.7);
  transition: transform 0.25s ease;
  background: white;
}

.social-image:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transform: scale(1.03);
}

.social-desc {
  padding: 8px;
  text-align: center;
}

.social-desc p {
  margin: 0;
  color: #f8f8f2;
  line-height: 1.4;

  /* === Limita em 3 linhas === */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-desc a {
  color: #9ae8ff;
  text-decoration: none;
  font-weight: 600;
}

.social-desc a:hover {
  text-decoration: underline;
}

.social-desc span a {
  font-size: 0.9rem;
  display: inline-block;
  margin-top: 6px;
}



.tags-container {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px;
  flex-wrap: wrap;
}

.tags-container.active {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px;
}

.tag-badge {
  padding: 4px 10px;
  border-radius: 99px;
  display: inline-block;
  border: 1px solid #ccc;
  font-weight: 500;
  color: #eee;
  text-decoration: none;
}

.tag-badge:hover {
  background: #ddd;
  color: #202c33;
}








.cards-list {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}



.mini-card {
  width: 100%;
  max-width: 200px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
  margin: 8px;
  margin-bottom: 24px;
}

.mini-card:hover {}

/* HEADER */
.mini-card-header {
  padding: 12px 0px;
}

.mini-card-header h5 {
  font-size: 1rem;
  margin: 0;
}

.mini-card-header a {
  color: white;
  text-decoration: none;
}

.mini-card-header:hover a {
  text-decoration: underline;
}

/* FIGURE / IMAGE */
.mini-card-figure {
  width: 100%;
  height: 150px;
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 8px 8px 8px 8px;

  border: 2px solid white;
}

.mini-card-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;

  border-radius: 8px 8px 8px 8px;
}

.mini-card:hover .mini-card-figure img {

  border-radius: 8px 8px 0px 0px;
}

/* CAPTION */
.mini-card-figure figcaption {
  border-radius: 8px 8px 8px 8px;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* padding: 14px; */
  color: white;
  font-size: .85rem;
}

.mini-card-figure figcaption h5,
.mini-card-figure figcaption h5 a {
  margin: 0;
  height: 100%;
  width: 100%;
}


/* FOOTER */
.mini-card-footer {
  padding: 12px 16px;
  border-top: 1px solid #e8e8e8;
  background: #fafafa;
  border-radius: 0px 0px 8px 8px;
}

.mini-card-date small {
  font-size: .80rem !important;
  color: #666;
}

/* Efeito geral de transição */
.mini-card *,
.mini-card *::before,
.mini-card *::after {
  transition: all .2s ease;
}