/* E-books Styles - Compilado manualmente */
.ebooks-area {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(252, 249, 245, 0.5) 0%, rgba(252, 249, 245, 1) 100%);
}

.ebooks-area .subtitle {
    margin-bottom: 60px;
}

.ebooks-area .subtitle h2 {
    margin-bottom: 20px;
}

.ebooks-area .subtitle p {
    font-size: 18px;
    color: #424242;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 300;
}

@media only screen and (min-width: 1750px) and (max-width: 2000px) {
    .ebooks-area .subtitle p {
        font-size: 20px;
    }
}

/* Filtros */
.ebooks-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
    padding: 20px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.ebooks-filters .filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: #0D1E2E;
    border: 2px solid #0D1E2E;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    font-family: "Gotham", sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
    position: relative;
    overflow: hidden;
}

.ebooks-filters .filter-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.ebooks-filters .filter-btn span {
    position: relative;
    z-index: 1;
}

.ebooks-filters .filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: #0D1E2E;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
}

.ebooks-filters .filter-btn:hover {
    color: #ffffff;
    border-color: #0D1E2E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 30, 46, 0.2);
}

.ebooks-filters .filter-btn:hover::before {
    width: 300px;
    height: 300px;
}

.ebooks-filters .filter-btn:hover i {
    transform: scale(1.1);
}

.ebooks-filters .filter-btn.active {
    background: #0D1E2E;
    color: #ffffff;
    border-color: #0D1E2E;
    box-shadow: 0 4px 15px rgba(13, 30, 46, 0.3);
    transform: translateY(-2px);
}

.ebooks-filters .filter-btn.active::before {
    width: 100%;
    height: 100%;
    border-radius: 30px;
}

.ebooks-filters .filter-btn.active i {
    transform: scale(1.1);
}

@media (max-width: 767px) {
    .ebooks-filters .filter-btn {
        padding: 10px 20px;
        font-size: 13px;
        gap: 6px;
    }

    .ebooks-filters .filter-btn i {
        font-size: 12px;
    }
}

/* Card de E-book */
.card-ebook {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(13, 30, 46, 0.05);
}

.card-ebook:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(13, 30, 46, 0.15);
    border-color: #E1B16D;
}

.card-ebook .badge-destaque {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #E1B16D 0%, #c99d5a 100%);
    color: #0D1E2E;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(225, 177, 109, 0.4);
    animation: pulse 2s infinite;
}

.card-ebook .badge-destaque i {
    font-size: 11px;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 2px 10px rgba(225, 177, 109, 0.4);
    }
    50% {
        box-shadow: 0 2px 20px rgba(225, 177, 109, 0.6);
    }
}

.card-ebook .ebook-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1.93 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, #FCF9F5 0%, #fefbf7 100%);
}

.card-ebook .ebook-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(13, 30, 46, 0.1) 100%);
    z-index: 1;
}

.card-ebook .ebook-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-ebook .ebook-image .ebook-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E1B16D;
    background: linear-gradient(135deg, #FCF9F5 0%, #fefbf7 100%);
    font-size: 48px;
}

.card-ebook .ebook-image:hover img {
    transform: scale(1.1);
}

.card-ebook .ebook-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-ebook .ebook-content .ebook-category {
    font-size: 11px;
    color: #E1B16D;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.card-ebook .ebook-content h3 {
    font-size: 16px;
    color: #0D1E2E;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
    min-height: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 767px) {
    .card-ebook .ebook-content h3 {
        font-size: 18px;
        min-height: auto;
    }
}

.card-ebook .ebook-content p {
    font-size: 12px;
    color: #424242;
    line-height: 1.4;
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-ebook .ebook-content .ebook-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px;
    background: #FCF9F5;
    border-radius: 6px;
}

.card-ebook .ebook-content .ebook-author .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-ebook .ebook-content .ebook-author .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-ebook .ebook-content .ebook-author .author-avatar .author-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E1B16D;
    color: #0D1E2E;
    font-size: 20px;
}

.card-ebook .ebook-content .ebook-author .author-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.card-ebook .ebook-content .ebook-author .author-info .author-label {
    font-size: 10px;
    color: #424242;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.card-ebook .ebook-content .ebook-author .author-info .author-name {
    font-size: 12px;
    color: #0D1E2E;
    font-weight: 600;
}

.card-ebook .ebook-content .ebook-author .author-info .author-name-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.3s;
    width: fit-content;
}

.card-ebook .ebook-content .ebook-author .author-info .author-name-link .author-name {
    font-size: 12px;
    color: #0D1E2E;
    font-weight: 600;
}

.card-ebook .ebook-content .ebook-author .author-info .author-name-link i {
    font-size: 12px;
    color: #E1B16D;
    transition: all 0.3s;
}

