/* ==========================================================================
   CHARACTER DOSSIER CARDS — БАР «МОДЕЛЬНЫЙ ПОКЕР»
   Стиль: Luxury VIP Dossier & High-Fashion Comp-Card
   ========================================================================== */

.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 26px 24px;
    border: 1px solid var(--border-card);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition-normal);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    border-color: var(--border-card-hover);
    box-shadow: var(--shadow-md), 0 0 20px rgba(212, 175, 55, 0.08);
}

/* Category Accent Border Trims */
.card[data-category="manager"] {
    border-top: 2px solid var(--accent-mgr);
}
.card[data-category="cashier"] {
    border-top: 2px solid var(--accent-cash);
}
.card[data-category="legend"] {
    border-top: 2px solid var(--accent-legend);
}
.card[data-category="waiter"] {
    border-top: 2px solid var(--accent-waiter);
}

/* Card Header */
.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.card-avatar-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.card-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-card);
    color: var(--gold);
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.card:hover .card-avatar {
    transform: scale(1.05);
    border-color: var(--gold);
}

.card-name-group {
    display: flex;
    flex-direction: column;
}

.card-name {
    font-family: var(--font-serif);
    font-size: 1.65rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.card-category-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Badges */
.badge {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid transparent;
}

.badge-mgr {
    background: var(--accent-mgr-bg);
    color: #e57390;
    border-color: rgba(192, 67, 100, 0.35);
}

.badge-cash {
    background: var(--accent-cash-bg);
    color: var(--gold);
    border-color: var(--gold-border);
}

.badge-legend {
    background: var(--accent-legend-bg);
    color: #e8985c;
    border-color: rgba(217, 119, 54, 0.35);
}

.badge-waiter {
    background: var(--accent-waiter-bg);
    color: #8bbddf;
    border-color: rgba(91, 146, 182, 0.35);
}

/* Subtitle */
.title-sub {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--gold);
    margin-bottom: 14px;
    line-height: 1.35;
}

/* Dossier */
.dossier {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.62;
    margin-bottom: 18px;
}

.dossier strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Quote Box */
.quote-box {
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid var(--gold);
    padding: 12px 16px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1rem;
    color: var(--text-quote);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Stats */
.stats {
    background: rgba(12, 10, 17, 0.6);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid var(--border-subtle);
    margin-bottom: 16px;
}

.stat-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    color: var(--text-muted);
}

.stat-value {
    color: var(--gold);
    font-weight: 600;
}

.stat-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.stat-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold));
    border-radius: var(--radius-pill);
    transition: width 0.5s ease;
}

/* Footer / Tags */
.card-actions {
    display: flex;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
}

.card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    width: 100%;
}

.trait-tag {
    font-size: 0.74rem;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    letter-spacing: 0.3px;
    transition: all var(--transition-fast);
}

.card:hover .trait-tag {
    border-color: rgba(212, 175, 55, 0.25);
    color: var(--gold-light);
}
