/* Armory Compact - Interface ergonomique et pratique */

/* Grille compacte responsive */
.armory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    padding: 16px 0;
}

/* Card compacte moderne */
.armory-card-compact {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(17, 24, 39, 0.95) 100%);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-left: 3px solid rgba(99, 102, 241, 0.5);
    border-radius: 12px;
    padding: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.armory-card-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.armory-card-compact:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(99, 102, 241, 0.1);
}

.armory-card-compact:hover::before {
    opacity: 1;
}

/* Header avec avatar */
.armory-card-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.character-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.avatar-icon {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border: 2px solid rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: rgba(99, 102, 241, 0.9);
    text-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
}

.character-info {
    flex: 1;
    min-width: 0;
}

.character-name {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.character-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 11px;
}

.class-badge {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #000;
}

.role-badge {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    font-weight: 500;
}

.item-count {
    color: #6b7280;
    font-weight: 500;
}

/* Preview d'items */
.armory-card-preview {
    margin: 10px 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-preview-name {
    font-size: 12px;
    color: #a0aec0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    display: block;
}

.item-preview-name:hover {
    color: #e5e7eb;
}

/* Actions compactes */
.armory-card-actions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.btn-compact {
    flex: 1;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-compact svg {
    opacity: 0.8;
}

.btn-compact:hover svg {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Couleurs de classe */
.class-warrior .avatar-icon,
.armory-card-compact.class-warrior {
    border-left-color: #C79C6E;
}

.character-name.class-warrior,
.class-badge.class-warrior {
    color: #C79C6E;
    background: rgba(199, 156, 110, 0.15);
}

.class-paladin .avatar-icon,
.armory-card-compact.class-paladin {
    border-left-color: #F58CBA;
}

.character-name.class-paladin,
.class-badge.class-paladin {
    color: #F58CBA;
    background: rgba(245, 140, 186, 0.15);
}

.class-hunter .avatar-icon,
.armory-card-compact.class-hunter {
    border-left-color: #ABD473;
}

.character-name.class-hunter,
.class-badge.class-hunter {
    color: #ABD473;
    background: rgba(171, 212, 115, 0.15);
}

.class-rogue .avatar-icon,
.armory-card-compact.class-rogue {
    border-left-color: #FFF569;
}

.character-name.class-rogue,
.class-badge.class-rogue {
    color: #FFF569;
    background: rgba(255, 245, 105, 0.15);
}

.class-priest .avatar-icon,
.armory-card-compact.class-priest {
    border-left-color: #FFFFFF;
}

.character-name.class-priest,
.class-badge.class-priest {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.15);
}

.class-shaman .avatar-icon,
.armory-card-compact.class-shaman {
    border-left-color: #0070DE;
}

.character-name.class-shaman,
.class-badge.class-shaman {
    color: #0070DE;
    background: rgba(0, 112, 222, 0.15);
}

.class-mage .avatar-icon,
.armory-card-compact.class-mage {
    border-left-color: #69CCF0;
}

.character-name.class-mage,
.class-badge.class-mage {
    color: #69CCF0;
    background: rgba(105, 204, 240, 0.15);
}

.class-warlock .avatar-icon,
.armory-card-compact.class-warlock {
    border-left-color: #9482C9;
}

.character-name.class-warlock,
.class-badge.class-warlock {
    color: #9482C9;
    background: rgba(148, 130, 201, 0.15);
}

.class-druid .avatar-icon,
.armory-card-compact.class-druid {
    border-left-color: #FF7D0A;
}

.character-name.class-druid,
.class-badge.class-druid {
    color: #FF7D0A;
    background: rgba(255, 125, 10, 0.15);
}

/* Filtres rapides */
.armory-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.armory-filters input,
.armory-filters select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    color: #e5e7eb;
    font-size: 13px;
    transition: all 0.2s ease;
}

.armory-filters input:focus,
.armory-filters select:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.armory-filters input {
    flex: 1;
    min-width: 200px;
}

.armory-filters select {
    min-width: 140px;
}

/* Stats/count */
.armory-stats {
    display: flex;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 10px;
    margin-bottom: 16px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-label {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive */
@media (max-width: 768px) {
    .armory-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .armory-filters {
        flex-direction: column;
        gap: 8px;
    }

    .armory-filters input,
    .armory-filters select {
        width: 100%;
    }

    .armory-stats {
        flex-wrap: wrap;
    }
}

/* Animation d'apparition */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.armory-card-compact {
    animation: fadeInUp 0.3s ease-out backwards;
}

.armory-card-compact:nth-child(1) {
    animation-delay: 0.05s;
}

.armory-card-compact:nth-child(2) {
    animation-delay: 0.1s;
}

.armory-card-compact:nth-child(3) {
    animation-delay: 0.15s;
}

.armory-card-compact:nth-child(4) {
    animation-delay: 0.2s;
}

.armory-card-compact:nth-child(5) {
    animation-delay: 0.25s;
}

.armory-card-compact:nth-child(6) {
    animation-delay: 0.3s;
}

/* Empty state */
.armory-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.armory-empty svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}