/* ==========================================================================
   Scam Report — Public Feed ("Recent Reports")
   Shares the same palette as the report wizard (scam-report.css).
   These :root values are redeclared here so this file also works stand-alone.
   ========================================================================== */
:root {
    --sd-primary: #3f63b4;
    --sd-primary-dark: #2f4c8f;
    --sd-primary-light: #eaf0fb;
    --sd-primary-lighter: #f5f8fd;
    --sd-warn: #e8622c;
    --sd-warn-light: #fdece4;
    --sd-danger: #d64545;
    --sd-danger-light: #fbe7e7;
    --sd-success: #1f9d55;
    --sd-success-light: #e8f8ee;
    --sd-text: #24304a;
    --sd-muted: #6b7690;
    --sd-border: #e1e6f0;
    --sd-radius: 12px;
}

.scam-feed {
    background: #f4f6fb;
    padding: 28px 16px 60px;
}

.scam-feed__inner { max-width: 760px; margin: 0 auto; }

/* ---- Section header ---- */
.scam-feed__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.scam-feed__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--sd-text);
}

.scam-feed__title .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--sd-danger);
    flex-shrink: 0;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--sd-success-light);
    color: var(--sd-success);
    font-size: .78rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
}

.live-badge .pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sd-success);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(31, 157, 85, .5); }
    70%  { box-shadow: 0 0 0 7px rgba(31, 157, 85, 0); }
    100% { box-shadow: 0 0 0 0 rgba(31, 157, 85, 0); }
}

/* ---- Report card ---- */
.report-card {
    background: #fff;
    border: 1px solid var(--sd-border);
    border-radius: var(--sd-radius);
    box-shadow: 0 4px 18px rgba(31, 45, 89, .05);
    margin-bottom: 20px;
    overflow: hidden;
}

.report-card__header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px 4px;
}

.report-card__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #9aa4bd;
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.report-card__meta { flex: 1; min-width: 0; }

.report-card__name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.report-card__name, .report-card__name a {
    font-weight: 700;
    font-size: .95rem;
    color: var(--sd-text);
}

.report-badge {
    display: inline-block;
    background: var(--sd-warn-light);
    color: var(--sd-warn);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 6px;
}

.report-card__time {
    font-size: .78rem;
    color: var(--sd-muted);
    margin-top: 2px;
}

/* ---- Target profile accordion ---- */
.target-profile {
    margin: 14px 20px 0;
    border: 1px solid var(--sd-border);
    border-radius: 10px;
    overflow: hidden;
}

.target-profile__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    background: var(--sd-primary-lighter);
    border: none;
    padding: 11px 14px;
    cursor: pointer;
    text-align: left;
}

.target-profile__toggle .label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: .87rem;
    color: var(--sd-text);
}

.target-profile__toggle .label .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sd-warn);
    flex-shrink: 0;
}

.target-profile__toggle .amount {
    font-weight: 800;
    font-size: .87rem;
    color: var(--sd-danger);
    white-space: nowrap;
}

.target-profile__toggle .chevron {
    color: var(--sd-muted);
    transition: transform .2s ease;
    flex-shrink: 0;
}

.target-profile.is-open .target-profile__toggle .chevron { transform: rotate(180deg); }

.target-profile__body {
    display: none;
    padding: 4px 14px 12px;
    background: #fff;
}

.target-profile.is-open .target-profile__body { display: block; }

.tp-group { padding: 10px 0; border-top: 1px solid var(--sd-border); }
.tp-group:first-child { border-top: none; }

.tp-group__title {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--sd-muted);
    margin-bottom: 8px;
}

.tp-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
}

.tp-row__icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: var(--sd-primary-light);
    color: var(--sd-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    flex-shrink: 0;
}

.tp-row__label {
    font-size: .82rem;
    color: var(--sd-muted);
    flex: 1;
}

.tp-row__value {
    font-size: .85rem;
    font-weight: 700;
    color: var(--sd-text);
    text-align: right;
}

.tp-row__value.is-danger { color: var(--sd-danger); }

