/* Frontend Styles pour Bookwhen Events */

.bookwhen-events-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.bookwhen-loading {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.bookwhen-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.bookwhen-error {
    background: #fee;
    color: #c33;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #c33;
    margin: 20px 0;
}

.bookwhen-filters {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.bookwhen-filters-title {
    color: #333;
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: 600;
}

.bookwhen-tags-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bookwhen-tag-button {
    background: #f0f0f0;
    color: #666;
    border: 2px solid transparent;
    padding: 8px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
    font-weight: 500;
}

.bookwhen-tag-button:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.bookwhen-tag-button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.bookwhen-results-count {
    color: #667eea;
    font-weight: 600;
    margin-top: 15px;
    font-size: 1.1em;
}

.bookwhen-events-grid {
    display: grid;
    gap: 25px;
    margin-top: 30px;
}

/* Colonnes dynamiques */
.bookwhen-events-grid.columns-1 {
    grid-template-columns: 1fr;
}

.bookwhen-events-grid.columns-2 {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.bookwhen-events-grid.columns-3 {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.bookwhen-events-grid.columns-4 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.bookwhen-event-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bookwhen-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.bookwhen-event-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bookwhen-event-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    color: white;
}

.bookwhen-event-content {
    padding: 25px;
}

.bookwhen-event-title {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.bookwhen-event-date {
    color: #667eea;
    font-size: 1em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bookwhen-event-details {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    max-height: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bookwhen-event-meta {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.bookwhen-event-spaces {
    color: #27ae60;
    font-weight: 600;
}

.bookwhen-event-spaces.limited {
    color: #e67e22;
}

.bookwhen-event-spaces.full {
    color: #e74c3c;
}

.bookwhen-event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.bookwhen-event-tag {
    background: #f0f0f0;
    color: #666;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
}

.bookwhen-event-link {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.bookwhen-event-link:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

.bookwhen-no-events {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    color: #666;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .bookwhen-events-grid {
        grid-template-columns: 1fr !important;
    }
    
    .bookwhen-event-image {
        height: 200px;
    }
    
    .bookwhen-event-content {
        padding: 20px;
    }
    
    .bookwhen-filters {
        padding: 20px;
    }
}

/* Animation d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bookwhen-event-card {
    animation: fadeInUp 0.5s ease;
}
