/**
 * Mampreneures Forms - Styles Événements
 */

.mpf-events-container {
    width: 100% !important;
}

.mpf-events-filters-card {
    margin-bottom: 20px !important;
}

.mpf-events-filters {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    align-items: center !important;
}

.mpf-filter-group {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.mpf-filter-label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    white-space: nowrap !important;
}

.mpf-filter-search {
    flex: 1 !important;
    min-width: 200px !important;
}

.mpf-search-input-wrapper {
    position: relative !important;
    width: 100% !important;
}

.mpf-search-icon {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    pointer-events: none !important;
}

.mpf-events-search-input {
    width: 100% !important;
    padding: 10px 40px !important;
    font-size: 14px !important;
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
}

.mpf-events-search-input:focus {
    outline: none !important;
    border-color: #4db6ac !important;
}

.mpf-events-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.mpf-search-clear {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.5) !important;
    cursor: pointer !important;
    padding: 4px !important;
}

.mpf-radio-pills {
    display: flex !important;
    gap: 8px !important;
}

.mpf-pill {
    cursor: pointer !important;
}

.mpf-pill input {
    display: none !important;
}

.mpf-pill span {
    display: block !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 20px !important;
    transition: all 0.2s ease !important;
}

.mpf-pill:hover span {
    background-color: rgba(255, 255, 255, 0.15) !important;
}

.mpf-pill.active span,
.mpf-pill input:checked + span {
    background-color: #1C9093 !important;
    border-color: #1C9093 !important;
    color: white !important;
}

.mpf-events-select {
    padding: 10px 35px 10px 15px !important;
    font-size: 14px !important;
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    min-width: 180px !important;
}

.mpf-events-select:focus {
    outline: none !important;
    border-color: #4db6ac !important;
}

.mpf-events-select option {
    background-color: #1d4141 !important;
    color: white !important;
}

.mpf-events-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 20px !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.mpf-events-header .mpf-card-title {
    margin: 0 !important;
}

.mpf-events-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
}

.mpf-event-card {
    display: grid !important;
    grid-template-columns: 180px 1fr auto !important;
    gap: 20px !important;
    padding: 20px !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
}

.mpf-event-card:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.mpf-event-thumbnail {
    position: relative !important;
    width: 180px !important;
    height: 120px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.mpf-event-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.mpf-event-thumbnail-placeholder {
    background: linear-gradient(135deg, rgba(28, 144, 147, 0.3), rgba(28, 93, 95, 0.3)) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: rgba(255, 255, 255, 0.4) !important;
}

.mpf-event-status-badge {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    padding: 4px 12px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    border-radius: 12px 5px 12px 5px !important;
    letter-spacing: 0.5px !important;
}

.mpf-status-upcoming {
    background-color: #008534 !important;
    color: white !important;
}

.mpf-status-past {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.mpf-event-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    min-width: 0 !important;
}

.mpf-event-title {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

.mpf-event-title a {
    color: white !important;
    text-decoration: none !important;
}

.mpf-event-title a:hover {
    color: #4db6ac !important;
}

.mpf-event-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
}

.mpf-event-meta-item {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

.mpf-event-meta-item svg {
    flex-shrink: 0 !important;
    color: #4db6ac !important;
}

.mpf-capacity-badge {
    padding: 3px 10px !important;
    background-color: rgba(28, 144, 147, 0.2) !important;
    border: 1px solid rgba(28, 144, 147, 0.4) !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    color: #4db6ac !important;
}

.mpf-event-excerpt {
    margin: 0 !important;
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    line-height: 1.5 !important;
}

.mpf-event-actions {
    display: flex !important;
    align-items: center !important;
}

.mpf-btn-small {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 10px 18px !important;
    font-size: 13px !important;
}

.mpf-events-empty {
    text-align: center !important;
    padding: 60px 20px !important;
}

.mpf-empty-icon {
    margin-bottom: 20px !important;
    color: rgba(255, 255, 255, 0.3) !important;
}

.mpf-events-empty h4 {
    margin: 0 0 10px !important;
    font-size: 20px !important;
    color: white !important;
}

.mpf-events-empty p {
    margin: 0 !important;
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

.mpf-events-loader {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px;
    color: rgba(255, 255, 255, 0.7);
}

.mpf-events-loader.visible,
.mpf-events-loader[style*="block"] {
    display: flex !important;
}

.mpf-loader-spinner {
    width: 24px !important;
    height: 24px !important;
    border: 3px solid rgba(255, 255, 255, 0.2) !important;
    border-top-color: #4db6ac !important;
    border-radius: 50% !important;
    animation: mpf-spin 0.8s linear infinite !important;
}

@keyframes mpf-spin {
    to { transform: rotate(360deg); }
}

/* PAGINATION */
.mpf-events-pagination {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
    margin-top: 30px !important;
    padding-top: 20px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.mpf-pagination-numbers {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

.mpf-pagination-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 12px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

.mpf-pagination-btn:hover:not([disabled]):not(.active) {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: white !important;
}

.mpf-pagination-btn.active {
    background-color: #1C9093 !important;
    border-color: #1C9093 !important;
    color: white !important;
    cursor: default !important;
    font-weight: 600 !important;
}

.mpf-pagination-btn[disabled] {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.mpf-pagination-prev,
.mpf-pagination-next {
    padding: 0 !important;
    width: 40px !important;
}

.mpf-pagination-dots {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 14px !important;
    padding: 0 6px !important;
}

.mpf-pagination-info {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .mpf-event-card {
        grid-template-columns: 140px 1fr !important;
    }
    .mpf-event-thumbnail {
        width: 140px !important;
        height: 100px !important;
    }
    .mpf-event-actions {
        grid-column: 1 / -1 !important;
        padding-top: 10px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
}

@media (max-width: 768px) {
    .mpf-events-filters {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .mpf-filter-search {
        min-width: 100% !important;
    }
    .mpf-filter-scope {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .mpf-events-select {
        width: 100% !important;
    }
    .mpf-event-card {
        grid-template-columns: 1fr !important;
    }
    .mpf-event-thumbnail {
        width: 100% !important;
        height: 160px !important;
    }
    .mpf-pagination-btn {
        min-width: 36px !important;
        height: 36px !important;
    }
}

@media (max-width: 480px) {
    .mpf-radio-pills {
        flex-wrap: wrap !important;
    }
    .mpf-pill span {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
    .mpf-event-title {
        font-size: 16px !important;
    }
    .mpf-btn-small {
        width: 100% !important;
        justify-content: center !important;
    }
}