/* ══════════════════════════════════════════
   event-modal.css – Global Event Details
══════════════════════════════════════════ */

.global-event-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(28, 26, 22, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.global-event-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.global-event-modal-card {
    background: #ffffff;
    border-radius: var(--radius-xl, 24px);
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.global-event-modal-overlay.active .global-event-modal-card {
    transform: translateY(0) scale(1);
}

/* Close Button */
.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, transform 0.2s;    
}

.modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

/* Image Header */
.modal-header-img {
    width: 100%;
    height: 220px;
    position: relative;
    flex-shrink: 0;
}

.modal-header-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-date-badge {
    position: absolute;
    bottom: -24px;
    right: 32px;
    background: #ffffff;
    border: 1px solid var(--border, rgba(28, 26, 22, 0.1));
    border-radius: 16px;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    z-index: 2;
}

.modal-date-badge .m-month {
    font-size: 12px;
    font-weight: 700;
    color: var(--gold, #C49A3C);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.modal-date-badge .m-day {
    font-size: 24px;
    font-weight: 700;
    color: var(--forest, #1A3A20);
    line-height: 1.1;
}

/* Body Content */
.global-event-modal-body {
    padding: 32px;
}

.modal-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.modal-meta-row .tag-pill {
    background: rgba(196, 154, 60, 0.15);
    color: var(--gold, #C49A3C);
    border: 1px solid rgba(196, 154, 60, 0.3);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-meta-row .event-location {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-mid, #4A4843);
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.modal-tags .tag-pill {
    background: rgba(196, 154, 60, 0.15);
    color: var(--gold, #C49A3C);
    border: 1px solid rgba(196, 154, 60, 0.3);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-meta-row .event-location i {
    color: var(--forest, #1A3A20);
}

.global-event-modal-body h2 {
    font-family: var(--display, 'Cormorant Garamond', serif);
    font-size: 32px;
    color: var(--forest, #1A3A20);
    margin: 0 0 12px 0;
    line-height: 1.1;
}

.global-event-modal-body p {
    font-size: 15px;
    color: var(--ink-mid, #4A4843);
    line-height: 1.6;
    margin: 0 0 28px 0;
}

/* Details Grid */
.modal-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    background: rgba(28, 26, 22, 0.02);
    border: 1px dashed var(--border, rgba(28, 26, 22, 0.15));
    border-radius: 16px;
    padding: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.detail-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid var(--border, rgba(28, 26, 22, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--forest, #1A3A20);
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.detail-text strong {
    display: block;
    font-size: 12px;
    color: var(--ink-light, #8E8A80);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.detail-text span {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink, #1C1A16);
}

/* Footer Actions */
.global-event-modal-footer {
    padding: 0 32px 32px 32px;
}

.btn-full-width {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--forest, #1A3A20);
    color: #ffffff;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-full-width:hover {
    background: var(--gold-light, #E5C37A);
    color: var(--forest, #1A3A20);
}

@media (max-width: 480px) {
    .global-event-modal-body {
        padding: 24px;
    }

    .global-event-modal-footer {
        padding: 0 24px 24px 24px;
    }

    .modal-header-img {
        height: 180px;
    }

    .global-event-modal-body h2 {
        font-size: 28px;
    }
}