/* ==========================================
   CONSCIOUS TEMPLE - EVENT LIST
========================================== */

.ct-event-list {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}


/* ==========================================
   HEADER
========================================== */

.ct-event-list-header {
    text-align: center;
    margin-bottom: 35px;
}

.ct-event-list-header h2 {
    margin: 0 0 10px;
    font-family: "Cormorant Garamond", serif;
    font-size: 42px;
    font-weight: 700;
    color: #482a2c;
    text-align: center;
}

.ct-event-list-header p {
    margin: 0;
    font-family: "Lato", sans-serif;
    font-size: 17px;
    color: #555;
}


/* ==========================================
   EVENT CARD
========================================== */

.ct-event-card {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 190px;
    margin-bottom: 25px;
    padding: 22px;

    background: linear-gradient(
        to bottom,
        #e79973 0%,
        #EFE1DA 60%,
        #EDE6E3 100%
    );

    border: 1px solid rgba(72, 42, 44, 0.15);
    border-radius: 12px;
    box-sizing: border-box;
}


/* ==========================================
   DATE BOX
========================================== */

.ct-event-date-box {
    width: 130px;
    min-width: 130px;
    text-align: center;
    padding: 15px 20px;
    margin-right: 35px;

    background: #482a2c;

    border-radius: 8px;
    box-sizing: border-box;
}

.ct-event-date-box .ct-day {
    font-family: "Cormorant Garamond", serif;
    font-size: 38px;
    line-height: 1;
    font-weight: 600;
    color: #ffffff;
}

.ct-event-date-box .ct-month {
    margin-top: 6px;

    font-family: "Lato", sans-serif;
    font-size: 14px;
    font-weight: 600;

    text-transform: uppercase;
    color: #e79973;
}

.ct-event-date-box .ct-year {
    margin-top: 3px;

    font-family: "Lato", sans-serif;
    font-size: 13px;
    color: #ffffff;
}


/* ==========================================
   CENTER CONTENT
========================================== */

.ct-event-center {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}


/* ==========================================
   EVENT IMAGE
========================================== */

.ct-event-image {
    width: 170px;
    min-width: 170px;
    height: 130px;

    margin-right: 45px;

    overflow: hidden;
    border-radius: 10px;
}

/* Image */

.ct-event-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* ==========================================
   CLICKABLE EVENT IMAGE
========================================== */

.event-list-image {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.event-list-image:hover {
    transform: scale(1.03);
}


/* ==========================================
   NO IMAGE
========================================== */

.ct-no-image {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    background: #eee;
    color: #777;

    font-family: "Lato", sans-serif;
    font-size: 14px;
}


/* ==========================================
   EVENT CONTENT
========================================== */

.ct-event-content {
    flex: 1;
    min-width: 0;
}

.ct-event-title {
    margin: 0 0 15px;

    font-family: "Cormorant Garamond", serif;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 600;
}

.ct-event-title a {
    color: #482a2c;
    text-decoration: none;
}

.ct-event-title a:hover {
    color: #9c0000;
}


/* ==========================================
   EVENT INFO
========================================== */

.ct-event-info {
    display: flex;
    align-items: center;

    gap: 9px;
    margin-bottom: 8px;

    font-family: "Lato", sans-serif;
    font-size: 15px;
    line-height: 1.4;

    color: #555;
}

.ct-event-info .ct-icon {
    width: 18px;
    height: 18px;

    flex-shrink: 0;

    color: #482a2c;
}


/* ==========================================
   ACTIONS
========================================== */

.event-actions {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 14px;
    margin-left: 25px;

    min-width: 75px;
}

.action-icon {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    text-decoration: none;
}

.action-icon svg {
    transition: transform 0.2s ease;
}

.action-icon:hover svg {
    transform: scale(1.1);
}

.action-divider {
    width: 1px;
    height: 35px;

    background: rgba(72, 42, 44, 0.25);
}


/* ==========================================
   TOOLTIP
========================================== */

.action-icon .tooltip {
    position: absolute;

    bottom: 45px;
    left: 50%;

    transform: translateX(-50%);

    padding: 6px 9px;

    background: #482a2c;
    color: #ffffff;

    border-radius: 4px;

    font-family: "Lato", sans-serif;
    font-size: 12px;

    white-space: nowrap;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: all 0.2s ease;
}

.action-icon:hover .tooltip {
    opacity: 1;
    visibility: visible;
}


/* ==========================================
   SHARE POPUP
========================================== */

.share-popup {
    display: none;

    position: absolute;

    right: 0;
    bottom: 55px;

    width: 360px;
    max-width: calc(100vw - 30px);

    background: #ffffff;

    border: 1px solid #e79973;
    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 15px 40px rgba(72, 42, 44, 0.25);

    z-index: 9999;

    box-sizing: border-box;
}


/* ==========================================
   SHARE HEADER
========================================== */

.share-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 22px;

    background: #482a2c;
}

