/* My Library page (Phase 3 Task 08) */

.library-page {
    max-width: 1100px;
    margin: 0 auto;
}

.library-header {
    margin-bottom: 2rem;
}

.library-header h1 {
    font-size: 2.25rem;
    margin: 0 0 0.5rem;
    color: var(--color-text);
}

.library-description {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin: 0;
}

.library-status-text {
    font-size: 1.125rem;
    color: var(--color-text-light);
    padding: 2rem 0;
}

.library-error-state {
    color: #b45309;
}

.library-signin-prompt,
.library-empty-state {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 2.5rem 2rem;
    background: var(--color-bg-alt);
    border-radius: 0.5rem;
}

.library-signin-prompt p,
.library-empty-state p {
    font-size: 1.125rem;
    color: var(--color-text);
    margin: 0;
}

/* Item cards reuse .book-card / .books-grid from site.css for visual
   consistency with the homepage and related-books partials; only the
   library-specific additions (type/source labels, action row) live here. */

.library-item-type {
    text-transform: capitalize;
}

.library-item-source {
    font-style: italic;
}

.library-item-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0 1rem 1rem;
}

.library-item-download,
.library-item-remove {
    font-size: 0.875rem;
    padding: 0.5rem 0.875rem;
}

.library-item-remove {
    opacity: 0.6;
    cursor: not-allowed;
}

/* auth-btn is defined in auth.css; used here for the sign-in / browse CTAs
   so button styling stays consistent with the rest of the account layer. */

@media (max-width: 768px) {
    .library-header h1 {
        font-size: 1.75rem;
    }

    .library-signin-prompt,
    .library-empty-state {
        padding: 2rem 1.25rem;
    }
}
