/* ROHN8 Subtle Social Sharing Popover & Footer/Contact Social Links */
.r8-share-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.r8-share-trigger {
    min-height: 44px;
    gap: 8px;
}

.r8-share-wrap--guide .r8-share-trigger {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.875rem;
    border-radius: 999px;
}

.r8-share-wrap--hero .r8-share-trigger {
    min-height: 46px;
    padding-inline: 14px;
    background: rgba(12, 31, 22, 0.72);
    border-color: rgba(114, 168, 134, 0.48);
    color: #e6f4ec;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.r8-share-wrap--hero .r8-share-trigger:hover,
.r8-share-wrap--hero .r8-share-trigger:focus-visible {
    border-color: var(--signal, #c7f795);
    color: var(--signal, #c7f795);
    background: rgba(19, 49, 35, 0.88);
}

.r8-share-wrap--footer .r8-share-trigger {
    min-height: 32px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    gap: 6px;
    background: rgba(199, 247, 149, 0.08);
    border-color: rgba(199, 247, 149, 0.26);
    color: #d7ecdf;
}

.r8-share-wrap--footer .r8-share-trigger:hover,
.r8-share-wrap--footer .r8-share-trigger:focus-visible {
    background: rgba(199, 247, 149, 0.16);
    border-color: rgba(199, 247, 149, 0.55);
    color: #c7f795;
}

.r8-share-popover {
    position: absolute;
    inset-block-start: calc(100% + 10px);
    inset-inline-start: 0;
    z-index: 65;
    width: min(304px, calc(100vw - 32px));
    padding: 14px;
    border-radius: 18px;
    background: rgba(9, 24, 18, 0.96);
    border: 1px solid rgba(199, 247, 149, 0.22);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #eef7f2;
    transform-origin: top left;
    animation: r8SharePopIn 150ms ease-out;
}

.r8-share-popover.is-align-end {
    inset-inline-start: auto;
    inset-inline-end: 0;
    transform-origin: top right;
}

.r8-share-popover.is-open-up {
    inset-block-start: auto;
    inset-block-end: calc(100% + 10px);
    transform-origin: bottom left;
}

.r8-share-popover.is-align-end.is-open-up {
    transform-origin: bottom right;
}

.r8-share-popover[hidden] {
    display: none;
}

@keyframes r8SharePopIn {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.r8-share-pop-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-block-end: 10px;
    padding-block-end: 8px;
    border-block-end: 1px solid rgba(199, 247, 149, 0.12);
}

.r8-share-pop-head strong {
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #d7ecdf;
}

.r8-share-pop-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: #c4dfd0;
    cursor: pointer;
    transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.r8-share-pop-close:hover,
.r8-share-pop-close:focus-visible {
    background: rgba(199, 247, 149, 0.14);
    border-color: rgba(199, 247, 149, 0.45);
    color: #ffffff;
}

.r8-share-pop-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.r8-share-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 8px 11px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #eaf5ef;
    font-size: 0.83rem;
    font-weight: 600;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease, color 140ms ease;
}

.r8-share-item:hover,
.r8-share-item:focus-visible {
    background: rgba(199, 247, 149, 0.12);
    border-color: rgba(199, 247, 149, 0.4);
    color: #ffffff;
    transform: translateY(-1px);
}

.r8-share-item--facebook:hover {
    border-color: rgba(96, 165, 250, 0.55);
}

.r8-share-item--messenger:hover {
    border-color: rgba(129, 140, 248, 0.55);
}

.r8-share-item--zalo:hover {
    border-color: rgba(56, 189, 248, 0.55);
}

.r8-share-item--native:not([hidden]) {
    grid-column: 1 / -1;
    justify-content: center;
}

.r8-share-item.is-copied {
    background: rgba(199, 247, 149, 0.2);
    border-color: rgba(199, 247, 149, 0.65);
    color: #c7f795;
}

.r8-share-status {
    margin: 10px 0 0;
    padding: 7px 10px;
    border-radius: 10px;
    background: rgba(199, 247, 149, 0.11);
    border: 1px solid rgba(199, 247, 149, 0.28);
    color: #c7f795;
    font-size: 0.78rem;
    line-height: 1.4;
}

.r8-social-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
    transition: color 150ms ease, opacity 150ms ease;
}

.r8-social-inline-link:hover,
.r8-social-inline-link:focus-visible {
    color: #c7f795;
}

@media (max-width: 560px) {
    .r8-share-popover,
    .r8-share-popover.is-align-end {
        position: fixed;
        inset-inline: 14px;
        inset-block-start: auto;
        inset-block-end: 16px;
        width: auto;
        max-width: 420px;
        margin-inline: auto;
        z-index: 130;
        transform-origin: bottom center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .r8-share-popover,
    .r8-share-item,
    .r8-share-pop-close {
        animation: none;
        transition: none;
    }
}
