html {
  scroll-behavior: smooth;
  /* Otimização para Chromebooks: previne flicker durante scroll */
  -webkit-overflow-scrolling: touch;
}

.wrapper-search-results{
    display: flex;
    background: #FFF;
    border-radius: 6px;
    padding: 1em;
    width: 100%;
    gap: 20px;
    align-items: center;
    box-shadow: 1px 9px 16px -9px #75c6ff47;
    border: 1px solid #EAEAEA
}
.card-search-book {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #EAEAEA;
}
.search-book-404{
    background: #FFF;
    border-radius: 6px;
    padding: 1em;
    width: 100%;
    box-shadow: 1px 9px 16px -9px #75c6ff47;
    text-align: center;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    gap:10px;  
}
.search-book-results-icon img{
    height: 70px;
}
.search-box {
    border: 1px solid #D6D6D6;
    padding: 14px;
    border-radius: 6px;
    width: 100%;
    position: relative;
    z-index: 3;
    font-size: 18px;
    font-weight: bold;
    color: #219ebc;
}

.wrapper-input-search{
    position: relative;
    display: flex;
    gap: 10px;
    margin-top: 15px
}

.search-icon {
    color: var(--color-secondary);
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    z-index: 3;
}
.card-search-book-image-container {
    position: relative;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f6faff;
    background-image: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);    
}
.card-search-book-image-container .book-type{
    top:5%;
}

.card-search-book-image {
    max-height: 230px;
    width: auto;
    max-width: 100%;
    border-radius: 7px;
    border-bottom: 5px solid #cbd6e5;
}

.card-search-book-body {
    padding: 20px;
    flex-grow: 1;
}

.card-search-book-title {
    color: #333;
    font-weight: bold;
    min-height: 60px;
    border-bottom: 1px solid #EAEAEA;
}

.card-search-book-subtitle {
    margin-bottom: 20px;
    color: #666;
}

.card-search-book-text {
    margin-bottom: 0px;
    color: #333;
    display: -webkit-box; 
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;    
}

.card-search-book-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}
.color-white{
    color: #FFF !important;
}

.card-search-book-list li {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap:10px;
}
.back-book-info{
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.back-book-info li{
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap:10px;    
}

.card-search-book-icon {
    color: #007bff;
}

.card-search-book-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    margin-top: 0.2em;
}
.card-search-book-footer button, .card-search-book-footer .btn{
    font-size: 13px;
    padding: 8px 15px;
    border: 0;
    width: 100%;
}
.card-search-book-footer button:hover, .card-search-book-footer .btn:hover{
    border:0 !important; 
}

.card-search-book-btn {
    background-color: #0CB257;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.2s ease-in-out;
    width: 90%;
    font-weight: bold;
    font-size: 18px;
    border-bottom: 5px solid #08823f;
}

.card-search-book-btn:hover, .card-search-book-btn:active, .card-search-book-btn:focus{
    border-bottom: 5px solid #037034 !important;
    background-color: #079145 !important;
    color: #ffffff !important;
}
.backspace-search{
    position: absolute;
    right: 10px;
    z-index: 3;
    top: 4px !important;
}
.backspace-search i{
    color: #DC3027;
    font-size: 34px;
}
.search-book-results-resume p{
    font-size: 1.2em;
    line-height: 1.3;
    margin-bottom: 0;
}
.card-search-book-icon-quiz, .card-search-book-icon-vocab{
    color: #00a900;
}
.card-search-book-icon-no-quiz, .card-search-book-icon-no-vocab{
    color: #DC3027;
}
.search-highlight{
    color:#00a900;
}
.wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 20px;
  align-items: start;
  perspective: 1800px; 
}

.book__productcard {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #FFF;
  transition: all 0.4s ease;
  border-radius: 8px;
  overflow: hidden;
}
.book__productcard:hover{
    
}

.book__productcard:hover .book-title {
  color: #2196f3;
  transition: all 0.4s ease;
}

.last-read {
  color: #8196A7;
  font-size: 14px;
  line-height: 20px;
  margin:2em 0 0em 0;
}

.book_card_back .book-title{
    border-bottom: 1px solid #EAEAEA;   
}

