/* ==========================================================================
   kuehn-social: Share Buttons
   ========================================================================== */

.kuehn-social-share {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--kuehn-site-border, #e5e7eb);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.kuehn-social-share__label {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--kuehn-site-muted, #6b7280);
}

/* --- Row: social icons + copy bar side by side --- */
.kuehn-social-share__row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* --- Social icon buttons --- */
.kuehn-social-share__buttons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.kuehn-social-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--kuehn-site-border, #e5e7eb);
    background: var(--kuehn-site-surface, #ffffff);
    color: var(--kuehn-site-text, #111827);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
    flex-shrink: 0;
}

.kuehn-social-share__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.kuehn-social-share__btn--x:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.kuehn-social-share__btn--tumblr:hover {
    background: #001935;
    color: #ffffff;
    border-color: #001935;
}

.kuehn-social-share__btn--bluesky:hover {
    background: #0085ff;
    color: #ffffff;
    border-color: #0085ff;
}

.kuehn-social-share__btn--threads:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.kuehn-social-share__btn--pinterest:hover {
    background: #e60023;
    color: #ffffff;
    border-color: #e60023;
}

.kuehn-social-share__btn--whatsapp:hover {
    background: #25d366;
    color: #ffffff;
    border-color: #25d366;
}

/* --- Copy link row --- */
.kuehn-social-share__copy-row {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 200px;
    max-width: 420px;
    height: 40px;
    border: 1px solid var(--kuehn-site-border, #e5e7eb);
    border-radius: 10px;
    overflow: hidden;
    background: var(--kuehn-site-bg-alt, #f9fafb);
}

.kuehn-social-share__copy-icon {
    display: flex;
    align-items: center;
    padding: 0 10px 0 12px;
    color: var(--kuehn-site-muted, #9ca3af);
    flex-shrink: 0;
}

.kuehn-social-share__url {
    flex: 1;
    font-size: 0.78rem;
    font-family: ui-monospace, 'SF Mono', 'Cascadia Mono', monospace;
    color: var(--kuehn-site-muted, #6b7280);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1;
}

.kuehn-social-share__copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 14px;
    height: 100%;
    border: none;
    border-left: 1px solid var(--kuehn-site-border, #e5e7eb);
    background: var(--kuehn-site-surface, #ffffff);
    color: var(--kuehn-site-text, #111827);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.kuehn-social-share__copy-btn:hover {
    background: var(--kuehn-site-bg-alt, #f3f4f6);
}

/* Copied state */
.kuehn-social-share__copy-done {
    display: none;
    align-items: center;
    gap: 5px;
}

.kuehn-social-share__copy-btn.is-copied {
    color: #15803d;
}

.kuehn-social-share__copy-btn.is-copied .kuehn-social-share__copy-default {
    display: none;
}

.kuehn-social-share__copy-btn.is-copied .kuehn-social-share__copy-done {
    display: inline-flex;
}
