/* ========================================
   GEOLAK BOOKS GALLERY - FRONTEND STYLES
   ======================================== */

.geolak-books-gallery {
    padding: 40px 0;
}

.geolak-books-gallery .container-fluid {
    max-width: 100%;
}

.geolak-book-item {
    margin-bottom: 30px;
    padding: 0 10px;
}

.geolak-book-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.geolak-book-variants {
    position: relative;
    height: 100%;
}

.geolak-book-variant {
    display: none;
    height: 100%;
    flex-direction: column;
}

.geolak-book-variant.is-active {
    display: flex;
}

.geolak-book-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.geolak-book-header {
    padding: 15px;
    background: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
    min-height: 60px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.geolak-book-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: 0;
}

.geolak-book-author {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.geolak-book-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f5f5f5;
    min-height: 250px;
}

.geolak-book-image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.geolak-book-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.geolak-book-card:hover .geolak-book-image img {
    transform: scale(1.05);
}

.geolak-book-image > img {
    margin-left: auto;
    margin-right: auto;
}

.geolak-book-description {
    padding: 16px !important;
    color: #444;
    line-height: 1.5;
    border-top: 1px solid #e9e9e9;
    background: #ffffff;
    box-sizing: border-box;
}

.geolak-book-description p {
    margin: 0 0 8px 0;
}

.geolak-book-description p:last-child {
    margin-bottom: 0;
}

.geolak-book-footer {
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    background: #fafafa;
}

.geolak-book-download-link-wrap {
    margin-bottom: 10px;
    text-align: center !important;
}

.geolak-book-download-link {
    font-size: 11px;
    color: #555;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: center !important;
}

.geolak-book-download-link:hover {
    color: #222;
    text-decoration: underline;
}

.geolak-book-nav {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.58);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    line-height: 34px;
    text-align: center;
    z-index: 4;
}

.geolak-book-nav:hover {
    background: rgba(0, 0, 0, 0.75);
}

.geolak-book-nav-prev {
    left: 8px;
}

.geolak-book-nav-next {
    right: 8px;
}

.geolak-book-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    border: none;
}

.geolak-book-button:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6d3ca0 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: #fff !important;
    text-decoration: none !important;
}

/* Responsivo: Colunas dinâmicas */
@media (max-width: 576px) {
    .geolak-book-item {
        margin-bottom: 20px;
        padding: 0 5px;
    }

    .geolak-book-header {
        padding: 12px;
        min-height: 50px;
    }

    .geolak-book-title {
        font-size: 13px;
    }

    .geolak-book-author {
        font-size: 12px;
    }

    .geolak-book-image {
        min-height: 180px;
    }

    .geolak-book-button {
        font-size: 12px;
        padding: 8px 15px;
    }

    .geolak-book-nav {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 16px;
    }
}

/* Classe para 5 colunas (customizada) */
.col-lg-2\.4 {
    flex: 0 0 20%;
    max-width: 20%;
}

@media (max-width: 992px) {
    .col-lg-2\.4 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (max-width: 768px) {
    .col-lg-2\.4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .col-lg-2\.4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
