/**
 * Builder Post Sharing — Brand: con|ZENTRIERT (Logo-Grün #7cb342, Schwarz)
 *
 * BEM:
 *   .bps-share              Container, Modifier --horizontal/--vertical/--icon/--icon_text/--button/--small/--medium/--large/--rounded/--circle/--square
 *   .bps-share__heading
 *   .bps-share__list
 *   .bps-share__item        +--<platform-slug>
 *   .bps-share__btn
 *   .bps-share__icon
 *   .bps-share__label
 */

.bps-share { display: block; margin: 1.25rem 0; }
.bps-share__heading { display: block; margin-bottom: .5rem; font-weight: 600; font-size: 14px; color: #1a1a1a; }
.bps-share__list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: 8px;
}
.bps-share--vertical .bps-share__list { flex-direction: column; align-items: flex-start; }

.bps-share__item { margin: 0; padding: 0; }
.bps-share__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    text-decoration: none; line-height: 1;
    padding: .55rem .85rem;
    border: 1px solid #e2e8e0;
    background: #fff;
    color: #1a1a1a;
    transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.bps-share__btn:hover, .bps-share__btn:focus-visible {
    background: linear-gradient(135deg, #7cb342, #4caf50);
    color: #fff;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(124, 179, 66, .25);
    outline: none;
}
.bps-share__btn:focus-visible { box-shadow: 0 0 0 3px rgba(124, 179, 66, .35); }

/* Icon-Größe & Sichtbarkeit */
.bps-share__icon { display: inline-flex; }
.bps-share__icon svg { width: 18px; height: 18px; display: block; }
.bps-share--small  .bps-share__icon svg { width: 14px; height: 14px; }
.bps-share--large  .bps-share__icon svg { width: 22px; height: 22px; }

.bps-share--icon .bps-share__label { display: none; }
.bps-share--icon .bps-share__btn { padding: .55rem; }

.bps-share__label { font-weight: 500; font-size: 14px; }
.bps-share--small  .bps-share__label { font-size: 12px; }
.bps-share--large  .bps-share__label { font-size: 16px; }

/* Größen */
.bps-share--small .bps-share__btn  { padding: .35rem .6rem; }
.bps-share--large .bps-share__btn  { padding: .75rem 1.1rem; }

/* Form */
.bps-share--rounded .bps-share__btn { border-radius: 8px; }
.bps-share--square  .bps-share__btn { border-radius: 0; }
.bps-share--circle  .bps-share__btn,
.bps-share--circle.bps-share--icon .bps-share__btn { border-radius: 999px; }

/* Button-Stil: gefüllt */
.bps-share--button .bps-share__btn {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}
.bps-share--button .bps-share__btn:hover,
.bps-share--button .bps-share__btn:focus-visible {
    background: linear-gradient(135deg, #7cb342, #4caf50);
    border-color: transparent;
}

/* Copy-Feedback */
.bps-share__btn.is-feedback {
    background: #e3f3d3; color: #355a14; border-color: #b3d99b;
    transform: none;
}

/* ────────── Modal ────────── */
.bps-modal {
    position: fixed; inset: 0; z-index: 999999;
    display: none;
    align-items: center; justify-content: center;
    padding: 16px;
}
.bps-modal.is-open { display: flex; }

.bps-modal__backdrop {
    position: absolute; inset: 0;
    background: rgba(15, 15, 15, .65);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    cursor: pointer;
}
.bps-modal__dialog {
    position: relative;
    max-width: 460px; width: 100%;
    background: #fff;
    border-radius: 12px;
    padding: 28px 26px 22px;
    box-shadow: 0 20px 48px rgba(0,0,0,.25);
    border-top: 4px solid #7cb342;
    animation: bps-modal-in .18s ease-out;
}
@keyframes bps-modal-in {
    from { opacity: 0; transform: translateY(8px) scale(.98); }
    to   { opacity: 1; transform: none; }
}
.bps-modal__close {
    position: absolute; top: 8px; right: 10px;
    background: none; border: 0; cursor: pointer;
    font-size: 24px; line-height: 1; color: #555;
    width: 36px; height: 36px; border-radius: 50%;
}
.bps-modal__close:hover { background: #f5f5f5; color: #000; }
.bps-modal__title { margin: 0 0 12px; font-size: 18px; color: #1a1a1a; font-weight: 700; }
.bps-modal__intro { margin: 0 0 4px; color: #444; font-size: 14px; line-height: 1.5; }
.bps-modal__platform {
    margin: 4px 0 14px;
    padding: 8px 12px;
    background: #f4f8ee; border-left: 3px solid #7cb342;
    border-radius: 4px;
    font-weight: 600; font-size: 15px; color: #2c3a18;
}
.bps-modal__note { margin: 0 0 18px; color: #6b6b6b; font-size: 13px; line-height: 1.5; }
.bps-modal__actions { display: flex; gap: 10px; justify-content: flex-end; }
.bps-modal__btn {
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none; cursor: pointer;
    padding: .55rem 1.1rem; font-size: 14px; font-weight: 600;
    border-radius: 8px; border: 1px solid transparent; line-height: 1;
}
.bps-modal__btn--cancel { background: #f1f1f1; color: #1a1a1a; border-color: #e0e0e0; }
.bps-modal__btn--cancel:hover { background: #e6e6e6; }
.bps-modal__btn--primary {
    background: linear-gradient(135deg, #7cb342, #4caf50);
    color: #fff;
    box-shadow: 0 4px 10px rgba(124, 179, 66, .3);
}
.bps-modal__btn--primary:hover, .bps-modal__btn--primary:focus-visible {
    box-shadow: 0 6px 14px rgba(124, 179, 66, .45);
    transform: translateY(-1px);
    outline: none;
}

@media (max-width: 480px) {
    .bps-modal__dialog { padding: 22px 18px 18px; }
    .bps-modal__actions { flex-direction: column-reverse; align-items: stretch; }
    .bps-modal__btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .bps-share__btn, .bps-modal__dialog, .bps-modal__btn--primary { transition: none !important; animation: none !important; }
}

/* ────────── Builder Editor Preview ────────── */
.bps-preview-placeholder {
    padding: 18px 20px;
    background: linear-gradient(135deg, #f4f8ee 0%, #fff 100%);
    border: 1px dashed #b3d99b;
    border-radius: 8px;
    text-align: center;
    color: #2c3a18;
}
.bps-preview-icon { font-size: 32px; line-height: 1; margin-bottom: 6px; }
.bps-preview-placeholder strong { display: block; font-size: 16px; margin-bottom: 4px; color: #1a1a1a; }
.bps-preview-heading { font-size: 13px; color: #4d6b1f; margin-bottom: 6px; font-style: italic; }
.bps-preview-meta { font-size: 12px; color: #777; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }
.bps-preview-chips { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-bottom: 8px; }
.bps-preview-chip {
    padding: 3px 9px; border-radius: 12px;
    background: #fff; border: 1px solid #d0e3b8;
    font-size: 11px; color: #355a14;
}
.bps-preview-note { font-size: 11px; color: #6b6b6b; }
