/* ==========================================================================
   VikSale — Стили страниц продавца
   Путь: /css/seller.css
   - /seller/{id}/          — все объявления продавца
   - /seller/{id}/reviews/  — все отзывы с фильтрами
   Светлая + тёмная темы.
   ========================================================================== */

/* ============ Общие ============ */
.seller-page {
    padding: 8px 0 48px;
}

/* Хлебные крошки уже стилизованы через blocks/breadcrumbs */

/* ============ Шапка профиля ============ */
.seller-hero {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 24px;
    margin-bottom: 28px;
    background: var(--bg-card, rgba(46, 46, 90, 0.6));
    border: 1px solid rgba(148, 173, 174, 0.18);
    border-radius: 18px;
}
body.light-theme .seller-hero {
    background: #ffffff;
    border-color: rgba(23, 24, 47, 0.08);
    box-shadow: 0 2px 8px rgba(23, 24, 47, 0.04);
}
.seller-hero__avatar {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6C63FF, #bf00ff);
    color: #fff;
    font-weight: 800;
    font-size: 38px;
    letter-spacing: -0.02em;
}
.seller-hero__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.seller-hero__info {
    flex: 1;
    min-width: 0;
}
.seller-hero__title {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 10px;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}
.seller-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.seller-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.2;
}
.seller-badge .icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.seller-badge--private {
    background: rgba(148, 173, 174, 0.12);
    color: var(--text-secondary);
    border: 1px solid rgba(148, 173, 174, 0.25);
}
.seller-badge--company {
    background: rgba(108, 99, 255, 0.14);
    color: var(--primary, #6C63FF);
    border: 1px solid rgba(108, 99, 255, 0.35);
}
.seller-badge--reliable {
    background: rgba(255, 215, 0, 0.12);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.35);
}
.seller-badge--verified {
    background: rgba(57, 217, 138, 0.10);
    color: #10b981;
    border: 1px solid rgba(57, 217, 138, 0.30);
}
body.light-theme .seller-badge--company {
    background: rgba(91, 82, 224, 0.10);
    color: #5b52e0;
    border-color: rgba(91, 82, 224, 0.35);
}
body.light-theme .seller-badge--reliable {
    background: rgba(180, 83, 9, 0.10);
    color: #b45309;
    border-color: rgba(180, 83, 9, 0.35);
}
body.light-theme .seller-badge--verified {
    background: rgba(4, 120, 87, 0.08);
    color: #047857;
    border-color: rgba(4, 120, 87, 0.30);
}

.seller-hero__rating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.seller-hero__rating strong {
    font-size: 17px;
    font-weight: 800;
}
.seller-hero__rating a {
    color: var(--neon-cyan);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px dashed transparent;
    transition: border-color 0.15s ease;
}
.seller-hero__rating a:hover {
    border-bottom-color: currentColor;
}
.seller-hero__rating--empty {
    color: var(--text-muted);
    font-size: 13.5px;
}
.seller-hero__meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

@media (max-width: 640px) {
    .seller-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        padding: 20px 16px;
    }
    .seller-hero__title { font-size: 20px; }
    .seller-hero__avatar { width: 76px; height: 76px; font-size: 30px; }
    .seller-hero__badges,
    .seller-hero__rating { justify-content: center; }
}

