/* ==================================
   Events Calendar Pro - Figma Design
   ================================== */

.ecp-wrapper {
    font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
    color: var(--aut-dark, #404040);
}

.width-container {
    max-width: 1260px;
    margin: 0 auto;
}

/* Header */
.ecp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 37px;
    gap: 24px;
}

.ecp-title {
    font-family: inherit;
    font-size: 35px;
    font-weight: 700;
    color: var(--aut-dark, #404040);
    margin: 0;
    letter-spacing: -1px;
    line-height: 1.2;
    text-shadow: none;
}

/* Category Filters */
.ecp-filters {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ecp-filter-btn {
    padding: 8px 24px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--aut-dark, #404040);
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.ecp-filter-btn:hover {
    opacity: 1;
}

.ecp-filter-btn.active {
    opacity: 1;
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 9px 25px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Layout */
.ecp-layout {
    display: flex;
    gap: 29px;
    align-items: flex-start;
    background: transparent;
    border-radius: 0;
    padding: 0;
    backdrop-filter: none;
    border: none;
}

.ecp-calendar-wrap {
    flex: 0 0 585px;
    max-width: 100%;
}

.ecp-events-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 416px;
    overflow-y: auto;
    min-width: 0;
    padding-right: 4px;
}

.ecp-events-wrap {
    scrollbar-width: thin;
    scrollbar-color: rgba(64, 64, 64, 0.25) transparent;
}

.ecp-events-wrap::-webkit-scrollbar {
    width: 6px;
}

.ecp-events-wrap::-webkit-scrollbar-track {
    background: transparent;
}

.ecp-events-wrap::-webkit-scrollbar-thumb {
    background: rgba(64, 64, 64, 0.2);
    border-radius: 10px;
}

/* Calendar Card */
.ecp-calendar {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 21px;
    box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(150px);
    opacity: 0.95;
}

/* Navigation */
.ecp-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 16px;
}

.ecp-month-display {
    font-size: 18px;
    font-weight: 600;
    color: var(--aut-dark, #404040);
    letter-spacing: 0;
    min-width: auto;
    text-align: center;
    text-transform: capitalize;
}

.ecp-nav-btn {
    width: 40px;
    height: 40px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    font-size: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
    color: var(--aut-dark, #404040);
    flex-shrink: 0;
}

.ecp-nav-btn:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
    transform: none;
}

.ecp-nav-btn svg {
    width: 16px;
    height: 16px;
    display: block;
}

/* Weekdays */
.ecp-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    margin-bottom: 25px;
}

.ecp-weekdays span {
    text-align: center;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0;
    color: var(--aut-dark, #404040);
}

/* Days */
.ecp-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px 0;
}

.ecp-day,
.ecp-empty {
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--aut-dark, #404040);
    border-radius: 14px;
    position: relative;
    transition: background 0.2s ease;
    width: auto;
    margin: 0;
    aspect-ratio: auto;
}

.ecp-day-num {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    line-height: 1;
    z-index: 1;
}

.ecp-day-num:has(.ecp-day-dot) {
    align-items: flex-start;
    padding-top: 7px;
}

.ecp-day {
    cursor: pointer;
}

.ecp-day:hover:not(.active) {
    background: rgba(0, 0, 0, 0.04);
}

.ecp-day.active .ecp-day-num {
    color: #fff;
    font-weight: 600;
}

.ecp-day.active .ecp-day-num::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--aut-red, #b50213);
    z-index: -1;
}

.ecp-day.today:not(.active) .ecp-day-num {
    background: transparent;
    border: none;
    color: var(--aut-dark, #404040);
}

.ecp-empty,
.ecp-day.muted {
    opacity: 0.3;
    cursor: default;
}

.ecp-empty:hover,
.ecp-day.muted:hover {
    background: transparent;
}

/* Day Dots — inside the number circle */
.ecp-day-dots {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2px;
    z-index: 2;
    line-height: 0;
}

.ecp-day-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #3167da;
}

.ecp-day.active .ecp-day-dot {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

/* Events List */
.ecp-event {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(64, 64, 64, 0.1);
    border-radius: 10px;
    padding: 20px;
    color: var(--aut-dark, #404040);
    backdrop-filter: none;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.ecp-event:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-color: rgba(64, 64, 64, 0.15);
}

.ecp-event-icon {
    width: 43px;
    height: 43px;
    background: var(--aut-blue, #0f548d);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow:
        0 3.583px 2.688px rgba(0, 0, 0, 0.1),
        0 1.792px 1.792px rgba(0, 0, 0, 0.1);
}

.ecp-event-icon img {
    width: 18px;
    height: 18px;
    border-radius: 0;
    object-fit: contain;
}

.ecp-event-icon svg,
.ecp-event-icon > div {
    width: 18px;
    height: 18px;
}

.ecp-event-details {
    flex: 1;
    min-width: 0;
}

.ecp-event-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    margin-bottom: 0;
    color: var(--aut-dark, #404040);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ecp-event-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 6px;
    flex-wrap: wrap;
}

.ecp-event-date {
    font-size: 14px;
    font-weight: 600;
    color: #62748e;
    line-height: 21px;
    white-space: nowrap;
}

.ecp-event-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.25px;
    text-transform: uppercase;
    line-height: 15px;
    white-space: nowrap;
}

.ecp-event-chevron {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--aut-dark, #404040);
    opacity: 0.5;
}

.ecp-event:hover .ecp-event-chevron {
    opacity: 0.8;
}

/* No Events State */
.ecp-no-events {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(64, 64, 64, 0.1);
    border-radius: 10px;
    padding: 60px 24px;
    color: var(--aut-dark, #404040);
    backdrop-filter: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ecp-no-events-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.ecp-no-events-icon {
    margin-bottom: 16px;
    opacity: 0.4;
}

.ecp-no-events-icon svg {
    width: 48px;
    height: 48px;
}

.ecp-no-events-text {
    font-size: 15px;
    color: #62748e;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1100px) {
    .ecp-layout {
        flex-direction: column;
    }

    .ecp-calendar-wrap {
        flex: none;
        width: 100%;
    }

    .ecp-events-wrap {
        width: 100%;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .ecp-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 28px;
    }

    .ecp-title {
        font-size: 28px;
    }

    .ecp-filters {
        justify-content: flex-start;
        gap: 12px;
    }

    .ecp-filter-btn {
        font-size: 14px;
        padding: 7px 18px;
    }

    .ecp-filter-btn.active {
        padding: 8px 20px;
    }

    .ecp-weekdays span {
        font-size: 14px;
    }

    .ecp-day,
    .ecp-empty {
        font-size: 14px;
        height: 44px;
    }

    .ecp-day-num {
        width: 34px;
        height: 34px;
    }

    .ecp-event-title {
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .ecp-title {
        font-size: 24px;
    }

    .ecp-calendar {
        padding: 16px;
    }

    .ecp-weekdays span {
        font-size: 11px;
    }

    .ecp-day,
    .ecp-empty {
        font-size: 13px;
        height: 38px;
    }

    .ecp-day-num {
        width: 30px;
        height: 30px;
    }

    .ecp-day-dot {
        width: 5px;
        height: 5px;
    }

    .ecp-event {
        padding: 16px;
        gap: 12px;
    }

    .ecp-event-icon {
        width: 38px;
        height: 38px;
    }
}
