/**
 * Style amélioré pour la liste des reels dans l'admin
 * Version: 1.0
 */

/* ===== EN-TÊTE DES COLONNES ===== */
.wprg-column-label {
    font-weight: 600;
    margin-left: 4px;
}

/* Colonnes spécifiques */
.column-wprg_thumbnail {
    width: 90px !important;
    text-align: center !important;
}

.column-wprg_likes,
.column-wprg_views {
    width: 100px !important;
    text-align: center !important;
}

.column-wprg_type {
    width: 120px !important;
}

.column-wprg_gallery {
    width: 180px !important;
}

/* Icônes dans l'en-tête */
th.column-wprg_thumbnail .dashicons,
th.column-wprg_type .dashicons,
th.column-wprg_gallery .dashicons,
th.column-wprg_likes .dashicons,
th.column-wprg_views .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 2px;
}

/* ===== MINIATURES ===== */
.wprg-admin-thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px auto;
    transition: all 0.2s ease;
    border: 2px solid #fff;
    position: relative;
}

.wprg-admin-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    border-color: #e1306c;
}

.wprg-admin-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder quand pas d'image */
.wprg-admin-thumbnail-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 24px;
}

.wprg-admin-thumbnail-placeholder .dashicons {
    width: 40px;
    height: 40px;
    font-size: 40px;
    color: rgba(255, 255, 255, 0.9);
}

/* Miniature YouTube avec badge */
.wprg-admin-thumbnail-youtube {
    position: relative;
}

.wprg-thumbnail-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ff0000;
    color: white;
    font-size: 9px;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 4px;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ===== BADGES DE TYPE ===== */
.wprg-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}

.wprg-type-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.wprg-type-youtube {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.wprg-type-upload {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* ===== TAGS DE GALERIE ===== */
.wprg-gallery-tag {
    display: inline-block;
    background: #f3f4f5;
    color: #1d2327;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 12px;
    text-decoration: none;
    margin: 2px 2px;
    border: 1px solid #dcdcde;
    transition: all 0.2s ease;
}

.wprg-gallery-tag:hover {
    background: #e1306c;
    color: white;
    border-color: #e1306c;
}

.wprg-no-gallery {
    color: #8c8f94;
    font-style: italic;
    font-size: 12px;
}

/* ===== BADGES DE LIKES ===== */
.wprg-likes-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fce4ec;
    color: #c2185b;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #f8bbd0;
    transition: all 0.2s ease;
}

.wprg-likes-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #e1306c;
}

.wprg-likes-zero {
    background: #f5f5f5;
    color: #9e9e9e;
    border-color: #e0e0e0;
}

.wprg-likes-zero .dashicons {
    color: #bdbdbd;
}

/* ===== BADGES DE VUES ===== */
.wprg-views-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e3f2fd;
    color: #0d47a1;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #bbdefb;
}

.wprg-views-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.wprg-views-zero {
    background: #f5f5f5;
    color: #9e9e9e;
    border-color: #e0e0e0;
}

/* ===== AMÉLIORATIONS GÉNÉRALES DU TABLEAU ===== */
.wp-list-table .column-title strong {
    font-size: 14px;
    color: #1d2327;
}

.wp-list-table .row-actions {
    margin-top: 4px;
    font-size: 12px;
}

/* Alignement vertical */
.wp-list-table td {
    vertical-align: middle !important;
    padding: 12px 10px !important;
}

/* Surbrillance au survol */
.wp-list-table tbody tr:hover {
    background-color: #f9f9f9;
}

.wp-list-table tbody tr:hover .wprg-admin-thumbnail {
    box-shadow: 0 6px 12px rgba(225, 48, 108, 0.2);
}

/* Responsive */
@media screen and (max-width: 782px) {
    .column-wprg_thumbnail,
    .column-wprg_type,
    .column-wprg_gallery,
    .column-wprg_likes,
    .column-wprg_views {
        display: none !important;
    }
    
    .wprg-admin-thumbnail {
        width: 50px;
        height: 50px;
    }
}