.tp-row__value a {
    color: var(--sd-primary);
    text-decoration: none;
}

.tp-row__value a:hover { text-decoration: underline; }

.tp-social-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: .82rem;
}
.tp-social-icon.fb { background: #1877f2; }
.tp-social-icon.wa { background: #25d366; }
.tp-social-icon.tg { background: #229ed9; }
.tp-social-icon.ig { background: #d6249f; }
.tp-social-icon.web { background: var(--sd-primary); }

/* ---- Description ---- */
.report-card__desc {
    padding: 14px 20px 0;
    font-size: .9rem;
    line-height: 1.65;
    color: #3a4258;
}

.report-card__desc.is-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-btn {
    display: inline-block;
    margin: 6px 20px 0;
    background: none;
    border: none;
    padding: 0;
    color: var(--sd-primary);
    font-weight: 700;
    font-size: .84rem;
    cursor: pointer;
}

.read-more-btn:hover { text-decoration: underline; }

/* ---- Additional info snippet ---- */
.report-card__additional {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 8px 20px 0;
    padding: 8px 12px;
    background: var(--sd-primary-lighter);
    border-radius: 8px;
    font-size: .84rem;
    line-height: 1.6;
    color: var(--sd-muted);
}

.report-card__additional i {
    color: var(--sd-primary);
    margin-right: 4px;
}

.tp-muted-name {
    color: var(--sd-muted);
    font-weight: 500;
    font-size: .78rem;
}

/* ---- Proof gallery ---- */
.proof-gallery {
    display: flex;
    gap: 10px;
    padding: 14px 20px 4px;
    overflow-x: auto;
}

.proof-gallery::-webkit-scrollbar { height: 5px; }
.proof-gallery::-webkit-scrollbar-thumb { background: var(--sd-border); border-radius: 10px; }

.proof-thumb {
    flex: 0 0 auto;
    width: 96px;
    height: 96px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--sd-border);
    cursor: pointer;
    background: var(--sd-primary-lighter);
}

.proof-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.proof-thumb.is-broken {
    display: flex;
    align-items: center;
    justify-content: center;
}
.proof-thumb.is-broken img { display: none; }
.proof-thumb.is-broken::after {
    content: "\f071";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--sd-warn);
    font-size: 1.3rem;
}

/* ---- Footer actions ---- */
.report-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px 16px;
    margin-top: 10px;
}

.report-card__footer .left-actions,
.report-card__footer .right-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--sd-border);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: .83rem;
    font-weight: 600;
    color: var(--sd-muted);
    cursor: pointer;
    transition: all .15s ease;
}

.action-btn:hover { border-color: var(--sd-primary); color: var(--sd-primary); }

.action-btn.icon-only { padding: 7px 10px; }

.action-btn.is-liked {
    background: var(--sd-primary-light);
    border-color: var(--sd-primary);
    color: var(--sd-primary-dark);
}

/* ---- Lightbox ---- */
.proof-lightbox-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 20, 35, .85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1080;
    padding: 24px;
}

.proof-lightbox-backdrop.is-open { display: flex; }

.proof-lightbox-backdrop img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
}

.proof-lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
}

/* ---- Pagination ---- */
.scam-feed__pagination { display: flex; justify-content: center; margin-top: 26px; }

/* ---- Empty state ---- */
.scam-feed__empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--sd-muted);
}

@media (max-width: 576px) {
    .report-card__header { padding: 16px 16px 4px; }
    .target-profile { margin: 12px 16px 0; }
    .report-card__desc { padding: 12px 16px 0; }
    .proof-gallery { padding: 12px 16px 4px; }
    .report-card__footer { padding: 10px 16px 14px; }
    .read-more-btn { margin: 6px 16px 0; }
    .report-card__additional { margin: 8px 16px 0; }
}

