/* ==========================================================================
   SYNEXTA RPG COMPANION — SHORTCODE [histoire] : STYLES ADDITIONNELS
   Les cartes standard (.rvc-card) héritent de archive-display.css.
   Ce fichier ne contient que les surcharges spécifiques au CPT Histoire.
   ========================================================================== */

/* Carte non-cliquable (pas d'article associé) */
.rvc-card.rvc-card--no-link { cursor: default; }
.rvc-card.rvc-card--no-link:hover { transform: none; box-shadow: 2px 2px 8px rgba(0,0,0,0.05); }

/* Carte courante (event lié au post/page actuel via around) */
.rvc-card.rvc-histoire-current { border: 2px solid #2271b1; box-shadow: 0 0 0 3px rgba(34,113,177,0.15); }
.rvc-histoire-row.rvc-histoire-current { border: 2px solid #2271b1; box-shadow: 0 0 0 3px rgba(34,113,177,0.15); }

/* ==========================================================================
   VARIANTE CARTOUCHE LIGNE (column="1" uniquement)
   ========================================================================== */

.rvc-histoire-list { display: flex; flex-direction: column; gap: 12px; margin: 2rem 0; }

.rvc-histoire-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    text-decoration: none !important;
    color: inherit !important;
}

.rvc-histoire-row:hover {
    transform: translateX(4px);
    box-shadow: 2px 8px 20px rgba(0,0,0,0.1);
}

.rvc-histoire-row.rvc-card--no-link { cursor: default; }
.rvc-histoire-row.rvc-card--no-link:hover { transform: none; box-shadow: 2px 2px 8px rgba(0,0,0,0.05); }

.rvc-histoire-row-img {
    width: 60px;
    height: 60px;
    min-width: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.rvc-histoire-row-body { flex: 1; min-width: 0; }

.rvc-histoire-row-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 4px;
}

.rvc-histoire-row-date {
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.rvc-histoire-row-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rvc-histoire-row-excerpt {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 480px) {
    .rvc-histoire-row-img { width: 50px; height: 50px; min-width: 50px; }
    .rvc-histoire-row-title { font-size: 0.9rem; }
    .rvc-histoire-row-excerpt { font-size: 0.8rem; -webkit-line-clamp: 2; }
}
