/* Library Page Styles */

.library-hero {
    padding: 60px 20px;
    background: linear-gradient(180deg, var(--primary-text-color) 0%, var(--secondary-text-color) 100%);
    color: white;
    text-align: center;
    margin-bottom: 60px;
}

.library-hero h1 {
    font-size: 3.5rem;
    font-family: 'Recoleta', serif;
    margin: 20px 0;
    font-weight: 900;
}

.library-hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.95;
}

.library-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Utility text alignment classes used by markdown content */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.book-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.book-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

.book-card-content {
    padding: 30px 25px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 15px;
    color: var(--primary-text-color);
    font-family: 'Recoleta', serif;
    line-height: 1.3;
}

.book-card-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.book-card-link {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-text-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    margin: 20px 0;
    font-weight: 600;
    transition: background-color 0.3s ease;
    align-self: center;
}

.book-card-link:hover {
    background-color: var(--secondary-text-color);
}

.empty-state {
    text-align: center;
    padding: 100px 20px;
}

.empty-state p {
    font-size: 1.2rem;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .library-hero h1 {
        font-size: 2.5rem;
    }

    .library-hero p {
        font-size: 1rem;
    }

    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .library-hero {
        padding: 40px 15px;
        margin-bottom: 40px;
    }

    .library-hero h1 {
        font-size: 2rem;
    }

    .books-grid {
        grid-template-columns: 1fr;
    }
}