.share-header h4 {
    margin: 0;

    font-family: "Cormorant Garamond", serif;
    font-size: 25px;
    font-weight: 600;

    color: #e79973;
}


/* ==========================================
   SHARE CLOSE BUTTON
========================================== */

.close-share {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 30px !important;
    height: 30px !important;

    min-width: 30px !important;
    min-height: 30px !important;

    padding: 0 !important;
    margin: 0 !important;

    border: none !important;
    border-radius: 50% !important;

    background: transparent !important;

    color: #e79973 !important;

    font-family: Arial, sans-serif !important;
    font-size: 24px !important;
    font-weight: 600 !important;

    line-height: 30px !important;

    cursor: pointer !important;

    box-sizing: border-box !important;
}

.close-share:hover {
    background: rgba(231, 153, 115, 0.15) !important;
    color: #ffffff !important;
}


/* ==========================================
   SHARE BODY
========================================== */

.share-body {
    padding: 22px;
}


/* ==========================================
   SHARE ITEMS
========================================== */

.share-item {
    display: flex;

    align-items: center;

    width: 100%;

    gap: 12px;

    margin: 0 0 17px;

    padding: 0;

    color: #482a2c;

    font-family: "Lato", sans-serif;
    font-size: 15px;

    text-decoration: none;

    box-sizing: border-box;
}

.share-item:last-of-type {
    margin-bottom: 17px;
}


/* Social icons */

.share-item img {
    display: block;

    width: 24px;
    height: 24px;

    min-width: 24px;

    object-fit: contain;
}

.share-item span {
    color: #482a2c;
}


/* Hover */

.share-item:hover span {
    color: #e79973;
}


/* ==========================================
   COPY LINK BOX
========================================== */

.share-link-box {
    display: flex;

    width: 100%;

    margin-top: 8px;

    box-sizing: border-box;
}


/* URL input */

.share-url {
    flex: 1;

    width: auto;
    min-width: 0;

    height: 48px;

    padding: 0 14px;

    border: 1px solid #ddd !important;
    border-right: none !important;

    border-radius: 6px 0 0 6px !important;

    background: #ffffff !important;

    color: #482a2c !important;

    font-family: "Lato", sans-serif !important;
    font-size: 13px !important;

    outline: none !important;

    box-sizing: border-box;
}


/* Copy button */

.copy-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 70px !important;
    height: 48px !important;

    min-width: 70px !important;

    padding: 0 !important;
    margin: 0 !important;

    border: 1px solid #ddd !important;

    border-radius: 0 6px 6px 0 !important;

    background: #e79973 !important;

    color: #482a2c !important;

    font-size: 18px !important;

    cursor: pointer !important;

    box-sizing: border-box !important;
}

.copy-btn:hover {
    background: #482a2c !important;
    color: #e79973 !important;
}


/* ==========================================
   IMAGE LIGHTBOX
========================================== */

.event-image-lightbox {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    padding: 30px;

    background: rgba(0, 0, 0, 0.88);

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;

    z-index: 999999;

    box-sizing: border-box;
}

.event-image-lightbox.active {
    opacity: 1;
    visibility: visible;
}


/* ==========================================
   LARGE LIGHTBOX IMAGE
========================================== */

#event-lightbox-image {
    display: block;

    max-width: 90vw;
    max-height: 90vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 8px;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}


