/* ==========================================
   BOOKS CONTENT STYLING
   ========================================== */

#content-container .books-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #333;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.books-content__title {
    font-size: 2.5rem !important;
    margin: 0 0 1rem 0 !important;  /* Changed from 2rem to 1rem */
    color: #2c3e50;
    text-align: center;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.books-content__subtitle {  /* Fixed: was .book-content__subtitle */
    font-size: 1.1rem;
    color: #6c757d;
    text-align: center;
    margin-bottom: 2rem;  /* Changed from 20px to 2rem for consistency */
    font-style: italic;
    max-width: 600px;
}

.books-content__categories {
    display: grid;
    gap: 2rem;
    width: 100%;
}

.books-category {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid #e1e8ed;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.books-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.books-category__title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.books-category__icon {
    font-size: 1.2rem;
}

.books-list {
    display: grid;
    gap: 1rem;
}

.book-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e9ecef;
}

.book-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.book-cover {
    width: 60px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    text-align: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.book-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.book-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s ease;
}

.book-title a:hover {
    color: #3498db;
    text-decoration: underline;
}

.book-title a:visited {
    color: #5a6c7d;
}

.book-author {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.book-description {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.book-why {
    font-size: 0.8rem;
    color: #495057;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-left: 3px solid #3498db;
    border-radius: 0 4px 4px 0;
}

.book-why strong {
    color: #2c3e50;
}

.book-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.book-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid #bbdefb;
    transition: all 0.2s ease;
}

.book-tag:hover {
    background: #bbdefb;
    transform: scale(1.05);
}

.book-tag--advanced {
    background: #fff3e0;
    color: #ef6c00;
    border-color: #ffcc02;
}

.book-tag--beginner {
    background: #e8f5e8;
    color: #2e7d32;
    border-color: #c8e6c8;
}

.book-tag--intermediate {
    background: #fff8e1;
    color: #f57f17;
    border-color: #ffecb3;
}

.book-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: auto;
}

.stars {
    color: #ffc107;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.rating-text {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .books-content {
        padding: 1rem !important;
        max-width: 100% !important;
    }
    
    .books-content__title {
        font-size: 2rem !important;
    }
    
    .books-category {
        padding: 1rem;
    }
    
    .books-category__title {
        font-size: 1.3rem;
    }
    
    .book-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
    }
    
    .book-cover {
        width: 80px;
        height: 100px;
        margin-bottom: 0.5rem;
    }
    
    .book-info {
        align-items: center;
    }
    
    .book-tags {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .books-content {
        padding: 0.5rem !important;
    }
    
    .books-content__title {
        font-size: 1.8rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .books-category {
        padding: 0.75rem;
    }
    
    .book-item {
        padding: 0.75rem;
    }
    
    .book-title {
        font-size: 1rem;
    }
    
    .book-description {
        font-size: 0.8rem;
    }
}