/**
 * ListingBridges — Share Modal
 * Mirrors the showing modal structure exactly.
 * Developed by: Stark Create
 */

/* =========================================================
   MODAL OVERLAY
   ========================================================= */
.lb-share-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.55);
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.lb-share-modal.lb-share-modal--open {
    display: flex;
}

/* =========================================================
   MODAL PANEL
   ========================================================= */
.lb-share-modal__panel {
    background: #fff;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 48px rgba(0,0,0,0.22);
    animation: lb-share-modal-in 0.2s ease;
}
@keyframes lb-share-modal-in {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   HEADER
   ========================================================= */
.lb-share-modal__header {
    background: #0d1741;
    color: #fff;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1;
}
.lb-share-modal__title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}
.lb-share-modal__subtitle {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin: 2px 0 0;
}
.lb-share-modal__close {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.15s;
}
.lb-share-modal__close:hover { opacity: 1; }

/* =========================================================
   BODY
   ========================================================= */
.lb-share-modal__body {
    padding: 24px;
}

.lb-share-modal__intro {
    margin: 0 0 16px;
    font-size: 13px;
    color: #555;
}

/* =========================================================
   TABS
   ========================================================= */
.lb-share-modal__tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}
.lb-share-modal__tab {
    flex: 1;
    padding: 11px 8px;
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-family: inherit;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.lb-share-modal__tab:hover { color: #0d1741; }
.lb-share-modal__tab--active {
    color: #0d1741;
    border-bottom-color: #0d1741;
}

/* =========================================================
   SOCIAL BUTTONS
   ========================================================= */
.lb-share-modal__social-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.lb-share-modal__social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    border: none;
    width: 100%;
    box-sizing: border-box;
    transition: opacity 0.15s;
}
.lb-share-modal__social-btn:hover { opacity: 0.88; }
.lb-share-modal__social-btn--fb   { background: #1877f2; color: #fff; }
.lb-share-modal__social-btn--x    { background: #000;    color: #fff; }
.lb-share-modal__social-btn--copy { background: #555;    color: #fff; }
.lb-share-modal__social-btn--copied { background: #1a7a1a; }

/* =========================================================
   SIDEBAR TRIGGER BUTTON
   ========================================================= */
.lb-sidebar__btn--share {
    background: #fff;
    color: #0d1741;
    border: 2px solid #0d1741;
}
.lb-sidebar__btn--share:hover {
    background: #0d1741;
    color: #fff;
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 600px) {
    .lb-share-modal__panel {
        max-height: 100vh;
        margin: 0;
        align-self: flex-end;
        animation: lb-share-modal-slide-up 0.22s ease;
    }
    @keyframes lb-share-modal-slide-up {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }
    .lb-share-modal__tab {
        font-size: 12px;
        padding: 10px 4px;
    }
}
