/* ==========================================================================
   Seller info card — sidebar блок в страницата на обявата (ad-view.php)
   Файл: assets/css/seller-card.css
   Дизайн референция: KARE.jpg (бял контейнер, меки заоблени ъгли 16px,
   тюркоазен аватар #2a9d8f, зелена точка за онлайн, пунктиран разделител,
   метаданни с икони, зелено верификационно каре, тюркоазен бутон за телефон).
   Самостоятелен: всички селектори са именувани в .seller-card namespace,
   за да не се влияят други страници на сайта.
   ========================================================================== */

.seller-card {
    --sc-brand: #2a9d8f;
    --sc-brand-dark: #21867a;
    --sc-brand-soft: #e6f4f1;
    --sc-text: #1f2937;
    --sc-muted: #64748b;
    --sc-line: #e5e7eb;
    --sc-verified-bg: #ecfdf5;
    --sc-verified-border: rgba(134, 239, 172, .55);
    --sc-verified-text: #047857;
    --sc-verified-icon: #10b981;
    --sc-phone-icon: #E91E63;
    --sc-radius: 16px;
    --sc-shadow: 0 2px 8px rgba(28, 55, 90, .055), 0 1px 2px rgba(28, 55, 90, .04);

    background: #ffffff;
    border: 1px solid var(--sc-line);
    border-radius: var(--sc-radius);
    padding: 20px;
    box-shadow: var(--sc-shadow);
    color: var(--sc-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
}

/* ---------- 1. Горна секция: профил (аватар + име + репутация + статус) ---------- */

.seller-card__header {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 13px;
    padding-bottom: 13px;
    border-bottom: 1.5px dashed var(--sc-line);
}

.seller-card__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--sc-brand);
    display: block;
}

.seller-card__avatar--initial {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sc-brand);
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: .5px;
    border: none;
}

.seller-card__id {
    flex: 1;
    min-width: 0;
}

.seller-card__name {
    font-size: 17px;
    font-weight: 700;
    color: var(--sc-text);
    margin: 0 0 4px;
    line-height: 1.25;
}

.seller-card__name a {
    color: inherit;
    text-decoration: none;
}

.seller-card__name a:hover {
    color: var(--sc-brand-dark);
    text-decoration: underline;
}

.seller-card__reputation {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--sc-muted);
    margin-bottom: 4px;
}

.seller-card__reputation .sc-thumb {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 600;
    color: var(--sc-text);
    line-height: 1;
}

.seller-card__reputation .sc-thumb .sc-thumb-icon {
    font-size: 14px;
    line-height: 1;
    display: inline-block;
}

.seller-card__reputation .sc-thumb--down .sc-thumb-icon {
    /* Емоджи 👎 по подразбиране излиза със собствен цвят (жълтеникав); */
    /* по изключение може да се прецни към сиво с филтър: */
    filter: saturate(.55) brightness(.85);
}

.seller-card__reputation .sc-rating-summary {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 700;
    color: #b45309;
}

.seller-card__reputation .sc-trusted-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid #a7f3d0;
}

.seller-card__reputation a.sc-review-link {
    color: var(--sc-brand);
    text-decoration: underline;
    text-decoration-color: rgba(42, 157, 143, .35);
    text-underline-offset: 2px;
    font-weight: 700;
    margin-left: 2px;
}

.seller-card__reputation a.sc-review-link:hover {
    color: var(--sc-brand-dark);
    text-decoration-color: currentColor;
}

.seller-card__online {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--sc-muted);
    margin-top: 2px;
}

.seller-card__online .sc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, .18);
    flex-shrink: 0;
}

/* ---------- 2. Метаданни (локация, регистрация, публичен профил) ---------- */

.seller-card__meta {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 13.5px;
    color: var(--sc-muted);
    margin-bottom: 10px;
}

.seller-card__meta-row {
    display: flex;
    align-items: center;
    gap: 7px;
    line-height: 1.4;
}

.seller-card__meta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    font-size: 15px;
    line-height: 1;
}

.seller-card__meta-label {
    color: var(--sc-muted);
    font-weight: 400;
}

.seller-card__meta-value {
    color: var(--sc-text);
    font-weight: 600;
}

.seller-card__meta-value a {
    color: var(--sc-text);
    text-decoration: none;
    font-weight: 600;
}

.seller-card__meta-value a:hover {
    color: var(--sc-brand-dark);
    text-decoration: underline;
}

