/**
 * Circle Sync - Filtered Events Styles
 * Version: 2.1.3
 */

/* ========================================
   Container
   ======================================== */
.circle-events-filtered {
    padding: 0;
}

.circle-events-filtered__title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0 0 30px 0;
    text-align: left;
}

/* ========================================
   Filters
   ======================================== */
.circle-events-filtered__filters {
    margin-bottom: 30px;
}

.circle-events-filtered__filters-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 20px;
    align-items: end;
}

.circle-events-filtered__filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.circle-events-filtered__filter-group label {
    font-size: 18px;
    font-weight: 500;
    color: #171143;
}

.circle-events-filtered__filter-group select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    font-size: 18px;
    border: none;
    border-bottom: 2px solid #9025BF;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239025BF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    transition: border-color 0.2s ease;
}

.circle-events-filtered__filter-group select:hover {
    border-color: #7a1fa3;
}

.circle-events-filtered__filter-group select:focus {
    outline: none;
    border-color: #9025BF;
}

/* Filter Buttons */
.circle-events-filtered__filter-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-filter {
    padding: 12px 35px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: #9025BF;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-filter:hover {
    background-color: #7a1fa3;
}

.btn-filter:active {
    transform: scale(0.98);
}

.btn-reset {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #9025BF;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-reset:hover {
    color: #7a1fa3;
    text-decoration: underline;
}

/* ========================================
   Events List
   ======================================== */
.circle-events-filtered__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Event Card */
.circle-event-filtered__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.circle-event-filtered__box {
    display: flex;
    gap: 25px;
    background-color: #fff;
    border: 2px solid #9025BF;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.5s ease;
}

.circle-event-filtered__box:hover {
    background: #F4E8F9;
    box-shadow: 0px 3px 6px #00000029;
}

/* Virtual Event Card */
.circle-event-filtered__box--virtual {
    border-color: #007491;
}

.circle-event-filtered__box--virtual:hover {
    background: #EEF6FD;
}

.circle-event-filtered__box--virtual .circle-event-filtered__date .event-month,
.circle-event-filtered__box--virtual .circle-event-filtered__date .event-day,
.circle-event-filtered__box--virtual .circle-event-filtered__date .event-year {
    color: #007491;
}

/* Date Column */
.circle-event-filtered__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    text-align: center;
    padding-top: 5px;
}

.circle-event-filtered__date .event-month {
    font-size: 18px;
    font-weight: 500;
    color: #9025BF;
    text-transform: capitalize;
}

.circle-event-filtered__date .event-day {
    font-size: 30px;
    font-weight: 500;
    color: #9025BF;
    line-height: 1;
    margin: 0;
}

.circle-event-filtered__date .event-year {
    font-size: 18px;
    font-weight: 500;
    color: #9025BF;
}

/* Content Column */
.circle-event-filtered__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Tags */
.circle-event-filtered__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.event-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    border-radius: 50px;
    letter-spacing: 0;
    line-height: 1.2em;
}

/* In-Person Tags */
.event-tag--in-person {
    background-color: #9025BF1A;
    color: #9025BF;
}

.event-tag--in-person .event-tag__separator {
    background-color: #9025BF8C;
}

/* Virtual Tags */
.event-tag--virtual {
    background-color: #0074911A;
    color: #007491;
}

.event-tag--virtual .event-tag__separator {
    background-color: #0074918C;
}

/* Tag Separator - Vertical Line */
.event-tag__separator {
    display: inline-block;
    width: 1px;
    height: 18px;
    margin: 0 8px;
    vertical-align: middle;
}

/* Title */
.circle-event-filtered__box .circle-event-filtered__title {
    font-size: 24px;
    font-weight: 500;
    font-style: normal;
    text-transform: none;
    letter-spacing: 0;
    color: #007491;
    margin: 5px 0;
    padding: 0;
    line-height: 1.3;
}

/* Description */
.circle-event-filtered__box .circle-event-filtered__description {
    font-size: 14px;
    font-weight: 400;
    color: #555;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* View Event Link */
.circle-event-filtered__link-text {
    font-size: 14px;
    font-weight: 600;
    color: #007491;
    margin-top: 5px;
}

.circle-event-filtered__link:hover .circle-event-filtered__link-text {
    text-decoration: underline;
}

/* No Events Message */
.circle-events-filtered__no-events {
    text-align: center;
    font-size: 16px;
    color: #666;
    padding: 40px 20px;
}

/* ========================================
   Load More Button
   ======================================== */
.circle-events-filtered__load-more {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.btn-load-more {
    padding: 14px 50px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: #9025BF;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-load-more:hover {
    background-color: #7a1fa3;
}

.btn-load-more:active {
    transform: scale(0.98);
}

.btn-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-load-more.hidden {
    display: none;
}

/* Loading State */
.circle-events-filtered.loading .circle-events-filtered__list {
    opacity: 0.5;
    pointer-events: none;
}

/* ========================================
   Responsive - Tablet
   ======================================== */
@media (max-width: 980px) {
    .circle-events-filtered__filters-row {
        grid-template-columns: 1fr 1fr;
    }

    .circle-events-filtered__filter-buttons {
        grid-column: span 2;
        justify-content: flex-start;
        margin-top: 10px;
    }

    .circle-event-filtered__box .circle-event-filtered__description {
        -webkit-line-clamp: 3;
    }
}

/* ========================================
   Responsive - Mobile
   ======================================== */
@media (max-width: 580px) {
    .circle-events-filtered {
        padding: 0;
    }

    .circle-events-filtered__title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .circle-events-filtered__filters-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .circle-events-filtered__filter-buttons {
        grid-column: span 1;
        flex-direction: row;
        justify-content: flex-start;
        gap: 15px;
        margin-top: 5px;
    }

    .btn-filter {
        padding: 12px 25px;
        width: auto;
    }

    .btn-load-more {
        width: auto;
        padding: 12px 40px;
    }

    /* Event Card Mobile - Grid Layout */
    .circle-event-filtered__box {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto auto auto;
        gap: 10px 15px;
        padding: 20px;
        overflow: hidden;
    }

    .circle-event-filtered__content {
        display: contents;
    }

    .circle-event-filtered__tags {
        grid-column: 1;
        grid-row: 1;
        align-self: start;
        width: fit-content;
        max-width: 100%;
    }

    .event-tag {
        font-size: 12px;
    }

    .circle-event-filtered__title {
        grid-column: 1;
        grid-row: 2;
        font-size: 18px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .circle-event-filtered__date {
        grid-column: 2;
        grid-row: 1 / 3;
        flex-direction: column;
        gap: 0;
        justify-content: flex-start;
        align-items: center;
        align-self: start;
        min-width: auto;
        padding-top: 0;
    }

    .circle-event-filtered__box .circle-event-filtered__description {
        grid-column: 1 / -1;
        grid-row: 3;
        font-size: 14px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        -webkit-line-clamp: 3;
    }

    .circle-event-filtered__link-text {
        grid-column: 1 / -1;
        grid-row: 4;
    }
}
