/* HelloAsso Events - Style CSS */

.helloasso-events-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.helloasso-event {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.helloasso-event:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.helloasso-event.sold-out {
    opacity: 0.7;
    background: #f5f5f5;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
    gap: 10px;
}

.event-title {
    margin: 0;
    font-size: 1.3em;
    color: #333;
    flex: 1;
}

.event-state {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
}

.state-public {
    background: #4CAF50;
    color: white;
}

.state-draft {
    background: #FFC107;
    color: #333;
}

.state-private {
    background: #2196F3;
    color: white;
}

.event-info {
    margin: 15px 0;
}

.event-date {
    color: #666;
    margin: 10px 0;
}

.event-tickets {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.event-tickets p {
    margin: 8px 0;
}

.tickets-count {
    font-size: 1.2em;
    color: #2196F3;
    font-weight: bold;
}

.tickets-remaining {
    color: #4CAF50;
    font-weight: 600;
}

.sold-out-badge {
    display: inline-block;
    background: #f44336;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
    margin: 10px 0;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #2196F3 100%);
    transition: width 0.3s ease;
}

.helloasso-event.sold-out .progress-fill {
    background: #f44336;
}

.event-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #2196F3;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.event-link:hover {
    background: #1976D2;
    color: white;
}

.helloasso-event.sold-out .event-link {
    background: #999;
}

.helloasso-event.sold-out .event-link:hover {
    background: #777;
}

.helloasso-no-events,
.helloasso-error {
    padding: 20px;
    text-align: center;
    background: #f5f5f5;
    border-radius: 8px;
    color: #666;
}

.helloasso-error {
    background: #ffebee;
    color: #c62828;
}

/* Responsive */
@media (max-width: 768px) {
    .helloasso-events-container {
        grid-template-columns: 1fr;
    }
    
    .event-header {
        flex-direction: column;
    }
    
    .event-state {
        align-self: flex-start;
    }
}