/* ========================================
   MES NEWS - REDESIGN STANDARDISÉ
   Format identique à la liste publique
   ======================================== */

.news-wrapper-member {
    margin: 15px 0;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

/* Header */
.news-header-member {
    background: linear-gradient(135deg, #8FF76F 0%, #7ae854 100%);
    padding: 30px 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 15px rgba(143, 247, 111, 0.3);
}

.news-header-member h2 {
    font-size: 32px;
    font-weight: bold;
    color: white;
    margin: 0 0 8px 0;
}

.news-header-member p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    margin: 0;
}

/* Onglets */
.tabs-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 0 0 20px 0;
    background: white;
    padding: 10px 0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab {
    padding: 10px 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9em;
    font-weight: bold;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1.2;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
}

.tab:hover {
    background: #e9ecef;
    border-color: #667eea;
    color: #667eea;
}

.tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.3);
}

.tab-count {
    font-size: 1.5em;
    font-weight: bold;
}

/* Liste de news */
.news-list {
    display: none;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
    width: 100%;
}

.news-list.active {
    display: flex;
}

.news-list-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Empty state */
.empty-state {
    background: white;
    padding: 60px 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.empty-icon {
    font-size: 5em;
    opacity: 0.2;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #333;
    font-size: 1.3em;
    margin-bottom: 8px;
}

.empty-state p {
    color: #6c757d;
    font-size: 0.9em;
    margin: 0;
}

/* ========================================
   CARTE NEWS - FORMAT STANDARDISÉ
   ======================================== */

.news-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #c8f0c8;
    border-radius: 10px;
    padding: 15px;
    border: 2px solid #b0e0b0;
    transition: all 0.3s;
}

.news-card-inner {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.news-image,
.news-image-placeholder {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.news-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.news-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.news-votes {
    display: flex;
    gap: 12px;
    align-items: center;
}

.news-meta {
    font-size: 0.85em;
    color: #6c757d;
    white-space: nowrap;
    text-align: right;
}

.news-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
}

.news-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* STATUT: EN ATTENTE (grisé) */
.news-card.news-card-waiting {
    background: #e8e8e8;
    border-color: #d0d0d0;
    opacity: 0.7;
}

/* STATUT: REJETÉE (rougeâtre) */
.news-card.news-card-rejected {
    background: #ffebee;
    border-color: #ffcdd2;
}

/* Image */
.news-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.news-image-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5em;
}

/* Wrapper contenu */
.news-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

/* Badge catégorie - DISCRET */
.news-category-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
    width: fit-content;
    margin-bottom: 5px;
}

/* Titre */
a.news-title,
a.news-title:visited {
    font-size: 1.2em;
    font-weight: bold;
    color: #4A8BC2;
    text-decoration: none;
    transition: none;
}

a.news-title:hover {
    color: #4A8BC2;
    text-decoration: none;}

/* Résumé */
.news-excerpt {
    color: #555;
    font-size: 0.9em;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Source */
.news-source {
    font-size: 0.85em;
    color: #8b7355;
    margin: 0;
}

/* Alertes */
.news-waiting-alert {
    padding: 8px;
    background: rgba(255, 193, 7, 0.15);
    border-left: 3px solid #ffc107;
    border-radius: 4px;
    color: #f57f17;
    font-size: 0.9em;
    margin-top: 5px;
}

.news-reject-alert {
    padding: 8px;
    background: rgba(244, 67, 54, 0.15);
    border-left: 3px solid #f44336;
    border-radius: 4px;
    color: #c62828;
    font-size: 0.9em;
    margin-top: 5px;
}

.news-scheduled-alert {
    padding: 8px;
    background: rgba(33, 150, 243, 0.15);
    border-left: 3px solid #2196f3;
    border-radius: 4px;
    color: #1565c0;
    font-size: 0.9em;
    margin-top: 5px;
}

/* Footer: votes + meta */

.vote-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9em;
    padding: 0;
    color: #6c757d;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.vote-btn svg {
    width: 16px;
    height: 16px;
}

.vote-btn:hover {
    color: #667eea;
}

.news-author {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.news-author:hover {
    text-decoration: underline;
    color: #764ba2;
}

/* ========================================
   BOUTONS D'ACTION
   ======================================== */

.news-actions {
    grid-column: 1 / 3;
    grid-row: 3;
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.action-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    min-width: 100px;
}

/* Styles par type */
.action-btn.edit {
    background-color: #f0f0f0;
    color: #333;
}

.action-btn.edit:hover {
    background-color: #667eea;
    color: white;
}

.action-btn.delete {
    background-color: #ffcccc;
    color: #c00;
}

.action-btn.delete:hover {
    background-color: #ff9999;
    color: white;
}

.action-btn.plan {
    background-color: #fff9e0;
    color: #886600;
}

.action-btn.plan:hover {
    background-color: #ffe0b3;
    color: #664400;
}

.action-btn.unplan {
    background-color: #ffe0b3;
    color: #ff9800;
}

.action-btn.unplan:hover {
    background-color: #ffb74d;
    color: white;
}

.action-btn.validate {
    background-color: #e0ffe0;
    color: #008000;
}

.action-btn.validate:hover {
    background-color: #b3ffb3;
    color: #005500;
}

.action-btn.reject {
    background-color: #ffe0e0;
    color: #c00;
}

.action-btn.reject:hover {
    background-color: #ffb3b3;
    color: #800;
}

.action-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #ccc !important;
    color: #666 !important;
}

.action-btn.disabled:hover {
    background-color: #ccc !important;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .tabs-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-card {
        flex-direction: column;
    }
    
    .news-image,
    .news-image-placeholder {
        width: 100%;
        height: 150px;
    }
    
    .news-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .news-meta {
        margin-left: 0;
    }
    
    .news-actions {
        width: 100%;
        justify-content: center;
    }
    
    .action-btn {
        flex: 1 1 48%;
    }
}

@media (max-width: 480px) {
    .news-card {
        padding: 10px;
        gap: 10px;
    }
    
    .news-image,
    .news-image-placeholder {
        width: 80px;
        height: 80px;
    }
    
    .news-title {
        font-size: 1em;
    }
    
    .action-btn {
        flex: 1 1 100%;
        font-size: 0.8em;
        padding: 6px 10px;
    }
    
    .tabs-container {
        grid-template-columns: 1fr 1fr;
    }
}