/* ============ Заголовок объявлений ============ */
.seller-ads__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.seller-ads__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}
.seller-ads__count {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(108, 99, 255, 0.14);
    color: var(--primary, #6C63FF);
    vertical-align: middle;
    margin-left: 6px;
}
.seller-ads__reviews-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--neon-cyan);
    text-decoration: none;
    transition: color 0.15s ease;
}
.seller-ads__reviews-link:hover { color: var(--primary, #6C63FF); }
.seller-ads__reviews-link .icon {
    width: 12px;
    height: 12px;
    transition: transform 0.15s ease;
}
.seller-ads__reviews-link:hover .icon {
    transform: translateX(2px);
}
body.light-theme .seller-ads__reviews-link {
    color: #0369a1;
}
body.light-theme .seller-ads__reviews-link:hover {
    color: #5b52e0;
}

/* ============ Пустое состояние ============ */
.seller-empty {
    padding: 60px 20px;
    text-align: center;
    border: 1px dashed rgba(148, 173, 174, 0.25);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
}
body.light-theme .seller-empty {
    background: rgba(23, 24, 47, 0.02);
    border-color: rgba(23, 24, 47, 0.10);
}
.seller-empty__ic {
    font-size: 48px;
    margin-bottom: 12px;
    line-height: 1;
}
.seller-empty__t {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.seller-empty__d {
    font-size: 14px;
    color: var(--text-muted);
}
.seller-empty__d a {
    color: var(--neon-cyan);
    text-decoration: none;
    border-bottom: 1px dashed currentColor;
}

/* ============ Пагинация (общая) ============ */
.seller-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.seller-pager__info {
    font-size: 13px;
    color: var(--text-muted);
}
.lk-btn.is-disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

/* ============ Страница отзывов ============ */
.seller-reviews-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.seller-reviews-head__title {
    font-size: 26px;
    font-weight: 800;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.seller-reviews-head__back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--neon-cyan);
    text-decoration: none;
    transition: color 0.15s ease;
    margin-top: 6px;
}
.seller-reviews-head__back:hover { color: var(--primary, #6C63FF); }
body.light-theme .seller-reviews-head__back { color: #0369a1; }
body.light-theme .seller-reviews-head__back:hover { color: #5b52e0; }

/* ---------- Сводка: средний балл + распределение ---------- */
.seller-reviews-summary {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 28px;
    align-items: center;
    padding: 20px 24px;
    border-radius: 16px;
    background: var(--bg-card, rgba(46, 46, 90, 0.6));
    border: 1px solid rgba(148, 173, 174, 0.18);
    margin-bottom: 20px;
}
body.light-theme .seller-reviews-summary {
    background: #ffffff;
    border-color: rgba(23, 24, 47, 0.08);
}
.seller-reviews-summary__score {
    text-align: center;
}
.seller-reviews-summary__value {
    font-size: 54px;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}
.seller-reviews-summary__stars {
    margin: 6px 0 4px;
}
.seller-reviews-summary__count {
    font-size: 13px;
    color: var(--text-muted);
}

.seller-reviews-summary__bars {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.seller-reviews-bar {
    display: grid;
    grid-template-columns: 46px 1fr 38px;
    align-items: center;
    gap: 10px;
    padding: 3px 4px;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}
.seller-reviews-bar:hover {
    background: rgba(108, 99, 255, 0.08);
}
.seller-reviews-bar.is-active {
    background: rgba(108, 99, 255, 0.14);
}
.seller-reviews-bar__star {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}
.seller-reviews-bar__track {
    display: block;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}
body.light-theme .seller-reviews-bar__track {
    background: rgba(23, 24, 47, 0.06);
}
.seller-reviews-bar__fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #f59e0b);
    border-radius: inherit;
    transition: width 0.3s ease;
}
.seller-reviews-bar__cnt {
    font-size: 12.5px;
    color: var(--text-muted);
    text-align: right;
}

@media (max-width: 640px) {
    .seller-reviews-summary {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }
    .seller-reviews-summary__value { font-size: 42px; }
}

/* ---------- Сортировка ---------- */
.seller-reviews-sort {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
}
body.light-theme .seller-reviews-sort {
    background: rgba(23, 24, 47, 0.03);
}
.seller-reviews-sort__label {
    font-size: 13px;
    color: var(--text-muted);
    margin-right: 4px;
}
.seller-reviews-sort__btn {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}
.seller-reviews-sort__btn:hover {
    background: rgba(108, 99, 255, 0.10);
    color: var(--text-primary);
}
.seller-reviews-sort__btn.is-active {
    background: linear-gradient(135deg, #6C63FF, #bf00ff);
    color: #fff;
}
.seller-reviews-sort__reset {
    margin-left: auto;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    color: #ff5c7a;
    text-decoration: none;
    border: 1px solid rgba(255, 92, 122, 0.35);
    transition: background 0.15s ease;
}
.seller-reviews-sort__reset:hover {
    background: rgba(255, 92, 122, 0.10);
}

/* ---------- Список отзывов ---------- */
.seller-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.seller-review-item {
    padding: 18px 20px;
    border-radius: 14px;
    background: var(--bg-card, rgba(46, 46, 90, 0.55));
    border: 1px solid rgba(148, 173, 174, 0.15);
}
body.light-theme .seller-review-item {
    background: #ffffff;
    border-color: rgba(23, 24, 47, 0.08);
    box-shadow: 0 2px 6px rgba(23, 24, 47, 0.03);
}
.seller-review-item__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.seller-review-item__author {
    display: flex;
    align-items: center;
    gap: 10px;
}
.seller-review-item__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}
.seller-review-item__avatar--letter {
    background: linear-gradient(135deg, #6C63FF, #bf00ff);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.seller-review-item__name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}
.seller-review-item__date {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 2px;
}
.seller-review-item__rating {
    display: flex;
    align-items: center;
    gap: 8px;
}
.seller-review-item__rating-num {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}
.seller-review-item__text {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 8px 0;
    overflow-wrap: anywhere;
}
.seller-review-item__ad {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.seller-review-item__ad a {
    color: var(--neon-cyan);
    text-decoration: none;
    border-bottom: 1px dashed transparent;
}
.seller-review-item__ad a:hover {
    border-bottom-color: currentColor;
}
body.light-theme .seller-review-item__ad a { color: #0369a1; }

.seller-review-item__reply {
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(108, 99, 255, 0.06);
    border-left: 3px solid rgba(108, 99, 255, 0.40);
    margin-top: 10px;
}
body.light-theme .seller-review-item__reply {
    background: rgba(108, 99, 255, 0.05);
}
.seller-review-item__reply-head {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary, #6C63FF);
    margin-bottom: 4px;
}
.seller-review-item__reply-text {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}

@media (max-width: 520px) {
    .seller-review-item { padding: 14px 14px; }
    .seller-review-item__avatar { width: 36px; height: 36px; }
    .seller-review-item__name { font-size: 14px; }
    .seller-review-item__text { font-size: 14px; }
}

/* ============ Звёзды (для переиспользования) ============ */
.ad-rating-stars {
    --rating: 0;
    position: relative;
    display: inline-block;
    height: 16px;
    line-height: 16px;
    font-size: 16px;
    font-family: 'Segoe UI Symbol', 'Arial Unicode MS', Arial, sans-serif;
    letter-spacing: 2px;
    white-space: nowrap;
    vertical-align: middle;
}
.ad-rating-stars::before {
    content: '★★★★★';
    color: rgba(240, 240, 255, 0.20);
    -webkit-text-fill-color: rgba(240, 240, 255, 0.20);
    letter-spacing: 2px;
}
body.light-theme .ad-rating-stars::before {
    color: rgba(23, 24, 47, 0.15);
    -webkit-text-fill-color: rgba(23, 24, 47, 0.15);
}
.ad-rating-stars::after {
    content: '★★★★★';
    position: absolute;
    top: 0;
    left: 0;
    color: #ffd700;
    -webkit-text-fill-color: #ffd700;
    letter-spacing: 2px;
    overflow: hidden;
    white-space: nowrap;
    width: calc((var(--rating) / 5) * 100%);
    pointer-events: none;
}
body.light-theme .ad-rating-stars::after {
    color: #eab308;
    -webkit-text-fill-color: #eab308;
}

/* ==========================================================================
   SELLER-PAGINATION 2026-10-08
   Универсальная пагинация с цифрами и SVG-стрелками.
   Используется на страницах продавца: /seller/{id}/ и /seller/{id}/reviews/.
   Работает в обеих темах, адаптив ≤ 520px.
   ========================================================================== */

.seller-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 28px 0 8px;
    padding: 20px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}
body.light-theme .seller-pagination {
    border-top-color: rgba(23, 24, 47, 0.08);
}

/* Кнопки пагинации (общее) */
.seller-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(0, 243, 255, 0.20);
    background: rgba(0, 243, 255, 0.04);
    color: var(--neon-cyan);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.seller-pagination__btn:hover:not(.is-disabled):not(.is-active) {
    background: rgba(0, 243, 255, 0.10);
    border-color: rgba(0, 243, 255, 0.45);
    box-shadow: 0 0 12px rgba(0, 243, 255, 0.15);
}
.seller-pagination__btn.is-active {
    background: linear-gradient(135deg, #6C63FF, #bf00ff);
    border-color: transparent;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    cursor: default;
    box-shadow: 0 4px 14px rgba(108, 99, 255, 0.35);
}
.seller-pagination__btn.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Стрелки */
.seller-pagination__arrow {
    padding: 0 10px;
}
.seller-pagination__arrow svg,
.seller-pagination__arrow .icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: currentColor;
    stroke: currentColor;
}

/* Многоточие */
.seller-pagination__dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 40px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
    user-select: none;
}

/* ---------- Светлая тема ---------- */
body.light-theme .seller-pagination__btn {
    background: #ffffff;
    border-color: rgba(91, 82, 224, 0.28);
    color: #5b52e0;
}
body.light-theme .seller-pagination__btn:hover:not(.is-disabled):not(.is-active) {
    background: rgba(91, 82, 224, 0.06);
    border-color: rgba(91, 82, 224, 0.5);
    box-shadow: 0 2px 8px rgba(91, 82, 224, 0.15);
}
body.light-theme .seller-pagination__btn.is-active {
    background: linear-gradient(135deg, #5b52e0, #0369a1);
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(91, 82, 224, 0.28);
}

/* ---------- Мобильный (≤ 520px) ---------- */
@media (max-width: 520px) {
    .seller-pagination {
        gap: 4px;
        margin-top: 20px;
        padding-top: 16px;
    }
    .seller-pagination__btn {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 13px;
        border-radius: 8px;
    }
    /* Скрываем часть цифр, оставляем: 1 2 … текущая … N-1 N */
    .seller-pagination__btn.seller-pagination__page--hide-mobile {
        display: none;
    }
    .seller-pagination__arrow svg,
    .seller-pagination__arrow .icon {
        width: 16px;
        height: 16px;
    }
}

/* === E7: значок «С ВикСейл с N года» === */
.seller-badge--since {
    background: linear-gradient(135deg, rgba(188,239,10,0.15), rgba(131,92,251,0.15));
    border: 1px solid rgba(188,239,10,0.35);
    color: #dff586;
}
.seller-badge--since .icon { width: 14px; height: 14px; }
body.light-theme .seller-badge--since {
    background: linear-gradient(135deg, rgba(188,239,10,0.12), rgba(131,92,251,0.12));
    border-color: rgba(131,92,251,0.4);
    color: #5b4bd6;
}
