/* =========================================================
   LANGKAH KUDA — EDITORIAL SHARE DESK
   2E-C3B RESPONSIVE PREMIUM
   ========================================================= */

.lk-social-share {
    position: relative;
    display: grid;
    grid-template-columns:
        minmax(215px, .78fr)
        minmax(0, 1.72fr);
    align-items: center;
    gap: clamp(24px, 4vw, 52px);

    width: 100%;
    margin: 22px auto 42px;
    padding: clamp(20px, 3vw, 28px);

    overflow: visible;

    border: 1px solid var(--ink, #24272b);
    border-radius: 4px;

    background:
        linear-gradient(
            110deg,
            rgba(181, 45, 38, .045),
            transparent 36%
        ),
        var(--surface, #f6f0e4);

    box-shadow:
        7px 7px 0
        var(--grid, rgba(35, 38, 43, .11));
}

/* Garis editorial merah */
.lk-social-share::before {
    position: absolute;
    top: -1px;
    left: -1px;

    width: clamp(78px, 13vw, 150px);
    height: 4px;

    content: "";

    background: var(--accent, #b62f28);
}

/* Nomor/penanda editorial */
.lk-social-share::after {
    position: absolute;
    top: 10px;
    right: 14px;

    content: "SHARE / 01";

    color: var(--ink-soft, #6a6d72);
    font-family:
        var(--font-mono),
        "Space Mono",
        monospace;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .15em;
    opacity: .58;
}

/* =========================================================
   HEADING
   ========================================================= */

.lk-share-heading {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 14px;

    min-width: 0;
}

.lk-share-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-content: center;

    color: #f2d681;
    border: 1px solid #493126;
    border-radius: 3px;

    background:
        linear-gradient(
            145deg,
            #6f263d,
            #4d1728
        );

    box-shadow:
        3px 3px 0
        rgba(15, 31, 49, .13);

    font-family:
        var(--font-mono),
        monospace;
    font-size: 20px;
    font-weight: 900;
}

.lk-share-heading > div {
    min-width: 0;
}

/* Eyebrow tanpa mengubah HTML */
.lk-share-heading > div::before {
    display: block;
    margin-bottom: 4px;

    content: "BAGIKAN / SHARE";

    color: var(--accent, #b62f28);
    font-family:
        var(--font-mono),
        "Space Mono",
        monospace;
    font-size: 7px;
    font-weight: 850;
    letter-spacing: .16em;
}

.lk-share-heading strong,
.lk-share-heading small {
    display: block;
}

.lk-share-heading strong {
    color: var(--ink, #24272b);

    font-family:
        var(--font-display),
        "Newsreader",
        Georgia,
        serif;
    font-size: clamp(18px, 2.1vw, 23px);
    font-weight: 750;
    line-height: 1.05;
}

.lk-share-heading small {
    max-width: 30ch;
    margin-top: 6px;

    color: var(--ink-soft, #696d73);
    font-family:
        var(--font-body),
        Georgia,
        serif;
    font-size: 10px;
    line-height: 1.45;
}

/* =========================================================
   ACTION GRID
   ========================================================= */

.lk-share-actions {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 8px;

    min-width: 0;
}

.lk-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;

    min-width: 0;
    min-height: 43px;
    gap: 9px;
    padding: 9px 11px;

    color: var(--ink, #24272b);

    border: 1px solid
        var(--line, rgba(35, 38, 43, .18));
    border-radius: 3px;

    background:
        rgba(255, 255, 255, .27);

    cursor: pointer;
    text-decoration: none;

    font-family:
        var(--font-mono),
        "Space Mono",
        monospace;
    font-size: 7px;
    font-weight: 850;
    letter-spacing: .025em;
    line-height: 1.2;

    transition:
        transform .18s ease,
        color .18s ease,
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.lk-share-button > span:first-child {
    display: grid;
    flex: 0 0 24px;

    width: 24px;
    height: 24px;
    place-content: center;

    color: #6f263d;

    border: 1px solid
        rgba(111, 38, 61, .17);
    border-radius: 2px;

    background:
        rgba(23, 63, 105, .07);

    font-size: 7px;
    font-weight: 950;

    transition:
        color .18s ease,
        border-color .18s ease,
        background .18s ease;
}

.lk-share-button:hover,
.lk-share-button:focus-visible {
    z-index: 2;

    transform: translateY(-2px);

    color: var(--bg, #f6f0e4);
    border-color: var(--ink, #24272b);

    background: var(--ink, #24272b);

    box-shadow:
        3px 3px 0
        rgba(181, 45, 38, .22);

    outline: none;
}

.lk-share-button:hover > span:first-child,
.lk-share-button:focus-visible > span:first-child {
    color: #f2d681;
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
}

/* Native share menjadi aksi utama ketika didukung */
.lk-share-native {
    display: none;
    color: #fff;
    border-color: #6f263d;
    background: #6f263d;
}

.lk-share-native.is-supported {
    display: inline-flex;
}

.lk-share-native > span:first-child {
    color: #f2d681;
    border-color: rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .09);
}

/* Identitas halus per platform */
.lk-share-whatsapp:hover,
.lk-share-whatsapp:focus-visible {
    border-color: #187b50;
    background: #187b50;
}

.lk-share-facebook:hover,
.lk-share-facebook:focus-visible {
    border-color: #315b9d;
    background: #315b9d;
}

.lk-share-linkedin:hover,
.lk-share-linkedin:focus-visible {
    border-color: #176a91;
    background: #176a91;
}

.lk-share-x:hover,
.lk-share-x:focus-visible {
    border-color: #111;
    background: #111;
}

.lk-share-copy.is-copied {
    color: #fff;
    border-color: #26734f;
    background: #26734f;
}

.lk-share-status {
    position: absolute;
    right: 18px;
    bottom: -25px;

    min-height: 18px;
    margin: 0;

    color: #26734f;

    font-family:
        var(--font-mono),
        monospace;
    font-size: 8px;
    font-weight: 800;
}

/* =========================================================
   DARK MODE
   ========================================================= */

html[data-theme="malam"] .lk-social-share {
    border-color: rgba(255, 255, 255, .22);

    background:
        linear-gradient(
            110deg,
            rgba(207, 67, 58, .09),
            transparent 38%
        ),
        rgba(16, 27, 43, .96);

    box-shadow:
        7px 7px 0
        rgba(0, 0, 0, .23);
}

html[data-theme="malam"] .lk-share-heading strong {
    color: rgba(255, 255, 255, .94);
}

html[data-theme="malam"] .lk-share-heading small {
    color: rgba(255, 255, 255, .59);
}

html[data-theme="malam"] .lk-share-button {
    color: rgba(255, 255, 255, .88);
    border-color: rgba(255, 255, 255, .13);
    background: rgba(255, 255, 255, .035);
}

html[data-theme="malam"]
.lk-share-button > span:first-child {
    color: #dfc16c;
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .055);
}

html[data-theme="malam"] .lk-share-native {
    color: #fff;
    border-color: #6f263d;
    background: #6f263d;
}

/* =========================================================
   TABLET / iPAD
   ========================================================= */

@media (max-width: 900px) {
    .lk-social-share {
        grid-template-columns: 1fr;
        gap: 19px;

        padding: 22px;
    }

    .lk-share-heading {
        padding-bottom: 18px;
        border-bottom: 1px solid
            var(--line, rgba(35, 38, 43, .16));
    }

    .lk-share-heading small {
        max-width: 52ch;
    }

    .lk-share-actions {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}

/* =========================================================
   HP
   ========================================================= */

@media (max-width: 620px) {
    .lk-social-share {
        margin: 14px 0 30px;
        padding: 18px 16px;

        border-radius: 3px;

        box-shadow:
            4px 4px 0
            var(--grid, rgba(35, 38, 43, .11));
    }

    .lk-social-share::after {
        top: 8px;
        right: 10px;
        font-size: 6px;
    }

    .lk-share-heading {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 11px;
        padding-bottom: 15px;
    }

    .lk-share-icon {
        width: 42px;
        height: 42px;
        font-size: 17px;
    }

    .lk-share-heading strong {
        font-size: 18px;
    }

    .lk-share-heading small {
        font-size: 9px;
    }

    .lk-share-actions {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .lk-share-button {
        min-height: 42px;
        padding: 8px 9px;
        font-size: 7px;
    }

    .lk-share-status {
        position: static;
        grid-column: 1 / -1;

        min-height: 0;
        padding-top: 4px;
    }
}

/* HP sangat kecil */
@media (max-width: 360px) {
    .lk-social-share {
        padding-inline: 13px;
    }

    .lk-share-actions {
        grid-template-columns: 1fr 1fr;
    }

    .lk-share-button {
        gap: 6px;
        padding-inline: 7px;
        font-size: 6.5px;
    }
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .lk-share-button,
    .lk-share-button > span:first-child {
        transition: none;
    }

    .lk-share-button:hover,
    .lk-share-button:focus-visible {
        transform: none;
    }
}


/* =========================================================
   LANGKAH KUDA — ARTICLE SHARE POSITION 2E-C3C-2
   ========================================================= */

.lk-social-share-artikel {
  width: 100%;
  max-width: 840px;
  margin:
    0
    auto
    36px;
}

@media (max-width: 920px) {
  .lk-social-share-artikel {
    max-width: 100%;
  }
}

@media (max-width: 620px) {
  .lk-social-share-artikel {
    width: 100%;
    max-width: 100%;
    margin:
      0
      0
      28px;
  }

  .lk-social-share,
  .lk-share-heading,
  .lk-share-actions,
  .lk-share-button {
    min-width: 0;
    max-width: 100%;
  }

  .lk-share-button {
    overflow: hidden;
  }

  .lk-share-button > span:last-child {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}
