/* HEADER */

.header{
    width:100%;
    height: 70px;
    background-color: var(--tertiary);
    background-image: var(--gradient-tertiary);
    box-shadow: 0 6px 12px rgba(0,0,0,.4);
    position: fixed;
    top:0;
    z-index: 985;
}
.logo{
    width: fit-content;
    height: 70px;
    color: var(--light-one);
    text-shadow: 2px 2px 4px rgba(0,0,0,.4);
}
.logo a{
    color: var(--light-one);
    font-family: 'Ananda', cursive;
    font-size: 1.15rem;
}
.logo a:first-child{
    display: flex;
}
.logo a:last-child{
    display:none;
}
.menu{
    width:fit-content;
    height: 70px;
}
.menu ul{
    height: 100%;
    list-style-type: none;
}
.menu ul li{
    margin-left: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,.4);
}
.menu ul li:first-child{
    margin-left:0;
}
.menu ul li a{
    color: var(--light-one);
    transition: .2s;
}
.menu ul li a:hover{
    color: var(--light-four);
}
.menu ul li a:hover svg{
    fill: var(--light-four);
}
.menu ul li a svg{
    transition: .2s;
    width: 14px;
    margin-right: 6px;
    fill:var(--light-one)
}
.menu-user{
    width: fit-content;
    margin-left: 30px;
    cursor: pointer;
}
.menu-user-photo{
    width: 34px;
    height: 34px;
    background-color: var(--dark-four);
    background-image: url('../img/loading.gif');
    background-size:20px 20px;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
    overflow: hidden;
}
.menu-user-photo img{
    width: 100%;
    height: 100%;
}
.menu-user-data{
    width: fit-content;
    padding: 0 10px;
    color: var(--light-one);
    line-height: 80%;
}
.menu-user-name{
    height: 24px;
}
.menu-user-email{
    display: none;
}
.triangle-menu{
    width: 0; 
    height: 0; 
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid var(--primary);
}
.click-menu{
    cursor: pointer;
}
.pop-up-menu{
    width:240px;
    background-color: var(--light-one);
    position: absolute;
    right:0;
    top:80px;
    border-radius:6px;
    overflow: hidden;
    border-radius: 6px;
    z-index: 995;
    display: none;
    box-shadow: 0 0 10px rgba(0,0,0,.4);
}
.header-pop-up-menu{
    width:calc(100% - 20px);
    padding:36px 10px 10px 10px;
    background-image:linear-gradient(var(--primary) calc(50% + 10px), var(--light-one) calc(50% - 10px));
}
.foto-pop-up-menu{
    width:80px;
    height:80px;
    border-radius: 50%;
    margin:0 auto 0 auto;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow:0 0 0 4px var(--light-one);
    background-color: var(--light-two);
    background-size:cover;
}
.nome-pop-up-menu{
    width:calc(100% - 20px);
    margin:0 auto;
    text-align: center;
}
.nome-pop-up-menu h4{
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 10px;
    color: var(--dark-five);
    overflow: hidden;
}
.nome-pop-up-menu hr{
    margin:10px 0;
    height: 1px;
    padding:0;
    border:none;
}
.nome-pop-up-menu span{
    width:100%;
    padding:12px 0;
    color: var(--dark-three);
    border-top: 1px solid var(--light-three);
    list-style-type: none;
    transition: .2s;
    position: relative;
    cursor: pointer;
}
.nome-pop-up-menu span a{
    color: var(--dark-three);
}

/* HOME */

