/* eBooks Landing Page Styles */

/* Page Banner */
.ebook-banner {
    background: linear-gradient(135deg, rgba(255, 123, 0, 0.9), rgba(255, 81, 0, 0.9)), 
                url('../images/ancient_manuscripts.jpg') center/cover;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.ebook-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/sacred_geometry_pattern.png') repeat;
    opacity: 0.1;
    z-index: 1;
}

.ebook-banner .banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.ebook-banner h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.ebook-banner h1 i {
    color: #ffd700;
    margin-right: 15px;
}

.ebook-banner p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.banner-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Search and Filter Section */
.ebook-search-section {
    padding: 40px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.search-filter-container {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 500px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.1rem;
}

.search-box input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 2px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.search-box input:focus {
    outline: none;
    border-color: #ff7b00;
    box-shadow: 0 0 15px rgba(255, 123, 0, 0.2);
}

.filter-options {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-options select {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-options select:focus {
    outline: none;
    border-color: #ff7b00;
}

.view-toggle {
    padding: 12px 15px;
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    color: #666;
}

.view-toggle:hover {
    background: #ff7b00;
    color: white;
}

/* Featured eBooks Section */
.featured-ebooks {
    padding: 80px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    color: #333;
    margin-bottom: 20px;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #ff7b00, #ff5100);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Featured Books Slider */
.featured-books-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.book-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.book-slide.active {
    display: block;
}

.featured-book {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fff, #f8f9fa);
    padding: 40px;
    gap: 40px;
}

.book-cover {
    position: relative;
    flex-shrink: 0;
    width: 280px;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.book-cover:hover {
    transform: translateY(-5px);
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.book-cover:hover .book-overlay {
    opacity: 1;
}

.read-btn {
    padding: 15px 25px;
    background: #ff7b00;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.read-btn:hover {
    background: #ff5100;
    transform: scale(1.05);
}

.book-info {
    flex: 1;
}

.book-info h3 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.book-info .author {
    font-size: 1.3rem;
    color: #ff7b00;
    margin-bottom: 20px;
    font-weight: 500;
}

.book-info .description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
}

.book-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.book-meta span {
    padding: 8px 15px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

.book-meta .category {
    background: #fff3e0;
    color: #ff7b00;
}

/* Slider Controls */
.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: #ff7b00;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: #ff5100;
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: #ff7b00;
}

/* Book Categories */
.book-categories {
    padding: 80px 0;
    background: #f8f9fa;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.category-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #ff7b00;
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #ff7b00, #ff5100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.category-card h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.category-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.book-count {
    display: inline-block;
    padding: 8px 15px;
    background: #fff3e0;
    color: #ff7b00;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* eBooks Collection */
.ebooks-collection {
    padding: 80px 0;
    background: white;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.book-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.book-card-cover {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
}

.book-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.book-card:hover .book-card-cover img {
    transform: scale(1.05);
}

.book-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 123, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.book-card:hover .book-card-overlay {
    opacity: 1;
}

.card-read-btn {
    padding: 12px 20px;
    background: white;
    color: #ff7b00;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-read-btn:hover {
    transform: scale(1.05);
}

.book-card-content {
    padding: 25px;
}

.book-card h4 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.3;
}

.book-card .card-author {
    color: #ff7b00;
    margin-bottom: 15px;
    font-weight: 500;
}

.book-card .card-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #999;
}

.card-category {
    background: #f0f7ff;
    color: #4a90e2;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 50px;
}

/* Reading Features */
.reading-features {
    padding: 80px 0;
    background: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #ff7b00, #ff5100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ebook-banner h1 {
        font-size: 2.5rem;
    }
    
    .ebook-banner p {
        font-size: 1.1rem;
    }
    
    .banner-stats {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .stat-item {
        padding: 15px;
        min-width: 120px;
    }
    
    .search-filter-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-options {
        justify-content: center;
    }
    
    .featured-book {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .book-cover {
        width: 220px;
        height: 320px;
    }
    
    .book-info h3 {
        font-size: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .books-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .ebook-banner {
        height: 400px;
    }
    
    .ebook-banner h1 {
        font-size: 2rem;
    }
    
    .banner-stats {
        gap: 15px;
    }
    
    .stat-item {
        padding: 12px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .book-cover {
        width: 180px;
        height: 260px;
    }
    
    .featured-book {
        padding: 20px;
    }
    
    .category-card {
        padding: 25px 20px;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Loading States */
.loading-books {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    font-size: 1.1rem;
    color: #666;
}

.loading-books i {
    margin-right: 10px;
    color: #ff7b00;
}