/* Guild Characters Page Styles */

.characters-container {
    flex: 1;
    padding: 2rem;
}

.characters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.characters-title {
    color: var(--text-primary);
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.characters-empty {
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    text-align: center;
}

.characters-empty-text {
    color: var(--text-muted);
    margin: 0;
}

/* 3 colonnes CSS — chaque bloc user ne se coupe pas entre colonnes */
.elig-columns {
    columns: 4;
    column-gap: 1.25rem;
}

.elig-user-block {
    break-inside: avoid;
    margin-bottom: 1rem;
    background: linear-gradient(145deg, var(--bg-surface-1), var(--bg-surface-2));
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
}

.elig-user-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(255,255,255,0.03);
}

.elig-user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.elig-user-count {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.06);
    padding: 1px 6px;
    border-radius: 10px;
}

.elig-table {
    width: 100%;
    border-collapse: collapse;
}

.elig-row {
    transition: background 0.15s ease;
}

.elig-row:hover {
    background: rgba(255,255,255,0.04);
}

.elig-row--main {
    background: rgba(255,255,255,0.02);
}

.elig-cell {
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-faint);
}

.elig-row:last-child .elig-cell {
    border-bottom: none;
}

.elig-cell--color {
    width: 1px;
    padding: 0;
}

.elig-cell--name {
    font-weight: 600;
    white-space: nowrap;
}

.elig-star {
    color: var(--color-gold);
    font-size: 0.65rem;
}

.elig-cell--role {
    width: 22px;
    padding: 0.3rem 0.25rem;
}

.elig-role-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: block;
}

.elig-cell--server {
    color: var(--text-subtle);
    font-size: 0.72rem;
    white-space: nowrap;
}

.elig-cell--ilvl {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.78rem;
    white-space: nowrap;
    text-align: right;
}

.elig-cell--btn {
    text-align: right;
    width: auto;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
}

.elig-main-badge {
    font-size: 0.65rem;
    color: var(--color-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.char-eligible-btn,
.set-main-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.char-eligible-btn.eligible {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: var(--color-success);
}

.char-eligible-btn.not-eligible {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
}