.book__container {
    padding: 20px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: center;
    text-align: center;
    gap: 10px 0; 
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}
.book {
  background: url(/img/book-paper.png);
  background-size: 100% 100%;
  perspective: 1000px;
  width: 175px;
  height: 255px;
  border-radius: 4px;
}
.book img {
  width: 175px;
  height: 255px;
  transition: 1s cubic-bezier(0.25, 1, 0.5, 1);
  transform: rotate(0);
  transform-origin: left;
  border-radius: 4px;
  filter: drop-shadow(0px 20px 13px rgba(27, 37, 58, 0.1)) drop-shadow(0px 8px 5px rgba(27, 37, 58, 0.06));

}
.book:before {
  content: "";
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(255, 255, 255, 0.4) 100%);
  width: 2px;
  margin-left: 8px;
  height: 100%;
  display: block;
  position: absolute;
  z-index: 2;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);;
}

.book:hover img {
  transition: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  transform: rotateY(-40deg);
  filter: drop-shadow(0px 100px 87px rgba(23, 35, 67, 0.07)) drop-shadow(0px 41.7776px 36.3465px rgba(23, 35, 67, 0.0503198)) drop-shadow(0px 22.3363px 19.4326px rgba(23, 35, 67, 0.0417275)) drop-shadow(0px 12.5216px 10.8938px rgba(23, 35, 67, 0.035)) drop-shadow(0px 6.6501px 5.78559px rgba(23, 35, 67, 0.0282725)) drop-shadow(0px 2.76726px 2.40751px rgba(23, 35, 67, 0.0196802));
  pointer-events: none;
}

.book:hover:before {
  margin-left: 6px;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

.wrapper-display-books{
    display: flex;
    flex-direction: row;
    gap:30px;
    width: 100%;
}
.display-books h3{
    font-size: 21px;
    margin-top: 7px;
    color: #2196F3;
}
.display-books h6{
    font-weight: normal;
    margin-bottom: 1em;
}
.display-books{
    width: 100%;
    padding: 1em;    
}
.filter-books{
    width: 250px;
    display: flex;
    background: #FFF;
    border-radius: 6px 0 0 6px;
    padding: 1em;
    gap: 20px;
    box-shadow: 1px 9px 16px -9px #1a5a87;
}
.container-filter-books{
    display: flex;
    gap: 25px;
    flex-direction: column;
    width: 100%;
}
.container-filter-books label{
    color: #0069bd;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 3px;
}
.container-filter-books select{
    height: 52px;
    font-size: 18px;
}
.form-label{
    font-size: 16px;
}
.item-checked{
    background: #219ebc;
    color: #FFF;
}
.item-checked:hover{
    background: #219ebc;
    color: #FFF;
}
.list-group-item{
    font-size: 15px;
}

.book__flipper {
  transition: 0.6s;
  transform-style: preserve-3d;
  position: relative;
  width: 100%;
  height: 100%;
  /* Otimização para Chromebooks: força aceleração GPU e previne flicker */
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.book_card_front{
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  position: relative;
}
.book_card_front:hover{
    cursor: pointer;
}
.book_card_back{
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    display: flex;
    align-items: center;
    backface-visibility: hidden;
    padding: 25px;
    border-radius: 4px;
    background: #FFF;
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: center;
    text-align: center;
    gap: 10px 0;
    transition: all 0.4s ease;      
}

.book_card_back {
  transform: rotateY(180deg);
  /* Estilização do verso do livro */
}
.book__flip-container{
    height: 100%;
    /* Otimização para Chromebooks: previne flicker durante transformações */
    perspective: 1000px;
    -webkit-perspective: 1000px;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}
.book__flip-container.flipped .book__flipper {
  transform: rotateY(180deg);
  /* Força aceleração GPU em Chromebooks */
  -webkit-transform: rotateY(180deg);
}

.btn-start-activities{
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    right: 0;
}
.tooltip__card_front{
    position: absolute;
    display: none; 
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.75);
    color: white;
    border-radius: 6px;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 500 !important; 
    min-width: 150px;
    text-align: center;
}
.read-completed {
    position: relative;
    transition: opacity 0.3s ease;
}
.read-completed{
    gap: 5px;
    position: absolute;
    top: 78px;
    left: -6px;
    width: 162px;
    height: 32px;
    background-color: #4caf50e6;
    color: white;
    line-height: 25px;
    transform: rotate(-45deg);
    transform-origin: left bottom;
    font-size: 16px;
    text-align: center;
    align-items: center;
    justify-content: center;
    display: flex;
    font-weight: bold;
    box-shadow: 1px 9px 18px -3px #25772847;
    z-index: 3;
    pointer-events: none;
} 
.book__flip-container{
    position: relative;
}
.flipped .read-completed{
    opacity: 0;
}
.wrapper-spiner-center{
    width: 100%;
    left: 0;
    right: 0;
    text-align: center;
    align-items: flex-start;
    justify-content: center;
    /* Removido height: 100vh que causa reflows em Chromebooks - usando min-height ao invés */
    min-height: 200px;
    pointer-events: none;
    display: flex;
    padding-top: 3em;
    position: relative;
}
.wrapper-spiner-center .spinner-border{
    width: 7rem !important;
    height: 7rem !important;
}
.list-group-item-action:hover{
    cursor: pointer;
}
.book-type{
    background: #219ebc;
    color: #FFF;
    position: absolute;
    z-index: 2;
    top: 4px;
    padding: 1px 20px;
    font-size: 12px;
    border-radius: 6px;
    font-weight: bold;
}
.book-type-Nonfiction{
    background: black;
}
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px 20px;
}

