/* Link shortener page. Builds on styles/affiliates.css (.lc-aff-*); everything here is scoped under .lc-sh. */

.lc-sh .lc-aff-badge.is-muted {
    background: #eef1f7;
    color: var(--aff-muted);
}

.lc-sh .lc-aff-linkrow input {
    font-weight: 600;
}

.lc-sh a.lc-aff-copy.lc-sh-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
}

.lc-sh .lc-aff-copy:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

/* Result of shortening */
.lc-sh-result {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 4px;
    padding: 16px 18px;
    border: 1px solid #bfe6cf;
    border-radius: 16px !important;
    background: var(--aff-green-soft);
}

.lc-sh-result[hidden] {
    display: none;
}

.lc-sh-result-ico {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    background: #fff;
    color: var(--aff-green);
    font-size: 18px;
}

.lc-sh-result > div {
    flex: 1;
    min-width: 180px;
}

.lc-sh-result strong {
    display: block;
    color: var(--aff-green);
    font-size: 15px;
    font-weight: 800;
}

.lc-sh-result a {
    display: block;
    color: var(--aff-blue);
    font-size: 17px;
    font-weight: 800;
    word-break: break-all;
}

/* Small buttons */
.lc-sh-btn {
    flex: none;
    margin: 0;
    padding: 10px 20px;
    border: 0;
    border-radius: 999px !important;
    background: var(--aff-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s ease;
}

.lc-sh-btn:hover {
    background: #1d44a3;
}

.lc-sh-btn.is-ghost {
    background: #fff;
    color: var(--aff-blue);
    border: 2px solid var(--aff-line);
}

.lc-sh-btn.is-ghost:hover {
    border-color: var(--aff-blue);
}

.lc-sh-btn.is-small {
    padding: 7px 14px;
    font-size: 13px;
}

.lc-sh-btn.is-copied {
    background: var(--aff-green);
    border-color: var(--aff-green);
    color: #fff;
}

/* Your links */
.lc-sh-list {
    display: grid;
    gap: 16px;
}

.lc-sh-link {
    padding: 20px 22px;
    border: 1px solid var(--aff-line);
    border-radius: 18px !important;
    background: #fff;
    box-shadow: 0 8px 22px rgba(23, 32, 51, 0.05);
}

.lc-sh-link.is-blocked {
    border-color: #f2d58a;
    background: #fffdf5;
}

.lc-sh-link > header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lc-sh-link-main {
    flex: 1;
    min-width: 0;
}

.lc-sh-short {
    display: block;
    color: var(--aff-blue);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    word-break: break-all;
}

.lc-sh-orig {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    color: var(--aff-muted);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lc-sh-paused {
    margin: 12px 0 0;
    padding: 10px 14px;
    border-radius: 12px !important;
    background: #fff4d6;
    color: #6b4a00;
    font-size: 13px;
}

.lc-sh-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.lc-sh-stats > div {
    padding: 10px 12px;
    border-radius: 12px !important;
    background: #f6f8fc;
}

.lc-sh-stats span {
    display: block;
    color: var(--aff-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lc-sh-stats strong {
    display: block;
    margin-top: 2px;
    color: var(--aff-ink);
    font-size: 17px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.lc-sh-goal {
    margin-top: 14px;
}

.lc-sh-bar {
    display: block;
    height: 8px;
    overflow: hidden;
    border-radius: 999px !important;
    background: #e9eef8;
}

.lc-sh-bar i {
    display: block;
    height: 100%;
    min-width: 2px;
    border-radius: 999px !important;
    background: linear-gradient(90deg, var(--aff-green), #36b36a);
    transition: width 0.4s ease;
}

.lc-sh-goal small {
    display: block;
    margin-top: 6px;
    color: var(--aff-muted);
    font-size: 12px;
    font-weight: 700;
}

.lc-sh-share {
    margin-top: 12px;
}

.lc-sh-share summary {
    display: inline-block;
    color: var(--aff-blue);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.lc-sh-share summary::-webkit-details-marker {
    display: none;
}

.lc-sh-share[open] summary {
    margin-bottom: 8px;
}

@media (max-width: 767px) {
    .lc-sh-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lc-sh-link > header {
        flex-wrap: wrap;
    }

    .lc-sh-link-main {
        flex-basis: 100%;
    }

    .lc-sh-result {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .lc-sh-result-ico {
        align-self: center;
    }
}

.lc-sh-short {
    font-variant-ligatures: none;
    font-feature-settings: "calt" 0, "liga" 0;
}

.lc-sh-link.is-blocked .lc-sh-goal {
    display: none;
}
