/* ============================================================
   OSM SOCIAL SHARE BUTTONS
   ============================================================ */

.osm-share {
    margin: 22px 0;
    padding: 16px 18px;
    background: var(--osm-cream, #FFF6E8);
    border: 1px solid var(--osm-border, #F0E6D0);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.osm-share--inline {
    display: flex;
    align-items: center;
}

.osm-share--block {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.osm-share__label {
    font-family: var(--osm-font-display, Georgia, serif);
    font-size: 14px;
    font-weight: 800;
    color: var(--osm-navy, #1F1B3E);
    letter-spacing: -0.1px;
    flex-shrink: 0;
}

.osm-share--block .osm-share__label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--osm-muted, #6B6788);
}

.osm-share__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
}

.osm-share--block .osm-share__buttons {
    width: 100%;
}

.osm-share__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: 1.5px solid var(--osm-border, #F0E6D0);
    background: #fff;
    color: var(--osm-navy, #1F1B3E);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    line-height: 1;
}

.osm-share__btn svg {
    flex-shrink: 0;
}

.osm-share__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(31, 27, 62, 0.08);
}

/* Platform colours on hover — each button transforms to its brand colour */
.osm-share__btn--facebook:hover {
    background: #1877F2;
    color: #fff;
    border-color: #1877F2;
}

.osm-share__btn--twitter:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.osm-share__btn--whatsapp:hover {
    background: #25D366;
    color: #fff;
    border-color: #25D366;
}

.osm-share__btn--instagram:hover {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF);
    color: #fff;
    border-color: #DD2A7B;
}

.osm-share__btn--copy:hover,
.osm-share__btn--native:hover {
    background: var(--osm-navy, #1F1B3E);
    color: var(--osm-cream, #FFF6E8);
    border-color: var(--osm-navy, #1F1B3E);
}

/* Active / success state on copy buttons */
.osm-share__btn.is-copied {
    background: var(--osm-mint, #8FCDA7);
    color: var(--osm-navy, #1F1B3E);
    border-color: var(--osm-mint, #8FCDA7);
    pointer-events: none;
}

.osm-share__btn.is-copied svg {
    display: none;
}

.osm-share__btn.is-copied::before {
    content: "✓";
    font-weight: 900;
    font-size: 14px;
    margin-right: 4px;
}

/* Feedback message (e.g. "Caption copied — paste into Instagram") */
.osm-share__feedback {
    flex-basis: 100%;
    font-size: 12px;
    font-weight: 600;
    color: var(--osm-mint, #2F8559);
    min-height: 18px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.osm-share__feedback.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile: show native share when supported (hidden until JS detects support) */
@media (max-width: 600px) {
    .osm-share {
        gap: 10px;
        padding: 14px;
    }
    .osm-share__btn span {
        /* Keep labels but tighten on mobile */
        font-size: 12px;
    }
}

/* ============================================================
   DASHBOARD SHARE PANEL — when used inside the venue manager dashboard
   ============================================================ */

.osm-share-panel {
    background: #fff;
    border: 1px solid var(--osm-border, #F0E6D0);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 16px;
}

.osm-share-panel__head {
    padding: 14px 20px;
    background: linear-gradient(135deg, #FFF6E8, #FFE3B0);
    border-bottom: 1px solid var(--osm-border, #F0E6D0);
}

.osm-share-panel__head h3 {
    margin: 0;
    font-family: var(--osm-font-display, Georgia, serif);
    font-size: 15px;
    font-weight: 800;
    color: var(--osm-navy, #1F1B3E);
    letter-spacing: -0.1px;
}

.osm-share-panel__head p {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--osm-muted, #6B6788);
}

.osm-share-panel__body {
    padding: 16px 20px 18px;
}

.osm-share-panel .osm-share {
    margin: 0 0 14px;
    background: transparent;
    border: 0;
    padding: 0;
}

/* Caption preview boxes (inside dashboard panel) */
.osm-share-captions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.osm-share-caption {
    background: var(--osm-cream, #FFF6E8);
    border: 1px solid var(--osm-border, #F0E6D0);
    border-radius: 8px;
    padding: 10px 12px;
    position: relative;
}

.osm-share-caption__platform {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--osm-muted, #6B6788);
    margin-bottom: 6px;
    display: block;
}

.osm-share-caption__text {
    font-family: ui-monospace, SFMono-Regular, Consolas, Menlo, monospace;
    font-size: 12px;
    line-height: 1.5;
    color: var(--osm-navy, #1F1B3E);
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    padding-right: 80px;
}

.osm-share-caption__copy {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #fff;
    border: 1px solid var(--osm-border, #F0E6D0);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--osm-navy, #1F1B3E);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
}

.osm-share-caption__copy:hover {
    background: var(--osm-coral, #FF5E5B);
    color: #fff;
    border-color: var(--osm-coral, #FF5E5B);
}

.osm-share-caption__copy.is-copied {
    background: var(--osm-mint, #8FCDA7);
    color: var(--osm-navy, #1F1B3E);
    border-color: var(--osm-mint, #8FCDA7);
}

/* "Just published" celebration banner */
.osm-share-celebrate {
    background: linear-gradient(135deg, #FF5E5B, #FFB627);
    color: #fff;
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 6px 18px rgba(255, 94, 91, 0.18);
}

.osm-share-celebrate__icon {
    font-size: 36px;
    flex-shrink: 0;
    line-height: 1;
}

.osm-share-celebrate__body {
    flex: 1;
}

.osm-share-celebrate__title {
    font-family: var(--osm-font-display, Georgia, serif);
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 4px;
    letter-spacing: -0.2px;
}

.osm-share-celebrate__sub {
    font-size: 13px;
    margin: 0;
    opacity: 0.95;
}