.book-item {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 8px 8px 0 0;
    box-shadow: 1px 9px 16px -9px #75c6ff47;
    transition: transform 0.3s;
    border: 1px solid #EAEAEA;
    min-height: 460px;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.wrapper-book-item-and-amazon .book-item,
.wrapper-book-item-and-amazon .fixed-amazon-button {
  transition: transform 0.3s ease;
  transform-origin: center center;
}

.wrapper-book-item-and-amazon:hover .book-item,
.wrapper-book-item-and-amazon:hover .fixed-amazon-button {
  transform: scale(1.05);
}

.fixed-amazon-button{
    background: #FFF
}


.btn-amazon {
  margin: 0px auto;
  background: #FFF;
  border: none;
  padding: 0;
  margin-top: auto;
  cursor: pointer;
  padding: 7px 2.1em;
  display: block;
  margin-bottom: 5px;
  margin-bottom: 5px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease-out;  
  text-align: center;
}
.btn-amazon img {
  display: block;
  max-width: 72px;            
  width: auto;
  height: auto;
  margin: 0 auto;
  position: relative;
  top: 2px;           
}

.btn-amazon:hover {
    background-color: #ffac5857;
}

.image-container-product {
  position: relative;
  overflow: hidden;
}


.btn-amazon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.6s;
}

.btn-amazon:hover::before {
  left: 100%;
}

.btn-amazon:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 153, 0, 0.3);
}


.book-cover-container {
    position: relative;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f6faff;
    padding-top: 3em;
    padding-bottom:3em;
}

.book-cover {
    max-width: 100%;
    border-radius: 7px;
    min-height: 197px;
    max-height: 197px;
}

.book-info {
    padding: 10px;
    text-align: center;
}

.book-title {
    margin: 0;
    color: #004271;
    font-size: 15px;
    line-height: 20px;
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-author {
    font-size: 12px;
    color: #666;
    margin: 5px 0 0 0;
}


.only-mobile {
  display: inline !important;
}

.only-desktop {
  display: none !important;
}

@media (min-width: 1200px) {
  .only-mobile {
    display: none !important;
  }

  .only-desktop {
    display: inline !important;
  }
}

@media (max-width: 500px) {
  .only-desktop { display: inline !important; }
  .only-mobile { display: none !important; }
}

.book-rank {
    font-size: 1.2em;
    font-weight: 800;
    color: #000;
    margin: 8px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.book-rank::before {
    content: '#';
    font-size: 0.9em;
    opacity: 0.8;
}

.book-hover-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #fff;
    padding: 5px;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 4em;
    padding-bottom: 3em;
    z-index: 3;
}

.book-hover-info::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: -1;
}

