/* EreadHub Plugin Styles */

.ebook-reader {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ebook-reader iframe {
    display: block;
    width: 100%;
    min-height: 600px;
    border: none;
}

#epub-reader,
#md-reader {
    background: #fff;
    border-radius: 4px;
}

.ebook-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.ebook-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ebook-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.ebook-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f5f5f5;
}

.ebook-card-content {
    padding: 20px;
}

.ebook-card-title {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0 0 5px 0;
    color: #333;
}

.ebook-card-excerpt {
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
    margin: 0 0 5px 0;
}

.ebook-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ebook-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
    text-align: center;
}

.ebook-btn-primary {
    background-color: #007cba;
    color: white;
}

.ebook-btn-primary:hover {
    background-color: #005a87;
    color: white;
}

.ebook-btn-secondary {
    background-color: #f0f0f0;
    color: #333;
}

.ebook-btn-secondary:hover {
    background-color: #e0e0e0;
    color: #333;
}

.ebook-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.ebook-detail-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.ebook-detail-cover {
    flex-shrink: 0;
}

.ebook-detail-cover img {
    width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ebook-detail-info {
    flex: 1;
    min-width: 300px;
}

.ebook-detail-title {
    font-size: 2em;
    margin: 0 0 15px 0;
    color: #333;
}

.ebook-detail-excerpt {
    font-size: 1.1em;
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.ebook-detail-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.ebook-detail-content {
    margin-top: 30px;
    line-height: 1.8;
}

.ebook-carousel {
    margin: 30px 0;
}

.ebook-carousel img {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin: 0 10px 10px 0;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.ebook-carousel img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .ebook-grid {
        grid-template-columns: 1fr;
    }

    .ebook-detail-header {
        flex-direction: column;
        text-align: center;
    }

    .ebook-detail-cover img {
        width: 150px;
    }

    .ebook-card-actions {
        justify-content: center;
    }
}