.intro{
    width: 100%;
    background-image: url('../img/bg-one.avif');
    background-position: center center;
    background-size:cover;
    text-shadow: 4px 4px 4px rgba(0,0,0,.3);
    color: var(--light-one);
    padding-top: 68px;
}
.intro h2{
    width:100%;
    max-width: 1240px;
    margin: 0 auto;
    text-align: center;
    font-style: italic;
}
.intro hr{
    width:100%;
    max-width: 200px;
    border:none;
    height: 3px;
    border-radius: 3px;
    background-color: var(--primary);
    margin: 5% auto;
}
.intro span{
    display: block;
    width: 100%;
    cursor: pointer;
    text-align: center;
    font-family: 'Ananda', cursive;
    white-space: nowrap;
    text-shadow: 2px 2px 2px rgba(0,0,0,.2);
}
.welcome{
    width: 100%;
    background-color: var(--ter);
    background-position: center center;
    background-image: url('../img/wallpaper-lia.avif');
    background-color: var(--light-one);
    background-size:cover;
    background-attachment: fixed;
}
.welcome h1{
    margin-bottom:24px;
}
.welcome .container-small{
    text-align: center;
}
.welcome-photo{
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    overflow:hidden;
    cursor: url('../img/cursor.png') 10 10, auto;
    border-radius: 10px;
}
.welcome-photo img{
    width: 100%;
}
.welcome-about{
    width:100%;
}
.welcome-about p:first-child{
    text-align: justify;
}
.welcome-about p:last-child{
    display: block;
    width: fit-content;
    margin: 0 auto 7% auto;
    background-color: var(--primary-weak);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    transition: .2s ease-out;
    text-align: center;
}
.welcome-about p:last-child:hover{
    transform: scale(1.05);
}
.ancora-autora{
    display: inline-block;
    padding: 12px 24px;
    font-weight: 600;
    margin-top: 40px;
    text-transform: uppercase;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 12px;
    background-color: transparent;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}
.ancora-autora::before{
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    z-index: 0;
    transition: all 0.3s ease;
}
.ancora-autora:hover::before{
    left: 0;
}
.ancora-autora:hover{
    color:var(--light-one);
}
.ancora-autora span {
    position: relative;
    z-index: 1;
}
.welcome-about hr{
    width: 100%;
    height: 2px;
    margin: 7% auto;
    border: none;
    background-color: var(--primary);
}
.books-title{
    position: relative;
    width: fit-content;
    margin: 0 auto;
    background-image: var(--gradient-tertiary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-shadow: 4px 4px 4px rgba(0, 0, 0, .1);
}
.books-title::after{
    content: "";
    position: absolute;
    left: 0;
    top: calc(50%);
    height: 4px;
    width: 100%;
    background-color: var(--primary);
}
.books{
    width: 100%;
    flex-wrap: wrap;
}
.book{
    width: calc(100% / 3 - 15px);
    background-color: var(--light-one);
    border-radius: 6px;
    overflow: hidden;
    box-shadow:0 0 14px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}
.book-thumbnail{
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    border-bottom: 1px solid var(--light-three);
    background-color: var(--light-one);
    background-image: url('../img/loading.gif');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 64px 64px;
}
.book-thumbnail img:not(.book-thumbnail-audio img){
    width: 100%;
}
.book-thumbnail-audio{
    width: 100%;
    height: 50px;
    position: absolute;
    top:0;
    left: 0;
    font-weight: 600;
    background-image: linear-gradient(to bottom, var(--light-one) 0%, rgba(255,255,255,0) 100%);
    color: var(--tertiary);
    animation: fadeInOut 1s ease-in-out infinite;
}
@keyframes fadeInOut {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}
.book-thumbnail-audio img{
    width: 22px;
    margin-right: 4px;
    height: 22px;
}
.book-thumbnail-mask{
    position: absolute;
    height: auto;
    width: 100%;
    text-align: center;
    transition: .2s;
    bottom:10px;
}
.book-thumbnail-mask div{
    width: fit-content;
    padding: 4px 10px;
    border-radius: 2px;
    background-color: var(--quaternary);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
    opacity: .75;
    font-weight: 500;
    color: var(--light-one);
}
.book-thumbnail:hover .book-thumbnail-mask{
    opacity: 0;
}
.book-info{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: calc(100% - 40px);
    padding: 0 20px 20px 20px;
    height: auto;
}
.book-name{
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: auto;
    width: 100%;
    min-height: 120px;
    text-align: center;
    border-bottom: 1px solid var(--primary-weak);
    margin-bottom: 16px;
    font-weight: 500;
    color: var(--dark-four);
}
.book-price-acrescimo{
    width:100%;
    text-align: center;
    padding-bottom:8px;
    color: var(--primary);
    font-weight: 500;
    margin: 0 auto;
}
.book-price{
    width:100%;
    text-align: center;
    color: var(--dark-four);
    font-weight: 600;
    padding-bottom:16px;
}
.book-price span:last-child{
    color: var(--primary);
}
.book-combo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 14px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(0, 150, 80, 0.08);
    font-size: 13px;
    line-height: 1.2;
}