.book-item:hover .book-hover-info {
    display: flex;
}

.book-hover-info p, .book-hover-info ul {
    margin: 0;
    padding: 10px;
    list-style: none;
    font-size: 13px;
    line-height: 1.6;
    color: #ffffff;
}

.s-badge{
    position: absolute;
    top: 6px;
    left: 5px;
    background-color: #ff9800;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    z-index: 5 !important;
}

.quiz-badge {
    background-color: #4caf50e6;
}
.quiz-badge-request{
    background: #9c27b0e0;
}
.quiz-badge-request:hover{
    cursor: pointer;
}
.vocab-badge {
    background-color: #2196f3db;
    right: 5px;
    left: auto;
}

.book-hover-info ul li {
    margin-bottom: 5px;
}
.two-colums{
    display: flex;
    gap:6px;
}
.two-colums li{
    gap:3px;
}
.book-title-hover {
    display: flex;
    align-items: center;
}

.book-title-text {
    display: -webkit-box;             
    -webkit-box-orient: vertical;     
    -webkit-line-clamp: 2;            
    overflow: hidden;                 
    white-space: normal;              
    max-width: 122px;
    margin-left: 8px;
}
.copy-title-btn, .copy-title-btn:hover, .copy-title-btn:active{
    color: #FFF;
    border: 1px solid #eaeaea7d;
}
.book-item.book-locked:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
    border-radius: 8px 8px 0 0;
}

.book-item.book-locked .lock-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: url('/img/icon-lock-item.svg') no-repeat center center;
    background-size: 50px;
    width: 50px;
    height: 67px;
    z-index: 3;
    cursor: pointer; /* Permite interação no cadeado */
}

.book-item.book-locked .lock-icon.shake {
    animation: shake 0.5s ease-in-out;
}

.book-item.book-locked .btn-start-activities{
    display: none;
}

@keyframes shake {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    25% { transform: translate(-50%, -50%) rotate(-20deg); }
    50% { transform: translate(-50%, -50%) rotate(20deg); }
    75% { transform: translate(-50%, -50%) rotate(-10deg); }
    100% { transform: translate(-50%, -50%) rotate(0deg); }
}


.featured-item {
    position: relative;
    border: 2px solid #FFD700;
    background: linear-gradient(145deg, 
        rgba(255, 215, 0, 0.1) 0%, 
        rgba(255, 255, 255, 1) 50%
    );
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.featured-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: linear-gradient(
        to bottom right,
        transparent 30%,
        rgba(255, 215, 0, 0.1) 50%,
        transparent 70%
    );
    animation: shine 3s infinite;
    transform: rotate(30deg);
    z-index: 1;
    pointer-events: none;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
}


.card-search-book-footer {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; 
}


.api-indicator{
    position: absolute;
    background: #f9ab45;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    right: 6px;
}


.amazon-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.amazon-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  vertical-align: middle;
  border: .15em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border .75s linear infinite;
}
/* Só para esconder */
.d-none { display: none !important; }
/* keyframes do bootstrap */
@keyframes spinner-border {
  to { transform: rotate(360deg); }
}

.wrapper-book-item-and-amazon{
  
}

.fixed-amazon-button a {
  border: 2px solid #059669;
  border-radius: 21px;
  margin-top: 4px;
}

/* 1) Brilho atravessando o botão via wrapper hover */
.wrapper-book-item-and-amazon:hover .btn-amazon::before {
  left: 100%;
}

/* 2) Flutuação + sombra via wrapper hover */
.wrapper-book-item-and-amazon:hover .btn-amazon {
  box-shadow: 0 5px 15px rgba(255, 153, 0, 0.3);
  transform: translateY(-8px);
  background-color: #ffac58;
  border-color: #e18d38;
}



