/* تنسيق صفحة الكتب */
.books-hero-section {
    background: linear-gradient(135deg, #2577B1 0%, #1e5f8f 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    padding-top: 250px;
}

.books-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>') repeat;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #ffd700;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.featured-book-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.featured-book-cover {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.featured-book-cover img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.book-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.featured-book-cover:hover .book-overlay {
    opacity: 1;
}

.read-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.read-button:hover {
    background: white;
    transform: scale(1.1);
}

.read-button i {
    color: #333;
    font-size: 1.5rem;
}

.featured-book-info h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.featured-book-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.book-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* قسم الفلترة */
.filter-section {
    background: #f8f9fa;
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
}

.filter-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.search-box {
    position: relative;
}

.search-box input {
    padding-right: 50px;
    border-radius: 25px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: #2577B1;
    box-shadow: 0 0 0 0.2rem rgba(37, 119, 177, 0.25);
}

.search-btn {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    background: #2577B1;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #1e5f8f;
}

/* قسم عرض الكتب */
.books-section {
    padding: 3rem 0;
}

.results-info {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.results-count {
    margin: 0;
    color: #333;
}

.view-options {
    display: flex;
    gap: 0.5rem;
}

.view-options .btn {
    border-radius: 8px;
    background: #2577B1;
    border-color: #2577B1;
    color: white;
    transition: all 0.3s ease;
}

.view-options .btn:hover,
.view-options .btn.active {
    background: #1e5f8f;
    border-color: #1e5f8f;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(37, 119, 177, 0.3);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.book-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.book-cover {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.book-card:hover .book-cover img {
    transform: scale(1.05);
}

.book-card:hover .book-overlay {
    opacity: 1;
}

.featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ffd700;
    color: #333;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
}

.book-content {
    padding: 1.5rem;
}

.book-category {
    margin-bottom: 0.5rem;
}

.category-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.book-title {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.book-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.book-title a:hover {
    color: #667eea;
}

.book-author {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.book-author i {
    margin-left: 0.3rem;
}

.book-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.book-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.meta-left {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #666;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.meta-right {
    display: flex;
    gap: 0.5rem;
}

.meta-right .btn {
    border-radius: 8px;
    font-size: 0.8rem;
    background: #2577B1;
    border-color: #2577B1;
    color: white;
    transition: all 0.3s ease;
}

.meta-right .btn:hover {
    background: #1e5f8f;
    border-color: #1e5f8f;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(37, 119, 177, 0.3);
}

/* عرض القائمة */
.books-grid.list-view {
    grid-template-columns: 1fr;
}

.books-grid.list-view .book-card {
    display: flex;
    height: 200px;
}

.books-grid.list-view .book-cover {
    width: 150px;
    height: 100%;
    flex-shrink: 0;
}

.books-grid.list-view .book-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* عدم وجود نتائج */
.no-results {
    text-align: center;
    padding: 4rem 0;
}

.no-results-content {
    max-width: 500px;
    margin: 0 auto;
}

.no-results-icon {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 2rem;
}

.no-results h3 {
    color: #333;
    margin-bottom: 1rem;
}

.no-results p {
    color: #666;
    margin-bottom: 2rem;
}

/* Modal الكتاب */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.book-preview-container {
    display: flex;
    gap: 2rem;
}

.book-cover-preview {
    flex-shrink: 0;
    width: 200px;
}

.book-cover-preview img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.book-info {
    flex: 1;
}

.book-info h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.book-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.book-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.detail-item i {
    color: #2577B1;
    width: 20px;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1.5rem;
}

/* تحسينات للجوال */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .books-grid.list-view .book-card {
        flex-direction: column;
        height: auto;
    }
    
    .books-grid.list-view .book-cover {
        width: 100%;
        height: 200px;
    }
    
    .book-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .meta-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .book-preview-container {
        flex-direction: column;
    }
    
    .book-cover-preview {
        width: 100%;
        text-align: center;
    }
    
    .book-cover-preview img {
        width: 200px;
        height: 280px;
    }
} 