@import url('/themes/default/assets/css/ping.css');

/* ==========================================================
   CHATITALY NEON v2.3 — Ping/timeline polish
   ========================================================== */

.ct-neon-theme .ping-card,
.ct-neon-theme .pong-card,
.ct-neon-theme .ping-composer,
.ct-neon-theme .ping-feed-tabs,
.ct-neon-theme .ping-sidebar .card,
.ct-neon-theme .ping-sidebar .mv-widget {
    color: #f7f4ff;
    background: linear-gradient(145deg, rgba(18,10,29,.95), rgba(8,5,13,.97));
    border-color: rgba(255,255,255,.09);
    box-shadow: 0 14px 38px rgba(0,0,0,.23), inset 0 1px 0 rgba(255,255,255,.03);
}

.ct-neon-theme .ping-card,
.ct-neon-theme .pong-card {
    border-radius: 17px;
}

.ct-neon-theme .ping-author-name,
.ct-neon-theme .pong-author-name,
.ct-neon-theme .ping-link-title,
.ct-neon-theme .ping-github-repository-title,
.ct-neon-theme .ping-github-pr-title,
.ct-neon-theme .ping-github-issue-title,
.ct-neon-theme .ping-github-release-title {
    color: #fff;
}

.ct-neon-theme .ping-username,
.ct-neon-theme .pong-username,
.ct-neon-theme .ping-date,
.ct-neon-theme .pong-date,
.ct-neon-theme .ping-author-status,
.ct-neon-theme .pong-author-status,
.ct-neon-theme .ping-link-description {
    color: #aa9db8;
}

.ct-neon-theme .ping-content,
.ct-neon-theme .pong-content {
    color: #ddd5e7;
}

.ct-neon-theme .ping-feed-tab {
    color: #b7aabd;
    background: transparent;
    box-shadow: none;
}

.ct-neon-theme .ping-feed-tab:hover,
.ct-neon-theme .ping-feed-tab.is-active {
    color: #fff;
    background: rgba(168,85,247,.10);
    transform: none;
}

.ct-neon-theme .ping-composer-textarea,
.ct-neon-theme .ping-code-textarea,
.ct-neon-theme .ping-code-language {
    color: #fff;
    background: rgba(5,3,10,.86);
    border-color: rgba(255,255,255,.10);
}

.ct-neon-theme .ping-more-dropdown {
    color: #f7f4ff;
    background: #0d0815;
    border-color: rgba(255,255,255,.10);
    box-shadow: 0 20px 48px rgba(0,0,0,.38);
}

.ct-neon-theme .ping-more-action,
.ct-neon-theme .ping-action,
.ct-neon-theme .ping-save-button,
.ct-neon-theme .ping-vote {
    color: #c9bdd8;
}

.ct-neon-theme .ping-more-action:hover,
.ct-neon-theme .ping-action:hover,
.ct-neon-theme .ping-save-button:hover,
.ct-neon-theme .ping-vote:hover {
    color: #fff;
    background: rgba(168,85,247,.09);
}

.ct-neon-theme .ping-avatar,
.ct-neon-theme .pong-avatar {
    box-shadow: 0 0 0 1px rgba(190,102,255,.28), 0 0 18px rgba(168,85,247,.12);
}

/* ==========================================================
   CHATITALY NEON v2.4.4 — Ping link/embed preview fix
   Mantiene le anteprime dei link coerenti con il tema neon.
   ========================================================== */

.ct-neon-theme .ping-link-preview {
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(circle at 88% 15%, rgba(255,36,79,.11), transparent 34%),
        radial-gradient(circle at 12% 85%, rgba(168,85,247,.13), transparent 36%),
        linear-gradient(145deg, rgba(20,11,32,.98), rgba(8,5,14,.99));

    border: 1px solid rgba(205,105,255,.22);
    border-radius: 14px;

    color: #f7f4ff;

    box-shadow:
        0 12px 32px rgba(0,0,0,.28),
        inset 0 1px 0 rgba(255,255,255,.035);

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

.ct-neon-theme .ping-link-preview::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background:
        linear-gradient(
            105deg,
            transparent 0%,
            transparent 42%,
            rgba(255,255,255,.045) 50%,
            transparent 58%,
            transparent 100%
        );

    transform: translateX(-115%);
    transition: transform .55s ease;
}

.ct-neon-theme .ping-link-preview:hover {
    background:
        radial-gradient(circle at 88% 15%, rgba(255,36,79,.15), transparent 36%),
        radial-gradient(circle at 12% 85%, rgba(168,85,247,.18), transparent 38%),
        linear-gradient(145deg, rgba(24,12,38,.99), rgba(9,5,16,.99));

    border-color: rgba(220,105,255,.42);

    box-shadow:
        0 16px 42px rgba(0,0,0,.34),
        0 0 26px rgba(168,85,247,.08),
        0 0 20px rgba(255,36,79,.05),
        inset 0 1px 0 rgba(255,255,255,.05);

    transform: translateY(-2px);
}

