/* Single Book Template Styles */

.book-gallery-single-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.book-gallery-single-inner {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.book-gallery-single-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #eee;
}

.book-gallery-single-title {
    margin: 0 0 10px;
    font-size: 32px;
    line-height: 1.2;
    color: #333;
}

.book-gallery-single-authors {
    font-size: 18px;
    margin-bottom: 5px;
    color: #555;
}

.book-gallery-single-author {
    color: #0073aa;
    text-decoration: none;
}

.book-gallery-single-author:hover {
    text-decoration: underline;
}

.book-gallery-single-year {
    font-size: 16px;
    color: #777;
}

.book-gallery-single-content {
    display: flex;
    flex-wrap: wrap;
    padding: 30px;
}

.book-gallery-single-image {
    flex: 0 0 300px;
    margin-right: 40px;
    margin-bottom: 30px;
}

.book-gallery-single-cover {
    width: 100%;
    height: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    margin-bottom: 20px;
}

.book-gallery-single-price {
    margin-bottom: 20px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
}

.book-gallery-single-regular-price {
    color: #333;
}

.book-gallery-single-sale-price {
    color: #cc0000;
    margin-left: 10px;
}

.book-gallery-single-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.book-gallery-single-button {
    display: block;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.book-gallery-single-buy-button {
    background-color: #021f59;
    color: #ffffff;
}

.book-gallery-single-buy-button:hover {
    background-color: #005177;
}

.book-gallery-single-download-button {
    background-color: #021f59;
    color: #ffffff;
}

.book-gallery-single-download-button:hover {
    background-color: #3d8b40;
}

.book-gallery-single-details {
    flex: 1;
    min-width: 300px;
}

.book-gallery-single-section {
    margin-bottom: 40px;
}

.book-gallery-single-section-title {
    font-size: 24px;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.book-gallery-single-metadata {
    width: 100%;
    border-collapse: collapse;
}

.book-gallery-single-metadata th,
.book-gallery-single-metadata td {
    padding: 12px 0;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.book-gallery-single-metadata th {
    width: 150px;
    font-weight: 600;
    color: #555;
}

.book-gallery-single-metadata td {
    color: #333;
}

.book-gallery-single-metadata a {
    color: #0073aa;
    text-decoration: none;
}

.book-gallery-single-metadata a:hover {
    text-decoration: underline;
}

.book-gallery-single-rating {
    display: flex;
    align-items: center;
}

.book-gallery-single-star {
    color: #ccc;
    font-size: 20px;
    margin-right: 2px;
}

.book-gallery-single-star-filled {
    color: #ffb900;
}

.book-gallery-single-description {
    margin-bottom: 30px;
    line-height: 1.6;
    color: #333;
}

.book-gallery-single-categories,
.book-gallery-single-co-authors {
    margin-top: 30px;
}

.book-gallery-single-categories h3,
.book-gallery-single-co-authors h3 {
    font-size: 18px;
    margin: 0 0 15px;
    color: #333;
}

.book-gallery-single-categories-list,
.book-gallery-single-co-authors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.book-gallery-single-category,
.book-gallery-single-co-author {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f0f0f0;
    border-radius: 20px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.book-gallery-single-category:hover,
.book-gallery-single-co-author:hover {
    background-color: #e0e0e0;
    color: #333;
}

/* Responsive styles */
@media (max-width: 768px) {
    .book-gallery-single-content {
        flex-direction: column;
    }
    
    .book-gallery-single-image {
        margin-right: 0;
        margin-bottom: 30px;
        max-width: 300px;
    }
    
    .book-gallery-single-metadata th {
        width: 120px;
    }
}

@media (max-width: 480px) {
    .book-gallery-single-header {
        padding: 20px 20px 15px;
    }
    
    .book-gallery-single-content {
        padding: 20px;
    }
    
    .book-gallery-single-title {
        font-size: 24px;
    }
    
    .book-gallery-single-authors {
        font-size: 16px;
    }
    
    .book-gallery-single-section-title {
        font-size: 20px;
    }
    
    .book-gallery-single-metadata th {
        width: 100px;
        font-size: 14px;
    }
    
    .book-gallery-single-metadata td {
        font-size: 14px;
    }
}
