/* ============================================================
   ivolunteer Events — front-end styles
============================================================ */

/* Loading / error states */
.ive-block .ive-loading { color: #888; font-style: italic; padding: 12px 0; }
.ive-block .ive-err     { color: #c0392b; padding: 12px 0; }
.ive-block .ive-empty   { color: #888; padding: 12px 0; }

/* ── LIST VIEW ─────────────────────────────────────── */
.ive-list { list-style: none; margin: 0; padding: 0; }

.ive-item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 16px;
    background: #fff;
    transition: box-shadow .15s;
}
.ive-item:hover { box-shadow: 0 2px 10px rgba(0,0,0,.1); }

/* ── CARD (list item + modal content) ─────────────── */
.ive-card {}

.ive-field {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
    font-size: .94em;
    line-height: 1.5;
}

.ive-label {
    font-weight: 600;
    color: #444;
    flex-shrink: 0;
}

.ive-value { color: #333; }

.ive-field-name .ive-value { font-size: 1.15em; font-weight: 700; color: #111; display: block; margin-bottom: 4px; }

/* Event name — rendered as a heading title in both list and modal */
.ive-event-title {
    font-size: 1.15em;
    font-weight: 700;
    color: #111;
    margin: 0 0 10px;
    padding: 0;
    line-height: 1.3;
}
.ive-field-description .ive-value { color: #555; }

/* ── VIEW BUTTON ───────────────────────────────────── */
.ive-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 18px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: .9em;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s;
}
.ive-btn:hover { background: #005f8c; color: #fff; }

.ive-btn-disabled {
    background: #aaa !important;
    cursor: not-allowed;
    pointer-events: none;
    color: #eee !important;
}

/* ── CALENDAR ──────────────────────────────────────── */
.ive-cal-wrap { font-size: .95em; }
.ive-cal-wrap .fc-event { cursor: pointer; }

/* Hover tooltip */
.ive-tip {
    position: absolute;
    z-index: 99999;
    background: #222;
    color: #fff;
    padding: 7px 11px;
    border-radius: 5px;
    font-size: .82em;
    line-height: 1.45;
    max-width: 240px;
    white-space: pre-line;
    pointer-events: none;
    box-shadow: 0 3px 10px rgba(0,0,0,.35);
}
.ive-tip::after {
    content: '';
    position: absolute;
    top: 100%; left: 14px;
    border: 5px solid transparent;
    border-top-color: #222;
}

/* ── MODAL ─────────────────────────────────────────── */
.ive-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.52);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ive-modal {
    background: #fff;
    border-radius: 8px;
    max-width: 560px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px 32px 28px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,.25);
    animation: iveFadeIn .18s ease;
}

@keyframes iveFadeIn {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ive-close {
    position: absolute;
    top: 12px; right: 16px;
    background: none;
    border: none;
    font-size: 1.6em;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 0 4px;
}
.ive-close:hover { color: #222; }

.ive-modal-title {
    margin: 0 0 16px;
    padding-right: 28px;
    font-size: 1.2em;
    font-weight: 700;
    color: #111;
}