.ct-neon-theme .ping-link-preview:hover::after {
    transform: translateX(115%);
}

.ct-neon-theme .ping-link-image-wrapper {
    background:
        linear-gradient(145deg, rgba(17,9,27,.98), rgba(7,4,12,.99));

    border-right: 1px solid rgba(255,255,255,.075);
}

.ct-neon-theme .ping-link-image {
    opacity: .94;
    filter: saturate(.92) contrast(1.03);
}

.ct-neon-theme .ping-link-preview:hover .ping-link-image {
    opacity: 1;
    filter: saturate(1.05) contrast(1.04);
}

.ct-neon-theme .ping-link-body {
    position: relative;
    z-index: 1;
    padding: 16px 18px;
}

.ct-neon-theme .ping-link-site {
    color: #d76fff !important;
    font-weight: 850;
    letter-spacing: .055em;
}

.ct-neon-theme .ping-link-site::before {
    content: "";
    flex: 0 0 auto;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ff315f;
    box-shadow: 0 0 9px rgba(255,49,95,.8);
}

.ct-neon-theme .ping-link-title {
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 820;
    letter-spacing: -.015em;
}

.ct-neon-theme .ping-link-description {
    color: #b9abc8 !important;
    line-height: 1.5;
}

.ct-neon-theme .ping-link-favicon {
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.10);
}

.ct-neon-theme .ping-link-play {
    background: rgba(9,5,15,.28);
}

.ct-neon-theme .ping-link-preview:hover .ping-link-play {
    background: rgba(9,5,15,.18);
}

/* Anche le preview tecniche/GitHub non devono tornare bianche. */
.ct-neon-theme .ping-github-preview,
.ct-neon-theme .ping-github-header,
.ct-neon-theme .ping-github-file-heading,
.ct-neon-theme .ping-github-code,
.ct-neon-theme .ping-github-lines,
.ct-neon-theme .ping-github-commit,
.ct-neon-theme .ping-github-pr,
.ct-neon-theme .ping-github-issue,
.ct-neon-theme .ping-github-release,
.ct-neon-theme .ping-github-repository-preview,
.ct-neon-theme .ping-github-discussion,
.ct-neon-theme .ping-github-gist,
.ct-neon-theme .ping-github-tree,
.ct-neon-theme .ping-github-compare,
.ct-neon-theme .ping-github-comment,
.ct-neon-theme .ping-github-workflow,
.ct-neon-theme .ping-github-fallback {
    background: #0d0815 !important;
    color: #e8e0f1 !important;
    border-color: rgba(255,255,255,.09) !important;
}

.ct-neon-theme .ping-github-header:hover {
    background: rgba(168,85,247,.08) !important;
}

.ct-neon-theme .ping-github-provider .fa-github,
.ct-neon-theme .ping-github-provider span,
.ct-neon-theme .ping-github-repository strong,
.ct-neon-theme .ping-github-file-path,
.ct-neon-theme .ping-github-repository-title,
.ct-neon-theme .ping-github-pr-title,
.ct-neon-theme .ping-github-issue-title,
.ct-neon-theme .ping-github-release-title {
    color: #f7f4ff !important;
}

.ct-neon-theme .ping-github-header > .fa-arrow-up-right-from-square,
.ct-neon-theme .ping-github-repository span,
.ct-neon-theme .ping-github-file-path i {
    color: #a99bb7 !important;
}

/* Anteprime documento / file */
.ct-neon-theme .ping-document-item {
    background: linear-gradient(145deg, rgba(18,10,29,.96), rgba(8,5,13,.98));
    border-color: rgba(255,255,255,.09);
    color: #f7f4ff;
}

.ct-neon-theme .ping-document-title {
    color: #fff;
}

.ct-neon-theme .ping-document-meta {
    color: #aa9db8;
}

@media (max-width: 640px) {
    .ct-neon-theme .ping-link-preview {
        grid-template-columns: 112px minmax(0, 1fr);
        border-radius: 12px;
    }

    .ct-neon-theme .ping-link-image-wrapper {
        width: 112px;
        min-height: 104px;
    }

    .ct-neon-theme .ping-link-image {
        min-height: 104px;
    }

    .ct-neon-theme .ping-link-body {
        padding: 12px 13px;
    }

    .ct-neon-theme .ping-link-title {
        font-size: 14px;
    }

    .ct-neon-theme .ping-link-description {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
}
