/* Single Collection Styles */

article.single-collection {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.collection-header {
    margin-bottom: 3rem;
}

.collection-hero {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.collection-image {
    flex-shrink: 0;
}

.collection-logo {
    width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.no-image-placeholder {
    width: 200px;
    height: 200px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.no-image-placeholder .dashicons {
    font-size: 4rem;
    color: #ccc;
}

.collection-info {
    flex-grow: 1;
}

.collection-title {
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
    color: #333;
    line-height: 1.2;
}

.collection-dates {
    margin-bottom: 1rem;
}

.date-item {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.date-label {
    font-weight: 600;
    color: #666;
    margin-right: 0.5rem;
}

.date-value {
    color: #333;
}

.collection-status {
    margin-bottom: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-en-cours {
    background: #e3f2fd;
    color: #1976d2;
}

.status-terminee {
    background: #e8f5e8;
    color: #388e3c;
}

.status-abandonne {
    background: #ffebee;
    color: #d32f2f;
}

.collection-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.collection-main {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.collection-summary h2,
.collection-books h2 {
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.collection-summary {
    margin-bottom: 3rem;
}

.summary-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

.collection-books {
    margin-top: 2rem;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.book-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.book-cover {
    height: 250px;
    overflow: hidden;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-cover-placeholder {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-cover-placeholder .dashicons {
    font-size: 3rem;
    color: #ccc;
}

.book-info {
    padding: 1rem;
}

.book-title {
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.book-title a {
    color: #333;
    text-decoration: none;
}

.book-title a:hover {
    color: #007cba;
}

.book-number,
.book-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.collection-sidebar {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.collection-meta h3 {
    font-size: 1.3rem;
    margin: 0 0 1rem 0;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.meta-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1rem;
}

.meta-list li:last-child {
    border-bottom: none;
}

.meta-list strong {
    color: #666;
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .collection-hero {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .collection-title {
        font-size: 2rem;
    }
    
    .collection-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .book-cover {
        height: 200px;
    }
}
