/* css/base.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    scrollbar-gutter: stable;
}

body {
    font-family: var(--font-body);
    background-color: var(--taki-bg);
    color: var(--taki-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

#app {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Transição fluida e instantânea entre páginas SPA sem jitter vertical */
.page-fade-enter {
    animation: pageFadeIn 0.16s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageFadeIn {
    0% {
        opacity: 0.98;
    }
    100% {
        opacity: 1;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--taki-text);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s, opacity 0.2s;
}

a:hover {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: 100%;
}

.text-primary { color: var(--taki-yellow); }
.text-muted { color: var(--taki-muted); }
.text-danger { color: var(--taki-danger); }
.text-success { color: var(--taki-success); }
.text-center { text-align: center; }

.hidden { display: none !important; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0;
    margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
