/* ═══════════════════════════════════════════════════════════════════════════
   ⭐ Avatar — стили для аватаров в отзывах (photo_url / инициалы)
   [ВЫДЕЛЕНО В: task-2026-06-27-admin-cms-audit (Фаза 5) — из community-cards.css]
   [РЕАЛИЗОВАНО В: task-2026-06-05-020]
   ═══════════════════════════════════════════════════════════════════════════ */

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(var(--green-primary-rgb), 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--green-dark);
    overflow: hidden;
}
.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Vote Cards Grid + Leaderboard
   [РЕАЛИЗОВАНО В: task-2026-06-05-008]
   ═══════════════════════════════════════════════════════════════════════════ */

/* Vote card — карточка голосования */
.vote-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--card-glass);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--ps-glass-border);
    border-left: 4px solid var(--green-primary);
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--ps-shadow-subtle);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    width: 100%;
}
.vote-card:hover {
    transform: var(--effect-hover-lift);
    box-shadow: var(--effect-glow-green);
}

/* Превью-изображение в vote card */
.vote-card__img {
    width: 120px;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    background: rgba(0, 0, 0, 0.03);
    overflow: hidden;
}
/* Quasar q-img internal img — override default object-fit: cover */
.vote-card__img img {
    object-fit: contain !important;
}
.vote-card__img:hover {
    transform: scale(1.05);
}

/* Тело vote card */
.vote-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.vote-card__title {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vote-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Блок действий в vote card */
.vote-card__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.5rem;
    flex-shrink: 0;
    min-width: 110px;
}

/* Leaderboard */
.vote-leaderboard {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 1.5rem;
}
.vote-leaderboard__item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.6rem 0.75rem;
    background: var(--card-glass);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--ps-glass-border);
    border-radius: 10px;
    width: 100%;
}
.vote-leaderboard__item-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.vote-leaderboard__item-emoji {
    font-size: 1rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}
.vote-leaderboard__item-name {
    flex: 1;
    font-weight: 600;
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vote-leaderboard__item-count {
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0.65;
    min-width: 2rem;
    text-align: right;
    flex-shrink: 0;
}
.vote-leaderboard__bar-track {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
}
.vote-leaderboard__bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
    min-width: 2px;
}