/* ==========================================
   LIGHTBOX CLOSE BUTTON
========================================== */

.event-lightbox-close {
    position: fixed !important;

    top: 20px !important;
    right: 20px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 42px !important;
    height: 42px !important;

    min-width: 42px !important;
    min-height: 42px !important;

    padding: 0 !important;
    margin: 0 !important;

    border: none !important;
    border-radius: 50% !important;

    background: rgba(72, 42, 44, 0.95) !important;

    color: #e79973 !important;

    font-family: Arial, sans-serif !important;
    font-size: 30px !important;
    font-weight: 400 !important;

    line-height: 42px !important;
    text-align: center !important;

    cursor: pointer !important;

    z-index: 1000000 !important;

    box-sizing: border-box !important;
}

.event-lightbox-close:hover {
    background: #e79973 !important;
    color: #482a2c !important;
}


/* ==========================================
   PREVENT PAGE SCROLL
========================================== */

body.lightbox-open {
    overflow: hidden;
}


/* ==========================================
   NO EVENTS
========================================== */

.ct-no-events {
    padding: 40px 20px;

    text-align: center;

    font-family: "Lato", sans-serif;
    font-size: 17px;

    color: #666;
}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 900px) {

    .ct-event-card {
        padding: 18px;
    }

    .ct-event-date-box {
        width: 75px;
        min-width: 75px;

        margin-right: 18px;
    }

    .ct-event-date-box .ct-day {
        font-size: 32px;
    }

    .ct-event-image {
        width: 140px;
        min-width: 140px;
        height: 110px;

        margin-right: 18px;
    }

    .ct-event-title {
        font-size: 24px;
    }

    .event-actions {
        margin-left: 15px;
    }

    .share-popup {
        right: 0;
        width: 330px;
    }
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 767px) {

    .ct-event-list {
        padding: 30px 15px;
    }

    .ct-event-list-header h2 {
        font-size: 34px;
    }

    .ct-event-list-header p {
        font-size: 15px;
    }

    .ct-event-card {
        align-items: flex-start;

        flex-wrap: wrap;

        padding: 15px;
    }

    .ct-event-date-box {
        width: 65px;
        min-width: 65px;

        padding: 10px 6px;

        margin-right: 15px;
    }

    .ct-event-date-box .ct-day {
        font-size: 28px;
    }

    .ct-event-date-box .ct-month {
        font-size: 11px;
    }

    .ct-event-date-box .ct-year {
        font-size: 11px;
    }

    .ct-event-center {
        flex: 1;

        align-items: flex-start;
    }

    .ct-event-image {
        width: 100px;
        min-width: 100px;
        height: 85px;

        margin-right: 12px;
    }

    .ct-event-title {
        font-size: 21px;

        margin-bottom: 10px;
    }

    .ct-event-info {
        gap: 6px;

        font-size: 13px;
    }

    .ct-event-info .ct-icon {
        width: 15px;
        height: 15px;
    }

    .event-actions {
        width: 100%;

        margin: 15px 0 0;

        padding-top: 12px;

        border-top: 1px solid rgba(72, 42, 44, 0.15);

        justify-content: flex-end;
    }


    /* Mobile Share Popup */

    .share-popup {
        position: fixed;

        top: 50%;
        left: 50%;
        right: auto;
        bottom: auto;

        transform: translate(-50%, -50%);

        width: 330px;
        max-width: calc(100vw - 30px);

        z-index: 99999;
    }


    .share-header {
        padding: 17px 20px;
    }

    .share-header h4 {
        font-size: 23px;
    }

    .share-body {
        padding: 20px;
    }


    /* Mobile Lightbox */

    .event-image-lightbox {
        padding: 15px;
    }

    .event-lightbox-close {
        top: 12px !important;
        right: 12px !important;

        width: 38px !important;
        height: 38px !important;

        min-width: 38px !important;
        min-height: 38px !important;

        font-size: 26px !important;

        line-height: 38px !important;
    }

    #event-lightbox-image {
        max-width: 94vw;
        max-height: 88vh;
    }
}