/* ShareKit — public styles */

/* ---- Inline bar ---- */
.sharekit-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 14px 0;
    margin: 24px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    clear: both;
}

.sharekit--align-left { justify-content: flex-start; }
.sharekit--align-center { justify-content: center; }
.sharekit--align-right { justify-content: flex-end; }

/* ---- Pinterest image pin overlay ---- */
/* All critical layout/position/color is set inline by PHP.
   This CSS only handles the hover-reveal transition and image sizing. */

.sharekit-pin-wrap img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Reveal on hover (overrides the inline opacity:0) */
.sharekit-pin-wrap:hover .sharekit-pin-btn {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.sharekit-pin-btn:hover {
    filter: brightness(1.1);
}

/* ---- Call to Action (always on its own line above buttons) ---- */
.sharekit-cta {
    display: block;
    width: 100%;
    font-size: 18px;
    font-weight: 600;
    color: inherit;
    margin-bottom: 8px;
    line-height: 1.3;
}

.sharekit-total {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-right: 4px;
    white-space: nowrap;
}

/* ---- Base button ---- */
.sharekit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    line-height: 1;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
}

.sharekit-btn svg { flex-shrink: 0; }
.sharekit-btn__count { font-size: 0.85em; opacity: 0.75; }

/* ---- Sizes ---- */
.sharekit--size-sm .sharekit-btn { height: 32px; min-width: 32px; font-size: 11px; }
.sharekit--size-sm .sharekit-btn svg { width: 14px; height: 14px; }

.sharekit--size-md .sharekit-btn { height: 40px; min-width: 40px; font-size: 13px; }
.sharekit--size-md .sharekit-btn svg { width: 16px; height: 16px; }

.sharekit--size-lg .sharekit-btn { height: 48px; min-width: 48px; font-size: 14px; }
.sharekit--size-lg .sharekit-btn svg { width: 18px; height: 18px; }

/* Icon-only padding */
.sharekit-btn:not(:has(.sharekit-btn__label)) { padding: 0; }

/* With label */
.sharekit-btn:has(.sharekit-btn__label) { padding: 0 14px; }
/* Fallback for browsers without :has() */
.sharekit--has-labels .sharekit-btn { padding: 0 14px; }

/* ---- Pill style ---- */
.sharekit--style-pill .sharekit-btn { border-radius: 999px; }

/* ---- Square style ---- */
.sharekit--style-square .sharekit-btn { border-radius: 6px; }

/* ---- Minimal style ---- */
.sharekit--style-minimal .sharekit-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 4px;
    color: #6b7280;
    padding: 0 6px;
}
.sharekit--style-minimal .sharekit-btn:hover {
    color: var(--sk-color);
    background: transparent !important;
    transform: translateY(-2px);
}

/* ---- Brand theme ---- */
.sharekit--theme-brand .sharekit-btn {
    background: var(--sk-bg-light);
    color: var(--sk-color);
    border: 1.5px solid var(--sk-bg-light);
}
.sharekit--theme-brand .sharekit-btn:hover {
    background: var(--sk-color);
    color: #fff;
    border-color: var(--sk-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.sharekit-btn.is-copied {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: #fff !important;
}

/* ---- Light theme ---- */
.sharekit--theme-light .sharekit-btn {
    background: #f3f4f6;
    color: #374151;
    border: 1.5px solid #e5e7eb;
}
.sharekit--theme-light .sharekit-btn:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* ---- Dark theme ---- */
.sharekit--theme-dark .sharekit-btn {
    background: #1f2937;
    color: #f9fafb;
    border: 1.5px solid #374151;
}
.sharekit--theme-dark .sharekit-btn:hover {
    background: #111827;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

/* ---- Floating sidebar ---- */
.sharekit-floating {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 999;
    padding: 12px 8px;
    background: #fff;
    border-radius: 40px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.12);
}

.sharekit-floating__label {
    font-size: 10px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    margin-bottom: 4px;
}

.sharekit-floating__total {
    font-size: 10px;
    font-weight: 700;
    color: #6b7280;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    margin-bottom: 4px;
}

.sharekit-floating .sharekit-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background: var(--sk-bg-light);
    color: var(--sk-color);
    border: 1.5px solid transparent;
    padding: 0;
    font-size: 0;
}

.sharekit-floating .sharekit-btn:hover {
    background: var(--sk-color);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.sharekit-floating .sharekit-btn svg {
    width: 16px;
    height: 16px;
}

/* ---- Accessibility ---- */
.sharekit-btn:focus-visible {
    outline: 2px solid var(--sk-color, #6366f1);
    outline-offset: 2px;
}

/* ---- Click to Tweet ---- */
.sharekit-ctt {
    display: block;
    margin: 28px 0;
    padding: 18px 20px;
    border-left: 4px solid #000;
    background: #f9fafb;
    color: #111827;
    text-decoration: none;
    box-shadow: none;
}

.sharekit-ctt:hover {
    color: #111827;
    background: #f3f4f6;
}

/* CTA left/right position */
.sharekit-ctt__cta--right { display: block; margin-top: 10px; }
.sharekit-ctt__cta--left  { display: block; margin-bottom: 10px; }

/* Simple theme */
.sharekit-ctt--simple {
    border-left-width: 3px;
    padding: 12px 16px;
    background: transparent;
}
.sharekit-ctt--simple:hover { background: #f9fafb; }

/* Simple Alternate theme */
.sharekit-ctt--simple_alternate {
    border-left: none;
    border-right: 3px solid #000;
    padding: 12px 16px;
    background: transparent;
}
.sharekit-ctt--simple_alternate:hover { background: #f9fafb; }

.sharekit-ctt__tweet {
    display: block;
    font-size: 18px;
    line-height: 1.5;
}

.sharekit-ctt__cta {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #000;
}

/* ---- Highlight share ---- */
.sharekit-highlight-pop {
    position: fixed;
    z-index: 999999;
    display: none;
    align-items: center;
    gap: 6px;
    padding: 7px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transform: translateX(-50%);
}

.sharekit-highlight-pop.is-visible { display: flex; }

.sharekit-highlight-pop button {
    border: 0;
    border-radius: 5px;
    background: #111827;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    line-height: 0;
    padding: 0;
}

/* ---- Pinterest image pins ---- */
.sharekit-pin-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.sharekit-pin-wrap img {
    display: block;
}

.sharekit-pin-button {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    opacity: 0;
    border-radius: 999px;
    background: #e60023;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 8px 10px;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.sharekit-pin-wrap:hover .sharekit-pin-button,
.sharekit-pin-button:focus {
    opacity: 1;
    color: #fff;
}
