/* =============================================
   Event Interested Button — eib.css
   ============================================= */

.eib-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 20px 0;
}

/* ---- Main Button ---- */
.eib-btn-wrap { margin-bottom: 14px; }

.eib-interested-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: 1.5px solid #7b6ef6;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s ease;
}

.eib-interested-btn:hover {
    background: #f5f3ff;
    border-color: #5a4fcf;
}

.eib-interested-btn.eib-active {
    background: #7b6ef6;
    color: #fff;
    border-color: #7b6ef6;
}

.eib-interested-btn.eib-active .eib-star { color: #ffe066; }

.eib-star {
    font-size: 18px;
    color: #7b6ef6;
    transition: color .2s;
}

/* ---- Avatars ---- */
.eib-attendees-wrap { margin-top: 8px; }

.eib-avatars {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.eib-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    overflow: hidden;
    margin-left: -8px;
    background: #e0dbff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: default;
    transition: transform .15s;
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
}

.eib-avatar:first-child { margin-left: 0; }
.eib-avatar:hover { transform: scale(1.12); z-index: 10; }

.eib-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eib-avatar-initial {
    font-size: 15px;
    font-weight: 700;
    color: #7b6ef6;
}

.eib-count {
    margin: 8px 0 0;
    font-size: 13px;
    color: #555;
}

/* ---- Modal Overlay ---- */
.eib-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: eibFadeIn .2s ease;
}

.eib-modal-overlay.eib-open {
    display: flex;
}

@keyframes eibFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.eib-modal {
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px 28px;
    max-width: 420px;
    width: 92%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
    animation: eibSlideUp .25s ease;
}

@keyframes eibSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.eib-modal-close {
    position: absolute;
    top: 14px; right: 18px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #888;
    line-height: 1;
}

.eib-modal-close:hover { color: #333; }

.eib-modal-title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 8px;
    color: #111;
}

.eib-modal-sub {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin: 0 0 24px;
    line-height: 1.5;
}

/* ---- Social Buttons ---- */
.eib-social-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eib-social-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    background: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all .18s;
    color: #222;
    text-align: left;
}

.eib-social-btn:hover {
    background: #f8f8f8;
    border-color: #aaa;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,0,0,.07);
}

.eib-social-btn svg { flex-shrink: 0; }

.eib-modal-note {
    font-size: 12px;
    color: #aaa;
    text-align: center;
    margin: 18px 0 0;
}

/* ---- Loading spinner ---- */
.eib-spinner {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid #ccc;
    border-top-color: #7b6ef6;
    border-radius: 50%;
    animation: eibSpin .7s linear infinite;
    vertical-align: middle;
}

@keyframes eibSpin {
    to { transform: rotate(360deg); }
}