.card-ebook .ebook-content .ebook-author .author-info .author-name-link:hover .author-name {
    color: #E1B16D;
}

.card-ebook .ebook-content .ebook-author .author-info .author-name-link:hover i {
    color: #0D1E2E;
    transform: scale(1.2);
}

.card-ebook .ebook-content .ebook-author .author-info .author-cargo {
    font-size: 12px;
    color: #E1B16D;
    font-weight: 500;
}

@media (max-width: 767px) {
    .card-ebook .ebook-content .ebook-author {
        padding: 10px;
        gap: 10px;
    }

    .card-ebook .ebook-content .ebook-author .author-avatar {
        width: 45px;
        height: 45px;
    }

    .card-ebook .ebook-content .ebook-author .author-info .author-name {
        font-size: 13px;
    }

    .card-ebook .ebook-content .ebook-author .author-info .author-cargo {
        font-size: 11px;
    }
}

.card-ebook .ebook-content .ebook-author .authors-multiple {
    width: 100%;
}

.card-ebook .ebook-content .ebook-author .authors-multiple .author-label {
    font-size: 11px;
    color: #424242;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.card-ebook .ebook-content .ebook-author .authors-multiple .authors-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-ebook .ebook-content .ebook-author .authors-multiple .author-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-ebook .ebook-content .ebook-author .authors-multiple .author-item .author-avatar-small {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #E1B16D;
}

.card-ebook .ebook-content .ebook-author .authors-multiple .author-item .author-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-ebook .ebook-content .ebook-author .authors-multiple .author-item .author-avatar-small i {
    color: #E1B16D;
    font-size: 14px;
}

.card-ebook .ebook-content .ebook-author .authors-multiple .author-item .author-info-small {
    flex: 1;
}

.card-ebook .ebook-content .ebook-author .authors-multiple .author-item .author-info-small .author-name {
    font-size: 12px;
    color: #0D1E2E;
    font-weight: 600;
}

.card-ebook .ebook-content .ebook-author .authors-multiple .author-item .author-info-small .author-name-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    transition: all 0.3s;
}

.card-ebook .ebook-content .ebook-author .authors-multiple .author-item .author-info-small .author-name-link i {
    font-size: 10px;
    color: #E1B16D;
}

.card-ebook .ebook-content .ebook-author .authors-multiple .author-item .author-info-small .author-name-link:hover .author-name {
    color: #E1B16D;
}

.card-ebook .ebook-content .ebook-author .authors-multiple .author-item .author-info-small .author-name-link:hover i {
    color: #0D1E2E;
    transform: scale(1.2);
}

.card-ebook .ebook-content .ebook-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 12px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
    font-size: 10px;
    color: #424242;
}

.card-ebook .ebook-content .ebook-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-ebook .ebook-content .ebook-meta span i {
    color: #E1B16D;
}

.card-ebook .ebook-content .btn-ebook-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #0D1E2E 0%, #0a1620 100%);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: capitalize;
    width: 100%;
    border: none;
    position: relative;
    overflow: hidden;
}

.card-ebook .ebook-content .btn-ebook-download::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.card-ebook .ebook-content .btn-ebook-download span,
.card-ebook .ebook-content .btn-ebook-download i {
    position: relative;
    z-index: 1;
}

.card-ebook .ebook-content .btn-ebook-download:hover {
    background: linear-gradient(135deg, #E1B16D 0%, #c99d5a 100%);
    color: #0D1E2E;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(225, 177, 109, 0.4);
}

.card-ebook .ebook-content .btn-ebook-download:hover::before {
    width: 400px;
    height: 400px;
}

.card-ebook .ebook-content .btn-ebook-download:hover i {
    transform: translateX(3px);
}

.card-ebook .ebook-content .btn-ebook-download i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

/* Estado quando não há e-books */
.no-ebooks {
    padding: 60px 20px;
}

.no-ebooks i {
    margin-bottom: 20px;
}

.no-ebooks p {
    font-size: 16px;
    color: #424242;
}

/* Animação de fade para filtros */
.ebook-item {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ocultar itens filtrados */
.ebook-item.hidden {
    display: none;
}

/* Responsividade */
@media (max-width: 991px) {
    .ebooks-filters {
        gap: 10px;
    }

    .card-ebook .ebook-content {
        padding: 20px;
    }
}

@media (max-width: 767px) {
    .ebooks-area {
        padding: 60px 0;
    }

    .ebooks-filters {
        gap: 8px;
        margin-bottom: 30px;
    }

    .card-ebook .ebook-image {
        height: 200px;
    }

    .card-ebook .ebook-content {
        padding: 15px;
    }

    .card-ebook .ebook-content h3 {
        font-size: 18px;
    }

    .card-ebook .ebook-content p {
        font-size: 13px;
    }
}
