/* Archive Livre Styles */

.livres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.livre-item .livre-covers {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.livre-item:hover .livre-covers {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.livre-content {
    position: relative;
    padding: 1.5rem;
}

.livre-covers {
    display: flex;
    gap: 1rem;
    margin: 0 auto 1.5rem;
    justify-content: center;
    width: fit-content;
}

.cover-front,
.cover-back {
    flex: 1;
    max-width: 120px;
    position: relative;
}

.livre-cover {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.no-image-placeholder {
    width: 100%;
    height: auto;
    background: #f5f5f5;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
}

.no-image-placeholder .dashicons {
    font-size: 1.5rem;
    color: #ccc;
}

.livre-title {
    font-size: 1rem;
    text-align: center;
    line-height: 28px;
    max-width: 350px;
    margin: 0 auto 0.5rem;
    font-weight: 600;
}

.livre-title a {
    color: #333;
    text-decoration: none;
}

.livre-title a:hover {
    color: #007cba;
}

.livre-variant {
    text-align: center;
    margin-bottom: 0.75rem;
}

.variant-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #fff3cd;
    color: #856404;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.livre-publisher,
.livre-collection {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.livre-publisher a,
.livre-collection a {
    color: #007cba;
    text-decoration: none;
}

.livre-publisher a:hover,
.livre-collection a:hover {
    text-decoration: underline;
}

.livre-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: #666;
}

.meta-item {
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.livre-limited {
    text-align: center;
    margin-bottom: 0.75rem;
}

.limited-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #d4edda;
    color: #155724;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.livre-team {
    margin-bottom: 1rem;
}

.livre-team h4 {
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
    color: #666;
    font-weight: 600;
}

.team-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.team-member {
    font-size: 0.85rem;
    color: #555;
}

.team-member .role {
    font-weight: 500;
    color: #666;
}

.team-member a {
    color: #007cba;
    text-decoration: none;
}

.team-member a:hover {
    text-decoration: underline;
}

.livre-summary {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
}

.livre-isbn {
    margin-bottom: 1rem;
    text-align: center;
    color: #888;
}

.livre-status-icons {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 10;
}

.livre-status-icons .status-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.livre-status-icons .status-icon.loaned {
    background: #f59e0b;
}

.livre-status-icons .status-icon.problem-reported {
    background: #ef4444;
}

.livre-status-icons .status-icon.read {
    background: #059669;
}

.livre-status-icons .status-icon.owned {
    background: #182748;
}

.livre-action-icons {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.cover-front:hover .livre-action-icons {
    opacity: 1;
}

.livre-action-icons .book-action-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    padding: 0;
    font-size: 1rem;
}

.livre-action-icons .book-action-icon:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.livre-action-icons .book-action-icon.report-problem-btn {
    background: rgba(239, 68, 68, 0.8);
}

.livre-action-icons .book-action-icon.report-problem-btn:hover {
    background: rgba(239, 68, 68, 1);
}

.livre-actions {
    text-align: center;
}

.read-more {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.read-more:hover {
    background: #005a87;
    color: white;
}

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.page-title {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    color: #333;
}

.archive-description {
    color: #666;
    font-size: 1.1rem;
}

.no-posts {
    text-align: center;
    padding: 3rem 0;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .livres-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .livre-content {
        padding: 1rem;
    }

    .livre-covers {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .cover-front,
    .cover-back {
        max-width: 100px;
    }

    .livre-cover {
        height: 150px;
    }

    .no-image-placeholder {
        height: 150px;
    }

    .livre-meta {
        justify-content: center;
    }

    .page-title {
        font-size: 1.5rem;
    }
}