/**
 * Frontend Styles
 * AI Blog Author Assistant - Public Facing
 */

/* eBook Library Grid */
.bwa-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.bwa-book-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bwa-book-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.bwa-book-cover {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 4px;
}

.bwa-book-cover img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.bwa-book-item:hover .bwa-book-cover img {
    transform: scale(1.05);
}

.bwa-book-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.bwa-book-author {
    margin: 0 0 15px;
    font-size: 14px;
    color: #666;
}

.bwa-book-excerpt {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.bwa-download-button {
    display: inline-block;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
    font-weight: 500;
}

.bwa-download-button:hover {
    background: #005177;
}

/* Single eBook Page */
.bwa-single-ebook {
    max-width: 800px;
    margin: 0 auto;
}

.bwa-ebook-header {
    text-align: center;
    margin-bottom: 40px;
}

.bwa-ebook-title {
    font-size: 36px;
    margin-bottom: 15px;
}

.bwa-ebook-meta {
    font-size: 16px;
    color: #666;
}

.bwa-ebook-download-section {
    text-align: center;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 30px 0;
}

.bwa-ebook-content {
    line-height: 1.8;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .bwa-library-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .bwa-ebook-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .bwa-library-grid {
        grid-template-columns: 1fr;
    }
}
