html{
    scroll-behavior: smooth;
    font-family: Mona Sans, sans-serif;
}

body {
    margin: 0;
    padding-top: 60px;
    display: flex;
    justify-content: center;
    background-color: var(--background-secundary);
    width: 100%;
    left: 0;
}

#main {
    background-color: transparent;
    align-items: center;
    color: var(--text-color);
    width: var(--content-width);
    height:1500px;
    margin-top: 0%;
    font-size: medium;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
}

@font-face {
    font-family: 'Mona Sans';
    src: url('../assets/fonts/mona-sans/MonaSansVF[wdth\,wght\,opsz\,ital].ttf') format('woff2');
    font-weight: 400;
    font-style: normal;
}

header {
    background-color: var(--background-color-trans);
    color: var(--text-color);
    display: grid;
    grid-template-columns: 1fr var(--content-width) 1fr;
    align-items: center;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    height: 60px;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
    z-index: 500;
}

#header-title{
    color: var(--text-color);
    font-size: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-inner {
    display: flex;
    align-items: center;
    width: 100%;
}

.header-actions{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.home-link{
    list-style: none;
    cursor: pointer;
    color: var(--text-color);
    text-decoration: none;
}

.highlight-text{
    color: var(--highlight-text-color);
}

.navbar{
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: flex-start;
}

.navbar .container-fluid {
    display: inline;
}

.navbar-nav {
    display: flex;
    justify-content: flex-start;
    gap: 40px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.nav-item {
    flex: 1;
    text-align: center;
}
.navbar-nav .nav-item {
    margin: 0;
    max-width: 200px;
    text-align: left;
}
.navbar-toggler {
    color: var(--primary-color);
    border-color: var(--primary-color);
    text-decoration-color: var(--primary-color);
}

.navbar-toggler-btn{
    padding-right: 5%;
    width: 100px;
}

.navbar-toggler-icon {
    color: var(--text-color);
}

.navbar-toggler:hover {
    background-color: var(--background-secundary);
}

.collapsing .nav-link{
    color: rgba(216, 210, 210, 0);
}

.nav-link {
    font-size: 20px;
    color: var(--text-color);
    font-family: League Spartan,verdana,monaco;
    font-weight: 400;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--highlight-text-color);
    transition: 0.5s;
}

.nav-bar-toggler {
    margin-right: 20px;
}

#theme-toggle {
    cursor: pointer;
    font-size: 50px;
    background-color: transparent;
    border-color: transparent;
    color: var(--text-color);
    top: 0;
    display: flex;
    height: 50px;
    width: 50px;
    margin-right: 5px;
    border-radius: 100px;
    align-items: center;
    justify-content: center;
}

#theme-toggle:hover {
    font-size: 35px;
    background-color: transparent;
    border-color: transparent;
    color: var(--highlight-text-color);
    transition: all 0.3s ease-in-out;
}

#lang-btn {
    margin-right: 10px;
}

.hidden {
    display: none;
}

blockquote {
    border-left: 4px solid #448aff;
    padding: 0.5rem 1rem;
    margin: 1rem 0;
}

.callout {
    border-left: 4px solid #448aff;
    background: rgba(68, 138, 255, 0.1);
    border-radius: 4px;
    padding: 1px 10px;
    margin: 1rem auto;
    vertical-align: middle;
}

.callout-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.callout-title svg {
    width: 1em;
    height: 1em;
}

.callout-info {
    border-left-color: #448aff;
}

.callout-info .callout-title {
    color: #448aff;
}

.callout-warning {
    border-left-color: #ff9800;
    background: rgba(255, 152, 0, 0.1);
}

.callout-warning .callout-title {
    color: #ff9800;
}

.diss-message{
    border: 1px solid var(--border-color);
    background-color: var(--background-color);
    border-radius: 10px;
    margin-top: 11px;
    padding-inline: 10px;
    overflow: hidden;
    max-height: 1000px;
    transition: max-height 0.5s ease-out;
}

.diss-message-closed{
    max-height: 32px;
    transition: max-height 0.4s linear;
    button{
        rotate: 180deg;
    }
}

.diss-header{
    max-height: 30px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.diss-header button{
    height: 20px;
    padding-top: 3px;
    cursor: pointer;
    color: var(--text-color);    
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-shadow: none;
    background-color: transparent;
    transition: 500ms;
    z-index: 50;
}

.diss-header button:hover{
    color: var(--highlight-text-color);
    border-color: var(--highlight-text-color);
    transition: 500ms;
}

.diss-header > p{
    margin-top: 5px;
}

/* ---------- Proyectos ---------- */
#main.main-wide {
    width: 96%;
    height: auto;
    min-height: calc(100vh - 60px);
}

.blog-entry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
    margin-top: 12px;
}

.blog-entry-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background-color: var(--background-color);
    color: var(--text-color);
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-entry-card:hover {
    border-color: var(--primary-color);
}

.blog-entry-card h3 { margin: 0; font-size: 19px; }
.blog-entry-card p { margin: 0; opacity: 0.85; font-size: 14.5px; line-height: 1.5; }
.blog-entry-emoji { font-size: 34px; line-height: 1; }

.blog-entry-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.blog-entry-tags span {
    font-size: 11.5px;
    padding: 2px 9px;
    border-radius: 999px;
    background-color: var(--background-secundary);
    border: 1px solid var(--border-color);
}

.blog-entry-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 4px;
    font-size: 15px;
}

.blog-entry-bar a { color: var(--text-color); text-decoration: none; }
.blog-entry-bar a:hover { color: var(--highlight-text-color); }
.bradcrumb { font-weight: 600; white-space: nowrap; }
.blog-entry-title { flex: 1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blog-entry-open { font-size: 20px; line-height: 1; }

.blog-entry-frame {
    display: block;
    width: 100%;
    height: calc(100vh - 60px - 56px);
    min-height: 560px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background-color: var(--background-color);
}

.blog-entry-content{
    width: 100%;
}

.bloc-entry-header-img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
