/* =========================================================
   BHOWCO – EventON Calendar List Cards
   Version: 1.0
   Scope: WordPress Pages / EventON Calendar Lists
   Single Event CSS remains untouched
   ========================================================= */


/* 1. Allow shadows outside calendar cards */

body.page
.ajde_evcal_calendar:not(.eventon_single_event)
#evcal_list,

body.page
.ajde_evcal_calendar:not(.eventon_single_event)
#evcal_list .eventon_list_event {
    overflow: visible !important;
}


/* 2. Card wrapper – fast hover response */

body.page
.ajde_evcal_calendar:not(.eventon_single_event)
#evcal_list .eventon_list_event
p.desc_trig_outter {
    position: relative !important;
    overflow: visible !important;

    transition:
        transform 80ms ease-out,
        filter 80ms ease-out !important;
}


/* 3. Event card */

body.page
.ajde_evcal_calendar:not(.eventon_single_event)
#evcal_list .eventon_list_event
a.evcal_list_a.desc_trig {
    position: relative !important;

    border: 1px solid transparent !important;
    border-left: 1px solid transparent !important;
    border-radius: 10px !important;

    margin-bottom: 16px !important;
    overflow: visible !important;

    transition:
        border-color 80ms ease-out !important;
}


/* 4. Blue-orange gradient accent */

body.page
.ajde_evcal_calendar:not(.eventon_single_event)
#evcal_list .eventon_list_event
a.evcal_list_a.desc_trig::after {
    content: "" !important;

    position: absolute !important;
    top: 0 !important;
    left: 0 !important;

    width: 4px !important;
    height: 100% !important;

    border-radius: 10px 0 0 10px !important;

    background:
        linear-gradient(
            to bottom,
            #005293,
            #E37222
        ) !important;

    transform: scaleY(0);
    transform-origin: top;

    transition:
        transform 80ms ease-out !important;

    pointer-events: none;
    z-index: 3;
}


/* 5. EventON CEV compatibility fix
   EventON hides .evcal_list_a::after.
   Restore the gradient on calendar list cards.
*/

body.page
.ajde_evcal_calendar.cev
#evcal_list .eventon_list_event
a.evcal_list_a.desc_trig::after {
    display: block !important;
}


/* 6. Desktop hover effects */

@media (hover: hover) and (pointer: fine) {

    /* Card lift and three-layer shadow */

    body.page
    .ajde_evcal_calendar:not(.eventon_single_event)
    #evcal_list .eventon_list_event
    p.desc_trig_outter:hover {
        transform: translateY(-3px);

        filter:
            drop-shadow(0 0 4px rgba(10, 37, 64, 0.28))
            drop-shadow(0 0 12px rgba(10, 37, 64, 0.23))
            drop-shadow(0 0 24px rgba(10, 37, 64, 0.16)) !important;
    }

    /* Border highlight */

    body.page
    .ajde_evcal_calendar:not(.eventon_single_event)
    #evcal_list .eventon_list_event
    p.desc_trig_outter:hover
    a.evcal_list_a.desc_trig {
        border-color: #475569 !important;
        border-left-width: 1px !important;
    }

    /* Reveal gradient accent */

    body.page
    .ajde_evcal_calendar:not(.eventon_single_event)
    #evcal_list .eventon_list_event
    p.desc_trig_outter:hover
    a.evcal_list_a.desc_trig::after {
        transform: scaleY(1);
    }
}


/* 7. Reduced motion accessibility */

@media (prefers-reduced-motion: reduce) {

    body.page
    .ajde_evcal_calendar:not(.eventon_single_event)
    #evcal_list .eventon_list_event
    p.desc_trig_outter {
        transition: none !important;
        transform: none !important;
        filter: none !important;
    }

    body.page
    .ajde_evcal_calendar:not(.eventon_single_event)
    #evcal_list .eventon_list_event
    a.evcal_list_a.desc_trig::after {
        transition: none !important;
    }
}