.seller-card__public-link {
    margin-top: 2px;
    padding-top: 12px;
    border-top: 1px solid var(--sc-line);
}

.seller-card__public-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--sc-brand);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.seller-card__public-link a:hover {
    color: var(--sc-brand-dark);
    text-decoration: underline;
}

.seller-card__public-link .sc-arrow {
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
}

/* ---------- 3. Верификационно каре (само ако телефонът е потвърден) ---------- */

.seller-card__verified {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 12px;
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--sc-verified-bg);
    border: 1px solid var(--sc-verified-border);
    color: var(--sc-verified-text);
    font-size: 12.5px;
    font-weight: 600;
}

.seller-card__verified .sc-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--sc-verified-icon);
    color: #ffffff;
    flex-shrink: 0;
}

.seller-card__verified .sc-check svg {
    width: 13px;
    height: 13px;
    stroke: #ffffff;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- 4. Бутон за телефон (най-долу) ---------- */

.seller-card__phone {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--sc-line);
}

.seller-card__phone a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--sc-brand-soft);
    color: var(--sc-brand-dark);
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .4px;
    border: 1px solid rgba(42, 157, 143, .22);
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
}

.seller-card__phone .sc-phone-icon {
    color: var(--sc-phone-icon);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.seller-card__phone .sc-phone-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: var(--sc-phone-icon);
}

.seller-card__phone a:hover {
    background: #d3ebe7;
    color: #1c6e63;
    border-color: rgba(42, 157, 143, .4);
    transform: translateY(-1px);
}

.seller-card__phone a:active {
    transform: translateY(0);
}

.seller-card__phone a.sc-phone-locked {
    background: #f1f5f9;
    color: var(--sc-muted);
    border-color: #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
}

.seller-card__phone a.sc-phone-locked:hover {
    background: #e9eef4;
    color: #475569;
    transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
    .seller-card {
        padding: 18px;
    }

    .seller-card__avatar {
        width: 52px;
        height: 52px;
    }

    .seller-card__avatar--initial {
        font-size: 24px;
    }

    .seller-card__name {
        font-size: 16px;
    }

    .seller-card__phone a {
        font-size: 16px;
        padding: 13px 14px;
    }
}

@media (max-width: 420px) {
    .seller-card {
        padding: 16px;
        border-radius: 14px;
    }

    .seller-card__header {
        gap: 12px;
        margin-bottom: 14px;
        padding-bottom: 14px;
    }

    .seller-card__reputation {
        gap: 8px;
        font-size: 11.5px;
    }

    .seller-card__meta {
        font-size: 13px;
        gap: 8px;
    }

    .seller-card__phone a {
        font-size: 15px;
        letter-spacing: .2px;
    }
}

/* Поддръжка за prefers-reduced-motion — изключваме леките transform ефекти */
@media (prefers-reduced-motion: reduce) {
    .seller-card__phone a,
    .seller-card__phone a:hover {
        transition: none;
        transform: none;
    }
}

/* ==========================================================================
   Странични блокове в същия <aside> (изнесени от seller-card за чистота):
   .seller-side-block — общ стил за deal-rating формата и share панела.
   ========================================================================== */

.seller-side-block {
    background: #ffffff;
    border: 1px solid var(--sc-line, #e5e7eb);
    border-radius: var(--sc-radius, 16px);
    padding: 18px 22px;
    box-shadow: var(--sc-shadow, 0 2px 8px rgba(28, 55, 90, .055));
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.seller-side-block__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.seller-side-block__label {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.seller-side-block__select,
.seller-side-block__textarea {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #dbe2e8;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    background: #fff;
    color: #1f2937;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.seller-side-block__select:focus,
.seller-side-block__textarea:focus {
    outline: none;
    border-color: var(--sc-brand, #2a9d8f);
    box-shadow: 0 0 0 3px rgba(42, 157, 143, .15);
}

.seller-side-block__textarea {
    resize: vertical;
    min-height: 56px;
}

.seller-side-block__submit {
    background: var(--sc-brand, #2a9d8f);
    color: #fff;
    border: 0;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .18s ease;
}

.seller-side-block__submit:hover {
    background: var(--sc-brand-dark, #21867a);
}

@media (max-width: 420px) {
    .seller-side-block {
        padding: 16px;
        border-radius: 14px;
    }
}