.book-combo .combo-badge {
    background: #009650;
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    padding: 4px 6px;
    border-radius: 6px;
    white-space: nowrap;
}

.book-combo .combo-text {
    color: #0f5132;
}

.book-combo b {
    font-weight: 600;
}
.book-button{
    display: block;
    width: 100%;
    font-weight: 500;
    padding: 12px 0;
    margin-top: 10px;
    border: none;
    border-radius: 6px 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, .2);
    transition: .6s;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.book-button::after{
    content: "";
    position: absolute;
    top: 0;
    left: -110%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.6s ease;
    transform: skewX(-30deg);
}
.book-button:hover::after{
    left: 110%;
}
.book-button:active{
    transform: scale(0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.books-simple{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 16px;
    width: 100%;
}

/* Card */
.book-simple{
    padding: 1rem;
    display: block;
    text-decoration: none;
    color: inherit;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--light-three);
    background: var(--light-one);
    transition: transform .2s ease, box-shadow .2s ease;
}
.book-simple:hover{
    transform: translateY(-2px);
}
.book-simple-thumb{
    width: 100%;
    max-width: 100px;
    margin: 0 auto;
    aspect-ratio: 1/1;
    background-color: var(--light-one);
    border-radius: 6px;
    overflow: hidden;
}
.book-simple-thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.book-simple-title{
    margin-top: 10px;
    text-align: center;
    font-weight: 500;
    color: var(--dark-four);
}
.active{
    background: var(--quaternary);
    color: var(--light-one);
}
.shortly{
    color: var(--light-one);
    background: var(--primary);
    cursor:progress;
}
.morebooks-link{
    display: block;
    width: fit-content;
    margin:0 auto;
    padding: 12px 24px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--quaternary);
    border: 2px solid var(--quaternary);
    border-radius: 12px;
    background-color: transparent;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.morebooks-link::before{
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--quaternary);
    z-index: 0;
    transition: all 0.3s ease;
}
.morebooks-link:hover::before{
    left: 0;
}
.morebooks-link span {
    position: relative;
    z-index: 2;
}
.morebooks-link:hover{
    color:var(--light-one);
}
.author-bg{
    width: 100%;
    height: auto;
    background-image: url('../img/bg-author.avif');
    background-repeat: repeat;
    background-size: 540px;
    background-position: center center;
    background-attachment: scroll;
}
.author-bio{
    width: calc(100% - 40px);
    background: var(--light-one);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding:30px 20px;
}
.author-photo{
    width: calc(100% - 20px);
    max-width: 200px;
    border: 4px solid var(--primary);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    aspect-ratio: 1/1;
    margin: 20px auto 0 auto;
    cursor: url('../img/cursor.png') 10 10, auto;
    border-radius: 50%;
    overflow: hidden;
}
.author-photo img{
    width: 100%;
}
.author-bio h2{
    margin: 5% auto;
    text-align: center;
    font-family: 'Ananda', cursive;
    letter-spacing: 2px;
    cursor: url('../img/cursor.png') 10 10, auto;
}
.author-bio p{
    width: calc(100% - 43px);
    padding-left: 20px;
    border-left: 3px solid var(--primary);
    margin-bottom: 30px;
    text-align: justify;
    transition: .2s;
}
.author-bio p:hover{
    cursor: url('../img/cursor.png') 10 10, auto;
    color: var(--primary);
}
.author-bio p:last-child{
    margin-bottom: 0;
}

