@import url("base.css");
@import url("calendar.css");

.event-list {
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 1rem;
    flex-direction: column;
    min-height: calc(90px + 2rem);
    
    li {
        background-color: rgb(255, 255, 255);
        width: 100%;
        padding: 1rem;
        min-height: calc(90px + 2rem);
        background-color: var(--Off-white);
        border-radius: 7px;
    }

    li > time {
        width: 90px;
        height: 90px;
        color: rgb(255, 255, 255);
        background-color: var(--Purple);
        text-align: center;
        text-transform: uppercase;
        flex-direction: column-reverse;
        margin: 0;
    }

    li:nth-child(even) > time {
        background-color: var(--Violet);
    }
    li > time > span {
        display: none;
    }
    li > time > .day {
        display: block;
        line-height: 1;
    }
    li time > .month {
        display: block;
        line-height: 1;
    }
    li > time > .year {
        display: block;
        font-size: 11px;
        font-weight: 100;
        line-height: 1;
    }

    li > .event-img {
        width: 85px;
        padding: 0.8rem;
    }

    li > .event-img img {
        width: 100%;
    }
    li > .info {
        flex-direction: column;
        align-items: flex-start;
        width: calc(100% - 175px);
        gap: 0.7rem;
    }
    li > .info > .title {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-weight: 800;
        color: var(--Black);
        margin: 0;
    }
    li > .info > .desc {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
        margin: 0;
    }

    li > .info > .desc small {
        width: 100%;
        gap: 0.5rem;
        align-items: center;
    }

    li > .info > .desc img {
        width: 20px;
        height: auto;
    }
}

.cal-event:hover .cal-event-calendar {
    background: color-mix(in srgb, var(--Purple), transparent 80%);
    color: var(--Purple);
    transition: background 800ms;
}

.cal-event:nth-child(even):hover .cal-event-calendar {
    background: color-mix(in srgb, var(--Violet), transparent 80%);
    color: var(--Violet);
}

.cal-event:hover{
    background: color-mix(in srgb, var(--Purple), transparent 90%);
    transition: background 800ms;
}

.cal-event:nth-child(even):hover {
    background: color-mix(in srgb, var(--Violet), transparent 90%);
}

@media (min-width: 768px) {
    .event-list {
        align-items: flex-start !important;
        flex-wrap: wrap;
        flex-direction: row;
    
        li {
            width: calc(calc(100% - 1rem) / 2) !important;
        }
    }
}