/**
 * Styles pour le plugin Card
 */

/* === STYLES POUR LA PAGE SINGLE CARD === */

/* Main content avec padding-top */
.card-single-container {
    padding: 60px 0 20px 0;
}

.card-single-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}
.authorsocial img {
    width: 40px;
    height: auto;
    transition-duration: 0.5s;
    border-radius: 50%;
    border: 1px solid #000000;
}
/* Titre principal h1 tout en haut */
.card-title {
text-align: center;
    font-size: 1.5em;
    font-weight: 700;
    color: #e1671b;
    margin-top: 2rem;
}

/* Sous-titre p centré */
.card-subtitle {
    text-align: center;
    font-size: 16px;
    line-height: 20.8px;
    margin-bottom: 2rem;
    color: #666;
    font-weight: 300;
}

/* Card principale */
.card-main {
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px;
    position: relative;
    padding: 10px 30px;
    margin-bottom: 20x;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
h2{
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.card-content p{
    line-height: 1.4em;
}
/* Confidences de dirigeants h2 tout en haut centré */
.card-confidences-dirigeants {
    color: white;
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

/* Numéro d'épisode centré */
.card-episode-number {
    color: white !important;
    font-size: 1em !important;
    font-weight: 300 !important;
    text-align: center !important;
    margin-top: 0px !important;
    flex-shrink: 0;
}

/* Conteneur pour la confidence et son origine */
.card-confidence-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin: 20px 0;
}

/* La confidence centrée (contenu principal) */
.card-confidence {
    color: white;
    font-size: 2em;
    font-weight: 500;
    text-align: left !important;
    margin: 0 0 5px 0;
    max-width: 100%;
    line-height: 1.4;
    
}

/* Origine de la confidence sous la confidence */
.card-origin {
    color: white;
    font-size: 0.8em;
    text-align: left !important;
    margin-top: 10px;
    margin-bottom: 0;
    
    flex-shrink: 0;
}

/* Logo du site en bas centré */
.card-logo {
    text-align: center;
    margin-bottom: 0px;
    flex-shrink: 0;
}

.card-logo .site-name {
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    
}

/* Contenu de la card */
.card-content {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.card-meta-fields {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.card-field {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-field:last-child {
    margin-bottom: 0;
}

.card-field strong {
    color: #333;
    min-width: 150px;
}

.card-field span {
    color: #666;
    flex: 1;
}

/* Tags/Hashtags du post */
.card-tags {
    margin: 1.5rem 0 2rem 0;
    text-align: left;
}

.card-tag {
    color: #000000;
    font-weight: 500;
    font-size: 1.1em;
    text-decoration: none;
    line-height: 1.4em;
    padding-left: 1.2rem;
    transition-duration: 0.5s;
}

.card-tag:hover {
    color: var(--orange);
}

/* Phrase de bas de page */
.card-bottom-phrase {
    text-align: center;
    color: var(--orange);
    margin-bottom: 2rem;
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1.4;
}

/* === STYLES POUR LES CARDS RECOMMANDÉES === */

.recommended-cards-section {
    margin-top: 3rem;
    padding: 2rem 0;
    background: #f4efe7;
    width: 100%;
    max-width: none; /* Permet d'utiliser toute la largeur du container du site */
}



.recommended-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes égales sur desktop */
    gap: 20px;
    margin-bottom: 2rem;
    max-width: 1200px; /* Largeur max du container */
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.recommended-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recommended-card:hover {
    transform: translateY(-5px);
}

.recommended-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Card recommandée - identique à la card principale mais plus petite */
.recommended-card-main {
    width: 100%;
    height: 200px; /* Plus petite que la card principale (350px) */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px; /* Plus petit border-radius */
    position: relative;
    padding: 8px 20px; /* Padding réduit proportionnellement */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Confidences de dirigeants h2 tout en haut centré - version petite */
.recommended-card-confidences-dirigeants {
    color: white;
    font-size: 0.7em; /* Plus petit que la version principale (1.1em) */
    font-weight: 600;
    text-align: center;
    margin-top: 5px;
    margin-bottom: 5px;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

/* Numéro d'épisode centré - version petite */
.recommended-card-episode {
    color: white !important;
    font-size: 0.6em !important; /* Plus petit que la version principale (1em) */
    font-weight: 300 !important;
    text-align: center !important;
    margin-top: 0px !important;
    flex-shrink: 0;
}

/* Conteneur pour la confidence et son origine - version petite */
.recommended-card-confidence-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin: 10px 0;
}

/* La confidence centrée - version petite */
.recommended-card-confidence {
    color: white;
    font-size: 1em; /* Plus petit que la version principale (2em) */
    font-weight: 500;
    text-align: left !important;
    margin: 0 0 3px 0;
    max-width: 100%;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Origine de la confidence sous la confidence - version petite */
.recommended-card-origin {
    color: white;
    font-size: 0.5em; /* Plus petit que la version principale (0.8em) */
    text-align: left !important;
    margin-top: 5px;
    margin-bottom: 0;
    
    flex-shrink: 0;
}

/* Logo du site en bas centré - version petite */
.recommended-card-logo {
    text-align: center;
    margin-bottom: 5px;
    flex-shrink: 0;
}

.recommended-card-logo .site-name {
    color: white;
    font-size: 0.7em; /* Plus petit que la version principale (1.2em) */
    font-weight: bold;
    
}

/* === STYLES POUR LE SHORTCODE === */

.cards-shortcode-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.shortcode-card-item {
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 20px;
}

.shortcode-card-item:hover {
    transform: translateY(-5px);
}

.shortcode-card-item:last-child {
    margin-bottom: 0;
}

.shortcode-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}



/* === STYLES ADMIN === */

.recommended-card-selector {
    background: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.recommended-card-selector label {
    font-weight: bold;
    color: #333;
    display: block;
}

.recommended-card-selector select {
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 5px;
}

#recommended-cards-container p {
    font-size: 13px;
    color: #666;
    margin-top: 15px;
}

/* === RESPONSIVE === */

/* Tablettes et écrans moyens */
@media (max-width: 1024px) {
    .recommended-cards-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 colonnes sur tablette large */
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .card-single-wrapper {
        padding: 0 15px;
    }
    
    .card-title {
        font-size: 2em;
    }
    
    .card-subtitle {
        font-size: 1.1em;
    }
    
    .card-main {
        height: 280px;
        padding: 10px 20px;
        border-radius: 10px;
    }
    
    .card-confidences-dirigeants {
        font-size: 1em;
        margin-top: 8px;
        margin-bottom: 8px;
    }
    
    .card-episode-number {
        font-size: 1.4em;
    }
    
    .card-confidence {
       
       
        max-width: 85%;
    }
    
    .card-origin {
        left: 20px;
        bottom: 50px;
        font-size: 0.8em;
    }
    
    .recommended-cards-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablette */
        gap: 15px;
        padding: 0 15px;
    }
    
    .recommended-card-main {
        height: 160px; /* Adaptation pour tablette */
        padding: 6px 15px;
        border-radius: 8px;
    }
    
    .recommended-card-confidences-dirigeants {
        font-size: 0.6em;
        margin-top: 3px;
        margin-bottom: 3px;
    }
    
    .recommended-card-episode {
        font-size: 0.9em;
    }
    
    .recommended-card-confidence {
        font-size: 0.7em;
        margin: 8px auto;
        max-width: 85%;
    }
    
    .recommended-card-origin {
        left: 15px;
        bottom: 30px;
        font-size: 0.5em;
    }
    
    /* Taille du logo définie directement dans le HTML */
    
    .recommended-card-logo .site-name {
        font-size: 0.6em;
    }
    
    .cards-shortcode-container {
        padding: 0 15px;
    }
    
    .card-field {
        flex-direction: column;
        gap: 0.2rem;
    }
    
    .card-field strong {
        min-width: auto;
    }
}

@media (max-width: 700px) {
    .card-main {
        height: auto;
        padding: 8px 15px;
    }
    
    .card-confidences-dirigeants {
        font-size: 0.9em;
        margin-top: 5px;
        margin-bottom: 5px;
    }
    
    .card-episode-number {
        font-size: 1.2em;
        margin-top: 10px;
    }
    
    .card-confidence {
        font-size: 1.4em;
        
        max-width: 90%;
    }
    
    .card-origin {
        font-size: 0.7em;
        bottom: 40px;
        left: 15px;
    }
    
    .recommended-cards-grid {
        grid-template-columns: 1fr; /* 1 colonne sur mobile */
        padding: 0 10px;
    }
    
    .recommended-card-main {
        height: 180px; /* Plus grand sur mobile pour une seule colonne */
        padding: 8px 15px;
        border-radius: 8px;
    }
    
    .recommended-card-confidences-dirigeants {
        font-size: 0.7em;
        margin-top: 4px;
        margin-bottom: 4px;
    }
    
    .recommended-card-episode {
        font-size: 1em;
        margin-top: 5px;
    }
    
    .recommended-card-confidence {
        font-size: 0.8em;
        margin: 8px auto;
        max-width: 90%;
    }
    
    .recommended-card-origin {
        font-size: 0.6em;
        bottom: 25px;
        left: 15px;
    }
    
    /* Taille du logo définie directement dans le HTML */
    
    .recommended-card-logo .site-name {
        font-size: 0.7em;
    }
    
    .cards-shortcode-container {
        padding: 0 10px;
    }
}