/* FAQ */

.questions{
    width:100%;
    max-width: 1080px;
    margin: 0 auto;
}
.question{
    width: 100%;
    border-left: 1px solid var(--light-four);
    border-right: 1px solid var(--light-four);
}
.question:first-child{
    border-top: 1px solid var(--light-four);
    border-bottom: 1px solid var(--light-four);
}
.question:not(:first-child) {
    border-bottom: 1px solid var(--light-four);
}
.question-header{
    width: calc(100% - 50px);
    padding: 25px;
    cursor: pointer;
    background-color: var(--light-one);
    color:var(--dark-three);
}
.question-copy{
    width: calc(100% - 50px);
    padding: 0 25px 25px 25px;
    background-color: var(--light-one);
    color: var(--dark-four);
    display: none;
    overflow: hidden;
}
.question-copy a{
    color: var(--primary);
}
.question-copy ul{
    width: calc(100% - 20px);
    margin:20px 0;
    margin-left: 20px;
    list-style: circle;
}
.question-copy ul li{
    height: 34px;
}
.question-copy p{
    margin-bottom: 20px;
}
.question-copy p:last-child{
    margin-bottom: 0;
}
.question-footer{
    width: 100%;
    text-align: center;
}
.question-footer a{
    width: fit-content;
    padding: 10px 14px;
    margin: 0 auto;
    text-shadow: 0 2px 2px rgba(0,0,0,.15);
    color: var(--light-one);
    box-shadow: 0 0 8px rgba(0,0,0,.1);
    background-color: var(--primary);
    border-radius: 6px;
}
.question-footer a svg{
    width: 20px;
    margin-right: 8px;
    fill:var(--light-one);
}

/* PAGINA LIVRO */

.book-view{
    width: calc(92% - 80px);
    max-width: 1200px;
    padding: 40px;
    border-radius: 6px;
    background-color: var(--light-one);
    margin: 0 auto 0 auto;
    padding-top: 140px;
}
.book-view div{
    width: 100%;
}
.book-view-image{
    max-width: 380px;
    margin: 0 auto;
    overflow: hidden;
    border: 3px solid var(--primary-weak);
    border-radius: 6px;
}
.book-view-image img{
    width: 100%;
}
.book-view-name h1{
    width: fit-content;
    text-align: center;
    margin: 0 auto;
    border-bottom: 3px solid var(--primary-weak);
    padding-bottom: 40px;
    margin-bottom: 40px;
}
.book-page{
    text-align: center;
    padding-bottom: 40px;
    color: var(--light-five);
}
.book-page img{
    width: 18px;
    margin-right: 8px;
}
.book-view-slogan{
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    font-style: italic;
    color: var(--primary);
    text-align: center;
}
.book-view-description{
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    text-align: justify;
    color: var(--dark-four);
}
.book-view-price {
    position: relative;
    text-align: center;
    margin: 40px auto;
    color: var(--primary);
    font-weight: 600;
    padding: 10px 0;
    line-height: 1.5;
    z-index: 1;
}
.book-view-price::before,
.book-view-price::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(50% - 140px);
    height: 1px;
    background-color: var(--primary);
    z-index: 0;
}
.book-view-price::before {
    left: 0;
}
.book-view-price::after {
    right: 0;
}
.book-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}
.book-view-button {
    display: inline-block;
    padding: 16px 36px;
    font-weight: 600;
    border-radius: 50px;
    color: var(--light-one);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.book-view-button:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}
