/* ===================================
   L2D Events Manager - Styles CSS
   =================================== */

/* Container général de la liste d'événements */
.l2d-events-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 30px 0;
}

/* Carte d'événement individuel */
.l2d-event-item {
    display: flex;
    gap: 25px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 25px;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.l2d-event-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Miniature de l'événement */
.l2d-event-thumbnail {
    flex-shrink: 0;
    width: 250px;
}

.l2d-event-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

/* Contenu de l'événement */
.l2d-event-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Titre de l'événement */
.l2d-event-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.l2d-event-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.l2d-event-title a:hover {
    color: #3498db;
}

/* Métadonnées (date, lieu) */
.l2d-event-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #555;
    font-size: 15px;
}

.l2d-event-date,
.l2d-event-location {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.l2d-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

/* Description courte */
.l2d-event-excerpt {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

.l2d-event-excerpt p {
    margin: 0 0 10px 0;
}

.l2d-event-excerpt p:last-child {
    margin-bottom: 0;
}

/* Lien "Voir les détails" */
.l2d-event-link {
    display: inline-block;
    color: #3498db;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
    transition: color 0.3s ease;
}

.l2d-event-link:hover {
    color: #2980b9;
}

/* Message si aucun événement */
.l2d-events-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
}

/* Page single event */
.l2d-single-event-header {
    margin-bottom: 30px;
}

.l2d-single-event-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.l2d-single-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 30px;
}

.l2d-single-event-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.l2d-single-event-meta-item .l2d-icon {
    font-size: 24px;
}

.l2d-single-event-meta-item strong {
    color: #2c3e50;
    margin-right: 5px;
}

.l2d-single-event-featured-image {
    margin-bottom: 30px;
}

.l2d-single-event-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.l2d-single-event-content {
    line-height: 1.8;
    font-size: 16px;
}

.l2d-single-event-back-link {
    display: inline-block;
    margin-top: 40px;
    padding: 12px 24px;
    background: #3498db;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.l2d-single-event-back-link:hover {
    background: #2980b9;
    color: #ffffff;
}

/* ===================================
   Responsive Design
   =================================== */

@media screen and (max-width: 768px) {
    /* Liste des événements en mode mobile */
    .l2d-event-item {
        flex-direction: column;
        gap: 20px;
    }
    
    .l2d-event-thumbnail {
        width: 100%;
    }
    
    .l2d-event-title {
        font-size: 20px;
    }
    
    .l2d-event-meta {
        font-size: 14px;
    }
    
    /* Single event en mode mobile */
    .l2d-single-event-title {
        font-size: 28px;
    }
    
    .l2d-single-event-meta {
        flex-direction: column;
        gap: 15px;
    }
}

/* ===================================
   Variantes de liste
   =================================== */

/* Liste courte : style compact */
.l2d-events-list-short .l2d-event-item {
    padding: 20px;
}

.l2d-events-list-short .l2d-event-title {
    font-size: 20px;
}

.l2d-events-list-short .l2d-event-thumbnail {
    width: 180px;
}

/* Liste des événements passés : style grisé */
.l2d-events-list-past .l2d-event-item {
    opacity: 0.8;
    background: #fafafa;
}

.l2d-events-list-past .l2d-event-title a {
    color: #7f8c8d;
}

.l2d-events-list-past .l2d-icon {
    opacity: 0.6;
}

/* ===================================
   Shortcode Single Event
   =================================== */

.l2d-single-event-shortcode {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
}

.l2d-single-event-title-shortcode {
    font-size: 32px;
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.l2d-event-badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.l2d-event-badge-upcoming {
    background: #27ae60;
    color: #ffffff;
}

.l2d-event-badge-past {
    background: #e74c3c;
    color: #ffffff;
}

.l2d-single-event-meta-shortcode {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 25px;
}

.l2d-single-event-content-shortcode {
    line-height: 1.8;
    font-size: 16px;
    margin-top: 25px;
}

.l2d-single-event-link-wrapper {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.l2d-single-event-link-full {
    display: inline-block;
    color: #3498db;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.l2d-single-event-link-full:hover {
    color: #2980b9;
}

.l2d-events-error {
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    color: #856404;
    margin: 20px 0;
}

/* ===================================
   Carte Google Maps
   =================================== */

.l2d-event-map {
    margin: 40px 0;
}

.l2d-event-map h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 700;
}

.l2d-event-map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.l2d-map-fallback {
    text-align: center;
    margin-top: 10px;
}

.l2d-map-fallback a {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid #3498db;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.l2d-map-fallback a:hover {
    background: #3498db;
    color: #ffffff;
}

/* ===================================
   Titres H1 et H2 pour SEO
   =================================== */

.l2d-single-event-title-shortcode {
    font-size: 32px;
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-weight: 700;
}

.l2d-single-event-content-shortcode h2 {
    font-size: 24px;
    margin: 30px 0 20px 0;
    color: #2c3e50;
    font-weight: 700;
}

.l2d-single-event-content h2 {
    font-size: 24px;
    margin: 30px 0 20px 0;
    color: #2c3e50;
    font-weight: 700;
}

/* ===================================
   Fil d'ariane (Breadcrumb)
   =================================== */

.l2d-breadcrumb {
    margin: 0 0 30px 0;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 6px;
}

.l2d-breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.l2d-breadcrumb-item {
    display: inline;
    font-size: 14px;
}

.l2d-breadcrumb-item a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.l2d-breadcrumb-item a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.l2d-breadcrumb-current span {
    color: #555;
    font-weight: 600;
}

.l2d-breadcrumb-separator {
    color: #999;
    font-size: 14px;
    user-select: none;
}

/* ===================================
   Badges de statut événements
   =================================== */

.l2d-event-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.l2d-event-status-badge-inline {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.l2d-status-upcoming {
    background: #27ae60;
    color: #ffffff;
}

.l2d-status-ongoing {
    background: #f39c12;
    color: #ffffff;
}

.l2d-status-finished {
    background: #95a5a6;
    color: #ffffff;
}

.l2d-event-thumbnail {
    position: relative;
}

/* Style spécial pour événements terminés */
.l2d-event-status-finished .l2d-event-item {
    opacity: 0.85;
}

.l2d-event-status-finished .l2d-event-title a {
    color: #7f8c8d;
}
