/* ==========================================================================
   EventX — Calendar Filter Widget
   ========================================================================== */

.eventx-cal-filter {
    display: block;
    width: 320px;
    max-width: 100%;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    user-select: none;
    box-sizing: border-box;
}

/* Header: prev / month+year / next */
.ecf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.ecf-nav {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    font-size: 16px;
    color: #888;
    line-height: 1;
    border-radius: 4px;
    transition: color .15s ease;
}

.ecf-nav:hover { color: #222; }

.ecf-title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    letter-spacing: .2px;
}

/* Grid */
.ecf-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

/* Weekday headers */
.ecf-weekday {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #aaa;
    padding: 4px 0 8px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Day cells */
.ecf-day {
    position: relative;
    text-align: center;
    padding: 7px 2px;
    font-size: 13px;
    color: #555;
    border-radius: 6px;
    cursor: default;
    transition: background .15s ease, color .15s ease;
}

.ecf-day--empty { /* padding days */ }

.ecf-day--has-event {
    color: #111;
    font-weight: 600;
    cursor: pointer;
}

.ecf-day--has-event::after {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #e4002b;
    margin: 2px auto 0;
}

.ecf-day--has-event:hover {
    background: rgba(228, 0, 43, .08);
    color: #e4002b;
}

.ecf-day--today {
    background: #f5f5f5;
    color: #111;
    font-weight: 700;
}

.ecf-day--selected {
    background: #e4002b !important;
    color: #fff !important;
    font-weight: 700;
}

.ecf-day--selected::after {
    background: rgba(255,255,255,.6) !important;
}

/* Active filter bar */
.ecf-active-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 14px;
    padding: 8px 12px;
    background: rgba(228, 0, 43, .07);
    border-radius: 6px;
    font-size: 13px;
    color: #e4002b;
    font-weight: 600;
}

.ecf-clear-filter {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #e4002b;
    padding: 0 2px;
    font-weight: 400;
}