.scam-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--sd-border);
    border-radius: 999px;
    padding: 6px 6px 6px 4px;
    margin-bottom: 22px;
    box-shadow: 0 4px 18px rgba(31, 45, 89, .05);
}
.scam-search-bar__input {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px 8px 16px;
}
.scam-search-bar__input i { color: var(--sd-muted); font-size: .9rem; flex-shrink: 0; }
.scam-search-bar__input input {
    border: none;
    outline: none;
    flex: 1;
    min-width: 0;
    background: transparent;
    font-size: .9rem;
    color: var(--sd-text);
}
.scam-search-bar__input input::placeholder { color: var(--sd-muted); }
.scam-search-bar__btn {
    background: var(--sd-primary);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 11px 26px;
    font-weight: 700;
    font-size: .86rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s ease;
}
.scam-search-bar__btn:hover { background: var(--sd-primary-dark); }

@media (max-width: 480px) {
    .scam-search-bar__input { padding: 8px 4px 8px 12px; }
    .scam-search-bar__btn { padding: 11px 18px; font-size: .82rem; }
}

.scam-feed__header-actions { display: flex; align-items: center; gap: 10px; }

.scam-feed__add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--sd-primary);
    color: #fff;
    text-decoration: none;
    font-size: .84rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 999px;
    transition: background .15s ease;
    white-space: nowrap;
}
.scam-feed__add-btn:hover { background: var(--sd-primary-dark); color: #fff; }

/* ==========================================================================
   Scam Report — Detail Page
   ========================================================================== */
.report-detail { max-width: 680px; }

.report-detail__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    color: var(--sd-muted);
    margin-bottom: 16px;
}

.report-detail__breadcrumb a {
    color: var(--sd-primary);
    text-decoration: none;
    font-weight: 600;
}
.report-detail__breadcrumb a:hover { text-decoration: underline; }
.report-detail__breadcrumb i { font-size: .62rem; }
.report-detail__breadcrumb span { font-weight: 700; color: var(--sd-text); }

.report-detail__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.report-card__name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.report-detail__header-right { display: flex; align-items: center; gap: 10px; }

.report-detail__views {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--sd-muted);
}

/* ---- Target Profile Database card ---- */
.profile-db {
    background: #fff;
    border: 1px solid var(--sd-border);
    border-radius: var(--sd-radius);
    box-shadow: 0 4px 18px rgba(31, 45, 89, .05);
    overflow: hidden;
    margin-bottom: 18px;
}

.profile-db__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 18px;
    background: var(--sd-primary-lighter);
    border-bottom: 1px solid var(--sd-border);
}

.profile-db__header .label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: .88rem;
    color: var(--sd-text);
}

.profile-db__header .label .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sd-danger);
    flex-shrink: 0;
}

.profile-db__loss {
    font-weight: 800;
    font-size: .9rem;
    color: var(--sd-danger);
    white-space: nowrap;
}

.profile-db__body { padding: 14px 18px 18px; }

.profile-db__name-label {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--sd-muted);
    margin-bottom: 4px;
}

.profile-db__name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--sd-text);
    margin-bottom: 14px;
    word-break: break-word;
}

.profile-db__section {
    border-top: 1px solid var(--sd-border);
    padding: 12px 0;
}

.profile-db__section-title {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--sd-muted);
    margin-bottom: 8px;
}

.profile-db__row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
}

.profile-db__icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: var(--sd-primary-light);
    color: var(--sd-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    flex-shrink: 0;
}

.profile-db__row-label {
    font-size: .82rem;
    color: var(--sd-muted);
    flex: 1;
}

.profile-db__row-value {
    font-size: .85rem;
    font-weight: 700;
    color: var(--sd-text);
    text-align: right;
    word-break: break-word;
}

.profile-db__chip {
    display: inline-block;
    background: var(--sd-success-light);
    color: var(--sd-success);
    font-size: .7rem;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 999px;
    text-decoration: none !important;
    margin-left: 4px;
}
a.profile-db__chip:hover { filter: brightness(.95); }

.profile-db__chip--method {
    background: var(--sd-primary-light);
    color: var(--sd-primary-dark);
    margin-left: 0;
    flex-shrink: 0;
}

.profile-db__muted { color: var(--sd-muted); font-weight: 500; font-size: .8rem; }