.featured-banner {
    position: absolute;
    top: 245px;
    right: -10px;
    background: #FFD700;
    color: #000;
    padding: 5px 15px;
    border-radius: 3px;
    font-weight: bold;
    transform: rotate(3deg);
    box-shadow: 
        0 0 15px rgba(255, 215, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.4),
        0 0 45px rgba(255, 215, 0, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1;
    animation: glow-animation 1.5s ease-in-out infinite alternate;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

@keyframes glow-animation {
    0% {
        box-shadow: 
            0 0 10px rgba(255, 215, 0, 0.6),
            0 0 20px rgba(255, 215, 0, 0.4),
            0 0 30px rgba(255, 215, 0, 0.2),
            0 2px 4px rgba(0, 0, 0, 0.2);
    }
    100% {
        box-shadow: 
            0 0 20px rgba(255, 215, 0, 0.8),
            0 0 40px rgba(255, 215, 0, 0.6),
            0 0 60px rgba(255, 215, 0, 0.4),
            0 2px 4px rgba(0, 0, 0, 0.2);
    }
}
.bt-level-group {
  background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
  border-radius: 8px;
  padding: 0;
  margin: 2px 0;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}

/* Brilho dinâmico genérico */
.bt-level-group::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 25%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 75%
  );
  animation: shine 4s infinite;
  pointer-events: none;
  opacity: 0.5;
}

/* Brilho colorido específico */
.bt-level-group::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 25%,
    var(--glow-color) 50%,
    transparent 75%
  );
  animation: shine 6s infinite;
  pointer-events: none;
  opacity: 0.3;
}

@keyframes shine {
  0% { transform: translateX(-150%) rotate(45deg); }
  100% { transform: translateX(150%) rotate(45deg); }
}

.emoji-container {
    position: relative;
    padding: 4px 7px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    z-index: 1;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji {
  font-size: 1.6em;
  filter: drop-shadow(0 0 8px currentColor);
  animation: float 3s ease-in-out infinite;
  position: relative;
  left: 2px;
  top: 2px;  
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.level-text {
  font-family: 'Nunito', sans-serif;
  font-size: 1.1em;
  color: white;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
  font-weight: bold;
  padding-right: 3px;
}

.grade-book {
  font-weight: normal;
  font-size: 12px;
  display: block;
  opacity: 0.9;
}

/* Cores específicas com variáveis */
.bt-level-group.Cool {
  --glow-color: rgba(0, 247, 255, 0.3);
}
.bt-level-group.Mild {
  --glow-color: rgba(127, 255, 0, 0.3);
}
.bt-level-group.Hot {
  --glow-color: rgba(255, 51, 0, 0.3);
}
.bt-level-group.Fire {
  --glow-color: rgba(255, 0, 170, 0.3);
}

[class*="Cool"] .emoji-container { 
  color: #00f7ff; 
  box-shadow: 0 0 15px #00f7ff55; 
}
[class*="Mild"] .emoji-container { 
  color: #7fff00; 
  box-shadow: 0 0 15px #7fff0055; 
}
[class*="Hot"] .emoji-container { 
  color: #ff3300; 
  box-shadow: 0 0 15px #ff330055; 
}
[class*="Fire"] .emoji-container { 
  color: #ff00aa; 
  box-shadow: 0 0 15px #ff00aa55; 
}

.bt-level-group:hover {
  transform: scale(1.05);
  box-shadow: 
    0 0 30px rgba(255, 255, 255, 0.2),
    0 0 40px var(--glow-color);
}

/* Efeito de brilho suave no hover */
.bt-level-group:hover::after {
  opacity: 0.5;
}

@media (max-width: 767px){
    .card-search-book-footer{
        flex-direction: column;
    }
    .row-search-book{
        gap:15px;
    }
    .wrapper-search-results{
        flex-direction: column;
    }
}
@media (max-width: 1199px) {
    .card-search-book-list{
    columns: 1;
    -webkit-columns: 1;
    -moz-columns: 1;        
    }   
    .card-search-book-btn{
        font-size: 16px;
        padding: 7px 14px;
    }
    .wrapper-display-books{
        flex-direction: column;
        gap:0;
    }
    .filter-books{
        width: 100%;
        box-shadow: none;
        order:1;
    }
    .display-books{
        order:2;
    }
}

#top100-results .book-hover-info {
    filter: none !important;
}

#top100-results .book-hover-info::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: -1;
}

#top100-results .bt-level-group {
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}


#top100-results .grade-filters button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

