/* FPS Inventory Panel */
.fps-inventory-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
    overflow: hidden;
}

.fps-inventory-panel .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid rgba(74, 144, 226, 0.3);
}

.fps-inventory-panel .panel-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4A90E2;
}

.fps-inventory-panel .close-panel-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s;
}

.fps-inventory-panel .close-panel-btn:hover {
    color: #ff5555;
}

/* Summary Stats */
.inventory-summary {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: background 0.2s;
}

.summary-stat:hover {
    background: rgba(255, 255, 255, 0.08);
}

.summary-stat .stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.summary-stat .stat-label {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.25rem;
}

.summary-stat .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4A90E2;
}

/* Filter Tabs */
.inventory-filters {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #ccc;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(74, 144, 226, 0.5);
}

.filter-btn.active {
    background: rgba(74, 144, 226, 0.2);
    border-color: #4A90E2;
    color: #4A90E2;
}

/* Sort Options */
.inventory-sort {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.inventory-sort label {
    font-size: 0.9rem;
    color: #999;
}

.sort-select {
    padding: 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 0.9rem;
    cursor: pointer;
}

.sort-select:hover {
    background: rgba(255, 255, 255, 0.08);
}

.refresh-inventory-btn {
    margin-left: auto;
    padding: 0.4rem 0.75rem;
    background: rgba(74, 144, 226, 0.2);
    border: 1px solid rgba(74, 144, 226, 0.4);
    border-radius: 4px;
    color: #4A90E2;
    cursor: pointer;
    transition: all 0.2s;
}

.refresh-inventory-btn:hover {
    background: rgba(74, 144, 226, 0.3);
    transform: rotate(180deg);
}

/* Inventory Content */
.inventory-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.fps-inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.fps-inventory-item {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fps-inventory-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.fps-inventory-item .item-icon {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
}

.fps-inventory-item .item-rarity {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fps-inventory-item .item-name {
    font-size: 0.9rem;
    color: #ccc;
    word-wrap: break-word;
}

.fps-inventory-item .item-quantity {
    font-size: 0.85rem;
    color: #999;
    margin-top: auto;
}

/* Empty State */
.fps-inventory-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 1rem;
    color: #666;
    padding: 2rem;
}

.fps-inventory-empty .empty-icon {
    font-size: 4rem;
    opacity: 0.3;
}

.fps-inventory-empty .empty-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #888;
}

.fps-inventory-empty .empty-hint {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    max-width: 300px;
}

/* Loading State */
.fps-inventory-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 1rem;
    color: #999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(74, 144, 226, 0.3);
    border-top-color: #4A90E2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .fps-inventory-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.75rem;
    }

    .fps-inventory-item {
        padding: 0.75rem;
    }

    .fps-inventory-item .item-icon {
        font-size: 2rem;
    }

    .inventory-filters {
        padding: 0.75rem 1rem;
    }

    .inventory-summary {
        padding: 0.75rem 1rem;
    }

    .summary-stat .stat-icon {
        font-size: 1.5rem;
    }
}

/* Rarity Glow Effects */
.fps-inventory-item[style*="color: #F39C12"] {
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.3);
}

.fps-inventory-item[style*="color: #9B59B6"] {
    box-shadow: 0 0 10px rgba(155, 89, 182, 0.3);
}

.fps-inventory-item[style*="color: #4A90E2"] {
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
}
