/*═══════════════════════════════════════════╗
║                 CIRCLES                    ║
╠════════════════════════════════════════════╝
║ Soltos no universo do scroll. Elementos
║ orbitais com movimento independente.
║ Ligados por pura estética.
╚════════════════════════════════════════════*/

@import url("https://use.typekit.net/ofx7xwg.css");

/* Locomotive Scroll - compatibility with Bootstrap 5 */
@media (prefers-reduced-motion:no-preference) {
    :root {
        scroll-behavior:unset!important;
    }
}

:root {
    --main-type-color: #414141;
    --link-color-tag: #A631FF;
    --link-color-nav: #3153FF;
    --link-color-main: #3153FF;

    --font-size-body: 1.5rem;
    --font-size-nav: 1.25rem;
    --font-size-tag: 1.25rem;
    --font-size-article-title: 1.6rem;
    --font-size-article-text: 1.2rem;
    --font-size-footer:1rem;
}

/*═══════════════════════════════════════════╗
║   BODY                                     ║
╚═══════════════════════════════════════════*/

body {
    background-color: #F6F6F6;
    background-image: url('../img/common/bg-main-shaddow.png');
    background-position: 70% -2%;
    background-repeat: no-repeat;
    overflow-x: hidden;

    color: var(--main-type-color);

    font-family: 'aptos';
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.8rem;
}

/*═══════════════════════════════════════════╗
║   TYPOGRAPHY                               ║
╚═══════════════════════════════════════════*/

.headedings {
    font-family: 'baskerville-display-pt';
    font-weight: 400;
    font-size: 3rem;
    line-height: 3.3rem;
}

.headline {
    font-family: 'aptos';
    font-weight: 300;
    font-size: 1.4rem;
}

.footer {
    font-size: var(--font-size-footer);
}

.footer a {text-decoration: none;}

.blog-post h1 {margin: 30px 0px}

.blog-post p {margin: 30px 0px}

.date {font-size: 1.2rem; font-family: 'aptos'; font-weight: 300;}

table {font-size: 1rem}



/*═══════════════════════════════════════════╗
║   NAV                                      ║
╚═══════════════════════════════════════════*/

.navigation-style {
    background: transparent;
}

.navbar-nav a {
    font-family: 'aptos';
    font-weight: 300;
    font-size: 1.25rem;
    color: var(--link-color-nav);
}

.brand-spacing {
    padding-right:80px;
}

.tag-link {
    display: inline-block;
    padding: 2px 5px;
    margin-right: 8px;
    color: var(--link-color-tag);
    font-weight: 300;
    font-size: var(--font-size-tag);
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
}

.tag-link:hover, .tag-link.active {
    border: 1px solid var(--link-color-tag);
}

.inner-tag-link {
    display: inline-block;
    padding: 2px 5px 2px 0px;
    /* color: var(--link-color-tag); */
    font-weight: 300;
    font-size: var(--font-size-tag);
    /* cursor: pointer; */
}

/* .inner-tag-link:hover {
    transform: scale(0.99);
    transition: transform 300ms ease;
} */

#back-to-top {
  position: fixed;
  top: 20px; /* distância do topo */
  opacity: 0;
  text-decoration: none; /* tira sublinhado */
  font-size: 1.2rem; /* tamanho razoável */
  z-index: 1000; /* fica acima de tudo */ 
  transition: opacity .4s ease-out;
  backdrop-filter: blur(5px) brightness(0.95);
  border-radius: 12px;
  padding: 8px 3px
}

#back-to-top img {
    height: 80px;  /* define a largura */
    width: auto; /* mantém a proporção original */
}


/*═══════════════════════════════════════════╗
║   Section Block                            ║
╚═══════════════════════════════════════════*/

.article-grid {
    background: #fff;
    padding: 30px 55px;
    border-radius: 40px;
}

.article-grid-title {
    font-size: var(--font-size-article-title);
    font-weight: 700;
    margin-bottom: 8;
}

.article-grid-text {
    font-size: var(--font-size-article-text);
    font-weight: 300;
    line-height: var(--font-size-article-text);
    margin-bottom: 0;
}

.article {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: block;
  }
  
  .article.hiding {
    opacity: 0;
    transform: scale(0.95);
  }
  
  .article.hidden {
    display: none;
  }

  .article-title-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
  }
  
  .article-title-link:hover {
    color: var(--link-color-main);
  }
  


/*═══════════════════════════════════════════╗
║   UTILITY                                  ║
╚═══════════════════════════════════════════*/

.offset-top-50 {
    margin-top: 50px;
}

.offset-top-100 {
    margin-top: 100px;
}

.offset-top-150 {
    margin-top: 150px;
}

.rounded-box {
    border-radius: 40px;
}

/*═══════════════════════════════════════════╗
║   Preloader                                ║
╚═══════════════════════════════════════════*/

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    background: #ffffff; /* ou outro visível */
  }
  
  .spinner {
    border: 1px solid transparent;
    border-radius: 5px;
    position: relative;
  }
  
  .spinner:before {
    content: '';
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 45px;
    height: 45px;
    margin-top: -10px;
    margin-left: -10px;
    border-radius: 50%;
    border: 1px solid #959595;
    border-top-color: #ffffff;
    animation: spinner .9s linear infinite;
  }
  
  @keyframes spinner {
    to {transform: rotate(360deg);}
  }


/*═══════════════════════════════════════════╗
║   Media Queries                            ║
╚═══════════════════════════════════════════*/


/* 🎨 Estilo base para <pre> e <code> */
pre, code {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.95rem;
    border-radius: 8px;
    line-height: 1.6;
    tab-size: 4;
  }
  
  /* 🧱 Bloco de código <pre> */
  pre {
    overflow-x: auto;
    padding: 1.2em 1em;
    margin: 1.5rem 0;
    position: relative;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset;
    text-wrap-mode: wrap;
  }
  
  /* ✍️ Inline <code> (em texto corrido) */
  p code, li code {
    padding: 0.1em 0.4em;
    background-color: rgba(53,53,53,0.16);
    border-radius: 4px;
    font-size: 0.75em;
    color: #d42c50;
  }
  
  
  /* 🌈 Scrollbar personalizada para blocos grandes */
  pre::-webkit-scrollbar {
    height: 8px;
  }
  pre::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
  }



/*═══════════════════════════════════════════╗
║   Media Queries                            ║
╚═══════════════════════════════════════════*/

@media (max-width: 991.98px) {

    .headedings {
        font-size: 2.4rem;
        line-height: 2.5rem;
    }
    .navbar-nav a {
        padding-top: 30px;
        padding-bottom: 30px;
        text-align: center;
        font-size: 1.5rem;
    }
    .navbar-toggler:focus {
        box-shadow: none;
    }

}

@media (max-width: 768px) {
  #back-to-top {
    top:80%;
    transform: translateX(-65px);
    backdrop-filter: blur(5px) brightness(0.95);
    border-radius: 12px;
    padding: 8px 12px
  }
}