/* Styles partagés pour les aperçus - applique le principe DRY */

/* Container des aperçus */
.preview-container {
    max-height: 600px;
    overflow-y: auto;
}

/* Item d'aperçu */
.preview-item {
    border-bottom: 1px solid #dee2e6;
    padding: 15px 0;
}

.preview-item:last-child {
    border-bottom: none;
}

/* Images des aperçus */
.preview-image {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.preview-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.preview-image-small {
    max-width: 100px !important;
    max-height: 75px !important;
    object-fit: cover;
    border-radius: 4px;
}

.preview-no-image {
    width: 80px;
    height: 60px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 24px;
    border-radius: 4px;
}

/* Contenu des aperçus */
.preview-title {
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 5px;
}

.preview-description {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.preview-date {
    color: #999;
    font-size: 12px;
}

.preview-media-info {
    margin-top: 5px;
}

/* Styles RSS spécifiques (compatibilité) */
.rss-item {
    border-bottom: 1px solid #dee2e6;
    padding: 15px 0;
}

.rss-item:last-child {
    border-bottom: none;
}

.rss-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.rss-content {
    flex: 1;
}

.rss-title {
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 5px;
}

.rss-description {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 1366px) {
    .preview-container {
        max-height: 500px;
    }
    
    .preview-container table {
        font-size: 0.875rem;
    }
    
    .preview-image,
    .rss-thumbnail {
        width: 60px !important;
        height: 45px !important;
    }
}

@media (max-width: 768px) {
    .preview-container {
        max-height: 400px;
    }
    
    .preview-item,
    .rss-item {
        padding: 10px 0;
    }
    
    .preview-description,
    .rss-description {
        font-size: 13px;
    }
}

/* Scrollbar personnalisée */
.preview-container::-webkit-scrollbar {
    width: 8px;
}

.preview-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.preview-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.preview-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}
