/**
 * Eskopis Events Stylesheet
 * Desain modern, fleksibel, responsif untuk Agenda & Event
 */

/* ==========================================================================
   HOMEPAGE EVENTS SECTION
   ========================================================================== */
.eskopis_events_section {
    margin: 28px 0 24px;
    padding: 0;
    clear: both;
    position: relative;
}

.events_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f3f5;
    position: relative;
}

.events_title_wrap {
    flex-grow: 1;
}

.events_main_title {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.events_subtitle {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #64748b;
    font-weight: 400;
}

.events_header_actions {
    margin-left: 16px;
    flex-shrink: 0;
}

.events_view_all_link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #0284c7;
    text-decoration: none;
    padding: 6px 12px;
    background: #f0f9ff;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.events_view_all_link:hover {
    background: #0284c7;
    color: #ffffff !important;
    transform: translateX(2px);
}

/* ==========================================================================
   CARDS GRID & RESPONSIVENESS
   ========================================================================== */
.events_cards_grid {
    display: grid;
    gap: 20px;
    align-items: stretch;
}

.eskopis_events_cols_2 .events_cards_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.eskopis_events_cols_3 .events_cards_grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.eskopis_events_cols_4 .events_cards_grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media screen and (max-width: 991px) {
    .eskopis_events_cols_3 .events_cards_grid,
    .eskopis_events_cols_4 .events_cards_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 600px) {
    .eskopis_events_cols_2 .events_cards_grid,
    .eskopis_events_cols_3 .events_cards_grid,
    .eskopis_events_cols_4 .events_cards_grid {
        grid-template-columns: 1fr;
    }
    .events_header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .events_header_actions {
        margin-left: 0;
    }
}

/* ==========================================================================
   EVENT CARD STYLES
   ========================================================================== */
.event_card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.event_card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

/* Media / Thumbnail */
.event_card_media {
    position: relative;
    padding-top: calc(56.25% + 15px);
    background: #0f172a;
    overflow: hidden;
}

.event_card_thumb_link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.event_thumb_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.event_card:hover .event_thumb_img {
    transform: scale(1.05);
}

.event_thumb_placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #94a3b8;
    font-size: 38px;
}

/* Badge Tanggal Modern */
.event_date_badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    padding: 6px 10px;
    text-align: center;
    min-width: 48px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.event_date_day {
    display: block;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    color: #0f172a;
}

.event_date_month {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #e11d48;
    margin-top: 3px;
    line-height: 1;
}

/* Status Pill */
.event_status_pill {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.event_status_pill.status-upcoming {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.event_status_pill.status-ongoing {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    animation: eskopis_pulse 2s infinite;
}

.event_status_pill.status-closed {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.event_status_pill.status-past {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

@keyframes eskopis_pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.04); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}

/* Gallery Count Indicator */
.event_gallery_indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    z-index: 2;
}

/* Card Body */
.event_card_body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event_card_title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px;
}

.event_card_title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.event_card_title a:hover {
    color: #0284c7;
}

/* Meta List */
.event_meta_list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    font-size: 13px;
    color: #64748b;
}

.event_meta_item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
    line-height: 1.4;
}

.event_meta_item i {
    width: 15px;
    color: #0284c7;
    margin-top: 3px;
    flex-shrink: 0;
}

.event_price_item i {
    color: #10b981;
}

.event_price_tag {
    font-weight: 700;
    color: #0f172a;
    background: #f1f5f9;
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 12px;
}

.event_card_excerpt {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 14px;
}

/* Footer / CTA */
.event_card_footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.event_detail_btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.event_detail_btn:hover {
    color: #0284c7;
}

.event_action_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    background: #0284c7;
    color: #ffffff !important;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

.event_action_btn:hover {
    background: #0369a1;
    transform: translateY(-1px);
}

/* ==========================================================================
   SINGLE EVENT PAGE STYLES
   ========================================================================== */
.single_event_container {
    margin-bottom: 30px;
}

.single_event_header {
    margin-bottom: 20px;
}

.single_event_meta_top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.single_event_cat_badge {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none;
}

.single_event_title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    color: #0f172a;
    margin: 0 0 10px;
}

/* Featured & Highlight Box */
.single_event_banner {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.single_event_banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Info Box / Summary Card */
.single_event_info_card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 28px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.single_event_info_item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.single_event_info_icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #e0f2fe;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.single_event_info_text h5 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin: 0 0 3px;
}

.single_event_info_text p {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.single_event_info_text a {
    color: #0284c7;
    text-decoration: none;
    font-size: 12px;
    display: inline-block;
    margin-top: 3px;
}

.single_event_cta_box {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px dashed #cbd5e1;
}

.single_event_cta_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0284c7;
    color: #ffffff !important;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.single_event_cta_btn:hover {
    background: #0369a1;
    transform: translateY(-2px);
}

/* ==========================================================================
   MULTI-IMAGE EVENT GALLERY & LIGHTBOX
   ========================================================================== */
.single_event_gallery_section {
    margin: 32px 0;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.single_event_gallery_title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.single_event_gallery_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.single_event_gallery_thumb {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.single_event_gallery_thumb:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.single_event_gallery_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.single_event_gallery_overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.single_event_gallery_thumb:hover .single_event_gallery_overlay {
    opacity: 1;
}

/* Lightbox Modal */
.eskopis_lightbox_modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(6px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.eskopis_lightbox_modal.is_open {
    display: flex;
}

.eskopis_lightbox_img_wrap {
    max-width: 90vw;
    max-height: 85vh;
    position: relative;
    text-align: center;
}

.eskopis_lightbox_img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: block;
    margin: 0 auto;
}

.eskopis_lightbox_close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.eskopis_lightbox_close:hover {
    background: rgba(255, 255, 255, 0.4);
}

.eskopis_lightbox_arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.eskopis_lightbox_arrow:hover {
    background: rgba(255, 255, 255, 0.4);
}

.eskopis_lightbox_prev { left: 20px; }
.eskopis_lightbox_next { right: 20px; }