.book-view-button.ebook {
    background: var(--gradient-quaternary);
}
.book-view-button.audiobook {
    background: var(--gradient-primary);
}
.book-view-button.combo {
    background: var(--gradient-quinary);
}
.book-view-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.25);
    transform: skewX(-30deg);
    transition: 0.5s;
}
.book-view-button:hover::after {
    left: 100%;
}
.combo-discount-info {
    position: relative;
    text-align: center;
    color: var(--quinary);
    background: var(--dark-four);
    border-radius: 14px;
    margin-top: 4%;
    box-shadow: 0 4px 20px rgba(23, 126, 137, 0.3), inset 0 0 12px rgba(105, 255, 241, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(105, 255, 241, 0.25);
    transition: all 0.3s ease;
}

.combo-discount-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(23, 126, 137, 0.45), inset 0 0 14px rgba(105, 255, 241, 0.15);
}

.combo-discount-info::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: var(--gradient-primary);
    opacity: 0.08;
    z-index: 0;
}

.combo-discount-info .discount-header {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.combo-discount-info .icon {
    font-size: 1.4rem;
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    from { transform: scale(1); opacity: 0.9; }
    to { transform: scale(1.15); opacity: 1; }
}

.combo-discount-info .discount-highlight {
    font-weight: 700;
    color: var(--quinary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 6px rgba(255,255,255, 0.2);
}

.combo-discount-info .discount-body {
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
}

.combo-discount-info .original-price {
    display: inline-block;
    text-decoration: line-through;
    color: var(--light-four);
    margin-right: 8px;
    font-size: 0.9rem;
}

.combo-discount-info .discounted-price {
    color: var(--light-one);
    font-weight: 600;
    font-size: 1rem;
}

.forms-popup{
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}
.forms-popup .inputs{
    width: 100%;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    height: fit-content;
    padding: 0;
    margin: 0;
}
.forms-popup .input-verify{
    width: 100%;
    color: var(--dark-five);
}
.forms-popup input {
    box-sizing: border-box;
    width: 100%;
    padding: 6px 15px;
}
.forms-popup button {
    padding: 12px;
    background-color: var(--tertiary);
    color: #fff;
    border-radius: 6px;
    border: none;
}
.forms-popup button{
    cursor: pointer;
}
.msg-form-return{
    text-align: center;
}
.form-register-a, .form-login-a{
    display: block;
    text-align: center;
    cursor: pointer;
    padding: 30px 0 10px 0;
    color: var(--primary);
}

/* STRIPE */

#sprite-checkout button {
    width: 100%;
    color: var(--light-one);
    background-color: var(--primary);
    padding: 12px 0;
    border: none;
    border-radius: 6px;
    margin-top: 20px;
    cursor: pointer;
}
#sprite-checkout #error-message{
    width: 100%;
    text-align: center;
    color: var(--secondary);
    padding:20px 0 4px 0;
}

/* FOOTER */

.footer-sup{
    background-color: var(--primary);
    background-image: var(--gradient-primary);
}
.footer-sup .default{
    flex-wrap: wrap;
}
.footer-item{
    width: calc(90% / 4);
    height:auto;
    background-color: rgba(255,255,255,.7);
    box-shadow: 10px 10px 10px rgba(0, 0, 0, .1);
    padding: 2% 0;
    border-radius: 6px;
    text-align: center;
    transition: .2s;
}
.footer-item:hover{
    transform: scale(1.05);
}
.footer-item h3{
    width: 100%;
    margin-bottom:20px;
    color: var(--dark-four);
}
.footer-count{
    width: 100%;
    flex-wrap: wrap;
    color: var(--dark-five);
}
.footer-count img{
    border-radius: 8px;
}
.footer-item div a{
    display: block;
    width: 100%;
    color: var(--primary);
}
.footer{
    width: 100%;
    text-align: center;
    padding:20px 0;
    background-color:var(--tertiary);
    color: var(--light-one);
    position: absolute;
}
.footer a{
    color: var(--light-one);
}