#top100-results .grade-filters button.active {
    background: rgba(33, 150, 243, 0.3);
    border-color: rgba(33, 150, 243, 0.5);
    box-shadow: 0 0 15px rgba(33, 150, 243, 0.3);
}

.grade-filters button.inactive {
    opacity: 0.5;
}



#top100 h2 {
    font-size: 2.5em;
    font-weight: 800;
    background: linear-gradient(45deg, #2196F3, #00BCD4);   
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1em;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

#top100 h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, 
        rgba(33, 150, 243, 0.5),
        rgba(0, 188, 212, 0.5)
    );
    border-radius: 2px;
    transform: scaleX(0.8);
    transition: transform 0.3s ease;
}

#top100 h2:hover::after {
    transform: scaleX(1);
}


.filters-container {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  }
  
  /* AJUSTES NOS BOTÕES */
  .secondary-filters .btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
  }
  
  .secondary-filters .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  
  /* GRADE FILTERS COMPACTOS */
  .grade-filters .pill-bubble {
    padding: 6px 16px;
    font-size: 0.9em;
  }
  
  .grade-filters .emoji-wrapper {
    margin-right: 6px;
  }

#top100 .grade-filters .pill-bubble {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    position: relative;
    opacity: 0.85;
    color: #fff !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#top100 .grade-filters .pill-bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    opacity: 0.95;
}

#top100 .grade-filters button.active .pill-bubble {
    opacity: 1;
    transform: scale(1.05);
    border: 2px solid white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2),
                inset 0 0 15px rgba(255, 255, 255, 0.2);
    filter: brightness(1.1);
}

#top100 .grade-filters button.inactive .pill-bubble {
    opacity: 0.5;
    filter: grayscale(0.5);
}

#top100 .grade-filters button.inactive .pill-bubble:hover {
    opacity: 0.75;
}

.emoji-wrapper {
    display: inline-block;
    position: relative;
    z-index: 2;
    padding: 4px;
    margin-right: 8px;
  }
  
  .emoji-wrapper::before {
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  
  .filter-pill {
    border: none;
    padding: 0;
    background: transparent;
    transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  }
  
  .pill-bubble {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    color: white;
    cursor: pointer;
  }
  
  /* --- Efeito Hover Corrigido --- */
  .pill-bubble:hover {
    transform: translateY(-2px);
    box-shadow: 
      0 4px 20px -5px rgba(0,0,0,0.2),
      0 0 0 2px rgba(255,255,255,0.15) inset;
  }
  
  /* --- Animação do Emoji --- */
  .emoji-wrapper {
    display: inline-block;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  .emoji-wrapper::before {
    content: '';
    position: absolute;
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: -1;
    transition: all 0.4s ease;
  }
  
  .pill-bubble:hover .emoji-wrapper {
    transform: rotate(15deg) scale(1.1);
  }
  
  .pill-bubble:hover .emoji-wrapper::before {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
  
  /* --- Efeito de Brilho Dinâmico --- */
  .pill-bubble::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
      to right,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,0.2) 50%,
      rgba(255,255,255,0) 100%
    );
    transition: left 0.6s ease;
  }
  
  .pill-bubble:hover::after {
    left: 150%;
  }
  
  /* --- Gradientes Otimizados --- */
  .bg-grades1 { 
    background: linear-gradient(45deg, #3B82F6, #2563EB);
  }
  .bg-grades2 { 
    background: linear-gradient(45deg, #10B981, #059669);
  }
  .bg-grades3 { 
    background: linear-gradient(45deg, #EF4444, #DC2626);
  }
  .bg-grades4 { 
    background: linear-gradient(45deg, #F97316, #EA580C);
  }
  
  /* --- Animação de Gradiente --- */
  .pill-bubble {
    background-size: 200% auto;
  }
  
  .pill-bubble:hover {
    background-position: right center;
  }
  
#top100-results .featured-banner {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    font-weight: 600;
    text-shadow: none;
}

#top100-results .featured-banner i {
    color: #000;
    margin-right: 4px;
}

.filter-breadcrumb {
  font-size: 18px;
  background: #999;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-left: 10px;
  font-weight: 400;
}

.book-locked .book-hover-info {
  display: none !important;
}

.book-locked::after {
  animation: none;
  transform: none;
}