/* ---- Description / sections ---- */
.report-detail__desc {
    background: #fff;
    border: 1px solid var(--sd-border);
    border-radius: var(--sd-radius);
    padding: 16px 18px;
    font-size: .92rem;
    line-height: 1.7;
    color: #3a4258;
    margin-bottom: 14px;
    word-break: break-word;
}

.report-detail__section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: .95rem;
    color: var(--sd-text);
    margin: 22px 0 12px;
}

.report-detail__count {
    font-size: .72rem;
    font-weight: 700;
    color: var(--sd-muted);
    background: #fff;
    border: 1px solid var(--sd-border);
    padding: 2px 10px;
    border-radius: 999px;
}

.proof-gallery--detail { flex-wrap: wrap; padding: 0; }
.proof-gallery--detail .proof-thumb { width: 120px; height: 120px; }

/* ---- Reactions ---- */
.report-detail__reactions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0 26px;
}

.report-detail__reactions .left-actions,
.report-detail__reactions .right-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn.is-disliked {
    background: var(--sd-danger-light);
    border-color: var(--sd-danger);
    color: var(--sd-danger);
}

/* ---- Comments ---- */
.comments-section {
    background: #fff;
    border: 1px solid var(--sd-border);
    border-radius: var(--sd-radius);
    box-shadow: 0 4px 18px rgba(31, 45, 89, .05);
    padding: 16px 18px 18px;
}

.comments-section__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: .95rem;
    color: var(--sd-text);
    margin-bottom: 14px;
}

.comments-list { display: flex; flex-direction: column; gap: 14px; }

.comment-item { display: flex; gap: 10px; }

.comment-item__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #9aa4bd;
    color: #fff;
    font-weight: 700;
    font-size: .72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comment-item__content { min-width: 0; flex: 1; }

.comment-item__bubble {
    background: var(--sd-primary-lighter);
    border-radius: 10px;
    padding: 9px 13px;
}

.comment-item__name {
    font-weight: 700;
    font-size: .83rem;
    color: var(--sd-text);
}

.comment-item__time {
    font-size: .72rem;
    color: var(--sd-muted);
    margin-left: 8px;
}

.comment-item__body {
    font-size: .86rem;
    line-height: 1.6;
    color: #3a4258;
    margin-top: 2px;
    word-break: break-word;
}

.comments-empty {
    text-align: center;
    color: var(--sd-muted);
    font-size: .85rem;
    padding: 22px 10px;
    background: var(--sd-primary-lighter);
    border-radius: 10px;
}

.comment-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--sd-border);
}

.comment-form__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--sd-primary);
    color: #fff;
    font-weight: 700;
    font-size: .74rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comment-form input[type="text"] {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--sd-border);
    border-radius: 999px;
    padding: 10px 16px;
    font-size: .86rem;
    outline: none;
    color: var(--sd-text);
    transition: border-color .15s ease;
}
.comment-form input[type="text"]:focus { border-color: var(--sd-primary); }

.comment-form button {
    background: var(--sd-primary);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 10px 20px;
    font-weight: 700;
    font-size: .84rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s ease;
}
.comment-form button:hover { background: var(--sd-primary-dark); }
.comment-form button:disabled { opacity: .6; cursor: not-allowed; }

/* ---- Back link ---- */
.report-detail__back { margin-top: 24px; text-align: center; }

.report-detail__back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--sd-border);
    color: var(--sd-text);
    text-decoration: none;
    font-weight: 700;
    font-size: .86rem;
    padding: 10px 22px;
    border-radius: 999px;
    transition: all .15s ease;
}
.report-detail__back-btn:hover {
    border-color: var(--sd-primary);
    color: var(--sd-primary);
}

@media (max-width: 576px) {
    .profile-db__header { padding: 11px 14px; }
    .profile-db__body { padding: 12px 14px 14px; }
    .report-detail__desc { padding: 13px 14px; }
    .comments-section { padding: 14px 14px 16px; }
}

/* Share toast */
.share-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 16px);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #101418;
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
    padding: 11px 20px;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.share-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}
